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
Future Proof CSS - 2019
Search
Vitor Mendrone
May 03, 2019
Technology
79
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Future Proof CSS - 2019
Vitor Mendrone
May 03, 2019
More Decks by Vitor Mendrone
See All by Vitor Mendrone
Como se tornar indispensável em um mercado em crise?
mendrone
0
83
Expressões Regulares
mendrone
0
48
A arte da composição
mendrone
0
40
Como escolher uma stack para meu projeto?
mendrone
0
31
Vue.js - O Antes, o Durante e o Depois
mendrone
0
120
Future Proof CSS
mendrone
1
120
High Speed Workflow
mendrone
4
150
Usabilidade - O bom senso é o seu melhor amigo
mendrone
0
89
Um Simples Checkup Pode Salvar a Sua Loja Virtual
mendrone
0
78
Other Decks in Technology
See All in Technology
Gitは怖い?共有ワークスペースから始めるSnowflakeチーム開発
coco_se
0
120
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
480
Tab5をRubyで動くパソコンにする
kishima
2
330
なぜSRE・セキュリティは評価されないのか?守りの組織を事業成長エンジンに変えた実践
cscengineer
PRO
3
2.5k
こんなアーキテクチャ図は嫌だ BEYOND THE TIME: 半年後の自分へ贈る15のメッセージ / 15 of Anti-pattern in AWS Architecture Diagrams
naospon
3
310
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
8
7.8k
AI 駆動 Terraform 開発/SRE_BizReach_MIXI_2
visional_engineering_and_design
3
2k
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
210
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
130
20260906 「AWS運用入門」著者が教える、運用業務への生成AI活用入門
masaruogura
0
260
生成AIのテナント制御とシャドーMCP対策 | AIを"止めずに"、情報を守る
yukun
0
150
家のリアーキテクト・リファクタリング
suguruooki
0
110
Featured
See All Featured
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Technical Leadership for Architectural Decision Making
baasie
3
560
Code Review Best Practice
trishagee
74
20k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
340
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
820
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Transcript
Future Proof CSS Escrevendo folhas de estilo resistentes ao tempo
OLÁ! Vitor Mendrone Senior Software Developer
None
CSS já me fo&*% pra cara&*%
O sofrimento é um grande professor E me ensinou algumas
coisas
Aprenda com os Designers de UX Planejamento é tudo
01 SEU TRABALHO PRECISA GERAR VALOR MESMO QUANDO VOCÊ NÃO
ESTÁ CODANDO
01 INVISTA TEMPO ANALISANDO PÁGINA A PÁGINA DO LAYOUT Não
escreva uma linha de código sem antes planejar minuciosamente como implementá-lo
Seu CSS deve ser sempre HTML Agnostic Evite ao máximo
utilizar seletores de tags (type selectors) em suas folhas de estilo.
Don’t
Do
Não tenha medo de inserir novos elementos HTML Não é
errado incluir novos elementos desde que sirvam para criar componentes mais robustos
None
Caption Utilize sempre o mínimo seletor viável. Se possível, substitua
seletores aninhados por novas classes 4
Evite adicionar mais CSS para resolver bugs Se necessário dê
um passo atrás e tenha certeza de que o bug só pode ser resolvido com mais CSS
Use e abuse das devtools do seu browser
Eu escreveria isso a mão? 6
Eu escreveria isso a mão?
Use um normalizador de CSS O normalize.css é seu amigo
e continuará sendo por muito tempo.
O normalize garante consistência em situações onde o reset não
atua.
http://necolas.github.io/normalize.css/
box-sizing: border-box; Box-sizing: border-box; só não é default por um
erro do CSSWG
08 BOX-SIZING PADRÃO CONSIDERA QUE O WIDTH TRATA O TAMANHO
DO CONTEÚDO Dessa forma ele ignora padding e border no tamanho final
Regra não escrita do front-end: Siga o @sergio_caelum http://sergiolopes.org/css-box-sizing-border-box/
09 NUNCA USE !IMPORTANT E nunca diga nunca!
9.1 E apenas pelo tempo necessário para investigar e codar
a solução definitiva. Para resolver rapidamente bugs de produção
9.2 Apenas durante o desenvolvimento, quando ignorar a cascata for
o caminho mais curto para o teste. Para testes rápidos
9.2 Quando for necessário garantir que um elemento não pode
ser alterado pelo usuário. Para garantir imutabilidade.
Código escalável é negócio escalável E essas lições que aprendi
me ajudaram a garantir que sou capaz de criar produtos que escalem minha carreira.
Não são regras escritas em pedra. Seja adaptável, respeite seu
tempo e nunca deixe de aprender.
Work & Co 231 Front St, 5th Floor, Brooklyn, NY
11201 +1 347-470-4803
[email protected]
work.co