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
82
An Animated Poem, built with CSS drawings & animations
felipebernardes
1
120
Todas as falhas da minha carreira (até outubro/2019)
felipebernardes
0
70
Immersive Journalism using AR/VR
felipebernardes
0
140
7 Formas de Melhorar seu Networking
felipebernardes
0
36
BEM Show & Tell @ Space Coworking
felipebernardes
0
40
Get Started With PWAs
felipebernardes
0
99
CSS Layouting::putting things into place
felipebernardes
0
45
Other Decks in Programming
See All in Programming
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
ServerAction で Progressive Enhancement はどこまで頑張れるか? / progressive-enhancement-with-server-action
takefumiyoshii
6
410
AmperとFleetを使ったAndroidアプリ
yoppie
0
250
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
200
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
670
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
500
Try creating your own orderedmap
kazamori
1
180
Git Rebase
bkuhlmann
11
1.6k
Goのmultiple errorsについて (2024年4月版)
syumai
4
1.2k
Micro Frontends for Java Microservices - Utah JUG 2024
mraible
PRO
1
110
Let's learn code review
riofujimon
2
570
Polars入門
daikikatsuragawa
1
170
Featured
See All Featured
Navigating Team Friction
lara
179
13k
Fireside Chat
paigeccino
22
2.6k
Building Effective Engineering Teams - LeadDev
addyosmani
32
1.9k
BBQ
matthewcrist
80
8.8k
The Mythical Team-Month
searls
216
42k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
8
1.3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
14
1.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
21
1.4k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.2k
Done Done
chrislema
178
15k
The Invisible Side of Design
smashingmag
294
49k
The Language of Interfaces
destraynor
151
23k
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]