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
92
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
110
15 JavaScript Do's & Don'ts
felipebernardes
0
85
An Animated Poem, built with CSS drawings & animations
felipebernardes
1
140
Todas as falhas da minha carreira (até outubro/2019)
felipebernardes
0
73
Immersive Journalism using AR/VR
felipebernardes
0
150
7 Formas de Melhorar seu Networking
felipebernardes
0
37
BEM Show & Tell @ Space Coworking
felipebernardes
0
42
Get Started With PWAs
felipebernardes
0
140
CSS Layouting::putting things into place
felipebernardes
0
47
Other Decks in Programming
See All in Programming
みんなでプロポーザルを書いてみた
yuriko1211
0
260
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
470
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
110
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
310
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
100
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
1
330
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
How GitHub (no longer) Works
holman
310
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Making Projects Easy
brettharned
115
5.9k
The Invisible Side of Design
smashingmag
298
50k
Speed Design
sergeychernyshev
24
610
Teambox: Starting and Learning
jrom
133
8.8k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
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]