Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
flexbox 4 life (In.Tegra.Do)
Search
Felipe Bernardes
November 19, 2015
Programming
0
95
flexbox 4 life (In.Tegra.Do)
Talk apresentada na Tegra em 04/09/2015
Felipe Bernardes
November 19, 2015
Tweet
Share
More Decks by Felipe Bernardes
See All by Felipe Bernardes
Gardening for Communities - Organically Cultivating Local Communities
felipebernardes
0
120
15 JavaScript Do's & Don'ts
felipebernardes
0
92
An Animated Poem, built with CSS drawings & animations
felipebernardes
1
190
Todas as falhas da minha carreira (até outubro/2019)
felipebernardes
0
80
Immersive Journalism using AR/VR
felipebernardes
0
200
7 Formas de Melhorar seu Networking
felipebernardes
0
48
BEM Show & Tell @ Space Coworking
felipebernardes
0
48
Get Started With PWAs
felipebernardes
0
170
CSS Layouting::putting things into place
felipebernardes
0
57
Other Decks in Programming
See All in Programming
Practical Tips and Tricks for Working with Compose Multiplatform Previews (mDevCamp 2025)
stewemetal
0
130
カクヨムAndroidアプリのリブート
numeroanddev
0
430
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
280
セキュリティマネジャー廃止とクラウドネイティブ型サンドボックス活用
kazumura
1
180
Gleamという選択肢
comamoca
6
740
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
540
2度もゼロから書き直して、やっとブラウザでぬるぬる動くAIに辿り着いた話
tomoino
0
160
Go Modules: From Basics to Beyond / Go Modulesの基本とその先へ
kuro_kurorrr
0
120
SODA - FACT BOOK
sodainc
1
1.1k
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.7k
Perplexity Slack Botを作ってAI活用を進めた話 / AI Engineering Summit プレイベント
n3xem
0
660
AIネイティブなプロダクトをGolangで挑む取り組み
nmatsumoto4
0
120
Featured
See All Featured
Done Done
chrislema
184
16k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Bash Introduction
62gerente
614
210k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Side Projects
sachag
455
42k
Producing Creativity
orderedlist
PRO
346
40k
Documentation Writing (for coders)
carmenintech
71
4.9k
Six Lessons from altMBA
skipperchong
28
3.8k
For a Future-Friendly Web
brad_frost
179
9.8k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Transcript
flexbox4life INTEGRADO P O R F E L I P
E B E R N A R D E S
grid layout
None
None
None
implementação
table grid
float grid
flexbox module a melhor forma de posicionar, alinhar e distribuir
elementos
<section class=”flex-container”> <div class=”pera”></div> <div class=”uva”></div> <div class=”maca”></div> </section>
None
.flex-container { display: flex; }
None
.flex-container { display: flex; flex-flow: row; }
None
.flex-container { display: flex; flex-flow: row-reverse; }
None
.flex-container { display: flex; flex-flow: column; }
None
.flex-container { display: flex; flex-flow: column-reverse; }
None
.flex-container { display: flex; flex-flow: row wrap; }
None
.pera, .uva, .maca { width: 40%; }
None
.flex-container { display: flex; flex-flow: row; height: 100vh; }
None
.pera, .uva, .maca { margin: auto; }
None
margin: auto;
None
tem mais
.pera { order: 2; } .uva { order: 1; }
.maca { order: 3; }
None
.pera, .maca { flex-grow: 1; } .uva { flex-grow: 2;
}
None
.flex-container { height: 100vh; display: flex; align-content: center; } ou…
flex-start, flex-end, stretch
None
tem mais align-self, flex-basis, flex-shrink, justify-content...
can I...
None
flexbugs
None
None
#milMaravilha … certo?
None
.flex-container { display: -webkit-box; display: -moz-box; -moz-display: flex; -ms-display: flexbox;
display: -ms-flexbox; display: -webkit-flex; display: flex; }
.uva { -webkit-box-ordinal-group: 2; -moz-box-ordinal-group: 2; order: 2; -webkit-order: 2;
-moz-order: 2; -ms-order: 2; }
keep calm
_flexmixins.scss PRIMEIRA CONTRIB PRA @TEGRAOSS
@mixin display-flex { display: -webkit-box; display: -moz-box; -moz-display: flex; -ms-display:
flexbox; display: -ms-flexbox; display: -webkit-flex; display: flex; }
.flex-container { @include display-flex; }
.flex-container { @include display-flex; @include flex-flow(row wrap); }
.flex-container { @include display-flex; @include flex-flow(row wrap); @include align-content(space-around); }
.uva { @include order(2); }
None
None
None
resumão - markup limpa - melhor SEO - responsividade -
CSS semântico
cheatsheet css-tricks.com/snippets/css/a-guide-to-flexbox/
valeu! http://felipebernardes.github.io
[email protected]