Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
flexbox 4 life (In.Tegra.Do)
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Felipe Bernardes
November 19, 2015
Programming
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
flexbox 4 life (In.Tegra.Do)
Talk apresentada na Tegra em 04/09/2015
Felipe Bernardes
November 19, 2015
More Decks by Felipe Bernardes
See All by Felipe Bernardes
Gardening for Communities - Organically Cultivating Local Communities
felipebernardes
0
130
15 JavaScript Do's & Don'ts
felipebernardes
0
120
An Animated Poem, built with CSS drawings & animations
felipebernardes
1
250
Todas as falhas da minha carreira (até outubro/2019)
felipebernardes
0
92
Immersive Journalism using AR/VR
felipebernardes
0
260
7 Formas de Melhorar seu Networking
felipebernardes
0
62
BEM Show & Tell @ Space Coworking
felipebernardes
0
67
Get Started With PWAs
felipebernardes
0
220
CSS Layouting::putting things into place
felipebernardes
0
73
Other Decks in Programming
See All in Programming
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
130
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
0
440
wkhtmltopdfの次どうするか問題2026
willnet
2
1.9k
Agents on Rails - Rails at Scale 2026
irinanazarova
0
530
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
250
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.1k
JRuby: Past, Present, and Future
headius
0
230
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
パーソナライズPodcastを作った話
repunit11
0
140
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.6k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
480
速習iPhone Duo対応
yuukiw00w
2
980
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
HDC tutorial
michielstock
2
950
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
How to make the Groovebox
asonas
2
2.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
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]