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
Layouts flexiveis com Flex-box
Search
Roger Albino
June 26, 2015
Programming
360
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Layouts flexiveis com Flex-box
Campinas Front-End Meetup
Roger Albino
June 26, 2015
More Decks by Roger Albino
See All by Roger Albino
Utilizando Clean Code para deixar seu código ainda mais manutenível - TDC Transformation - Grupo Boticário
rogeralbinoi
0
540
Código Limpo (Clean Code) - FATEC DevDay 2021
rogeralbinoi
1
300
Desmistificando a Refatoração - TDC Innovation 2021
rogeralbinoi
1
290
Código Limpo - DevDay Fatec Mogi Mirim 2019
rogeralbinoi
1
230
Princípios S.O.L.I.D - DevDay Fatec Mogi Mirim 2019
rogeralbinoi
1
440
Construindo Progressive Web Apps - GDG Mogi Guaçu 2019
rogeralbinoi
1
240
Criando Componentes com ReactJS
rogeralbinoi
0
550
Other Decks in Programming
See All in Programming
継続モナドとリアクティブプログラミング
yukikurage
3
610
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
190
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
140
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
860
【やさしく解説 設計編 #1】「ドメイン駆動」と「実装駆動」ってなに? 〜設計の考え方を、たとえ話で学ぼう〜
panda728
PRO
1
120
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
430
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
170
自作OSでスライド発表する
uyuki234
1
3.8k
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
240
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
500
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
230
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
210
Featured
See All Featured
Between Models and Reality
mayunak
4
370
Claude Code のすすめ
schroneko
67
230k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.4k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
190
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
280
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
220
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
240
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.6k
Building the Perfect Custom Keyboard
takai
2
810
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
180
Transcript
Layouts flexíveis Layouts flexíveis com Flex-box com Flex-box
Roger Albino Roger Albino Sou desenvolvedor front-end na Vorax, em
Mogi Mirim. Front-ender, músico, e jogador de Pump it Up
None
Container Container
.container { display: flex; /* or inline-flex */ } Container
.container { flex-direction: row | row-reverse | column | column-reverse;
} Direction
.container{ flex-wrap: nowrap | wrap | wrap-reverse; } Wrap
flex-flow: <‘flex-direction’> || <‘flex-wrap’> Shorthand para flex-direction e flex-wrap
.container { justify-content: flex-start | flex-end | center | space-between
| space-around; } Justify Content
.container { align-items: flex-start | flex-end | center | baseline
| stretch; } Align-items
.container { align-content: flex-start | flex-end | center | space-between
| space-around | stretch; } align-content
Flex-item Flex-item
.item { order: <integer>; } order
.item { flex-grow: <number>; /* default 0 */ } Flex-grow
.item { flex-shrink: <number>; /* default 1 */ } Flex-shrink
.item { flex-basis: <length> | auto; /* default auto */
} Flex-basis
flex: none; /* 1 valor: flex-grow */ flex: 2; /*
1 valor: flex-basis */ flex: 30px; /* 2 valores: flex-grow | flex-basis */ flex: 1 30px; /* 2 valores: flex-grow | flex-shrink */ flex: 2 2; /* 3 valores: flex-grow | flex-shrink | flex-basis */ flex: 2 2 10%; Flex
.item { align-self: auto | flex-start | flex-end | center
| baseline | stretch; } Align-self
Posso usar? Posso usar?
http://caniuse.com/#feat=flexbox
@mixin flexbox() { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display:
-webkit-flex; display: flex; } @mixin flex($values) { -webkit-box-flex: $values; -moz-box-flex: $values; -webkit-flex: $values; -ms-flex: $values; flex: $values; } @mixin order($val) { -webkit-box-ordinal-group: $val; -moz-box-ordinal-group: $val; -ms-flex-order: $val; -webkit-order: $val; order: $val; } SCSS
Referências Referências https://css-tricks.com/snippets/css/a-guide-to-flexbox http://www.w3.org/TR/css-flexbox-1/ https://developer.mozilla.org/pt- BR/docs/CSS/Usando_caixas_flexiveis_css http://www.livrosdomaujor.com.br/css3/index.php
Sites uteis Sites uteis http://flexiejs.com/playground/ http://the-echoplex.net/flexyboxes/
Obrigado. Obrigado.