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
96
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
94
An Animated Poem, built with CSS drawings & animations
felipebernardes
1
190
Todas as falhas da minha carreira (até outubro/2019)
felipebernardes
0
81
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
180
CSS Layouting::putting things into place
felipebernardes
0
60
Other Decks in Programming
See All in Programming
書き捨てではなく継続開発可能なコードをAIコーディングエージェントで書くために意識していること
shuyakinjo
1
250
The State of Fluid (2025)
s2b
0
110
変化を楽しむエンジニアリング ~ いままでとこれから ~
murajun1978
0
710
画像コンペでのベースラインモデルの育て方
tattaka
3
1.5k
Vibe coding コードレビュー
kinopeee
0
430
202507_ADKで始めるエージェント開発の基本 〜デモを通じて紹介〜(奥田りさ)The Basics of Agent Development with ADK — A Demo-Focused Introduction
risatube
PRO
6
1.4k
Constant integer division faster than compiler-generated code
herumi
2
570
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
950
DynamoDBは怖くない!〜テーブル設計の勘所とテスト戦略〜
hyamazaki
0
200
GUI操作LLMの最新動向: UI-TARSと関連論文紹介
kfujikawa
0
760
あまり知られていない MCP 仕様たち / MCP specifications that aren’t widely known
ktr_0731
0
240
decksh - a little language for decks
ajstarks
4
21k
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
431
65k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
800
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
The Cult of Friendly URLs
andyhume
79
6.5k
Facilitating Awesome Meetings
lara
54
6.5k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Done Done
chrislema
185
16k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Speed Design
sergeychernyshev
32
1.1k
Optimizing for Happiness
mojombo
379
70k
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]