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
82
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
86
Expressões Regulares
mendrone
0
52
A arte da composição
mendrone
0
44
Como escolher uma stack para meu projeto?
mendrone
0
34
Vue.js - O Antes, o Durante e o Depois
mendrone
0
130
Future Proof CSS
mendrone
1
130
High Speed Workflow
mendrone
4
150
Usabilidade - O bom senso é o seu melhor amigo
mendrone
0
95
Um Simples Checkup Pode Salvar a Sua Loja Virtual
mendrone
0
82
Other Decks in Technology
See All in Technology
Devin プロモコードの受け取りと適用(2026.10.27)
kinopeee
1
760
AI秘書と毎日働くのはもう当たり前。開発以外の業務に足りない機能をどう埋める?
minorun365
PRO
4
2k
正解のない研修に放り出されて / Being thrown into a training program with no right answers
ohnoeight
1
170
"計画的無茶振り"を通してAIネイティブ世代の新人を育てる
subroh0508
1
130
Claude for Google Workspaces ポン出し/claude-for-google-workspace-slide-conversion
emiki
0
13k
re:Inventで、人生は変わったのか? / growth-builders-hub-1-reinvent-2026
mhrtech
2
170
なぜ東京にいる私が、新潟の技術コミュニティを運営するのか by 八雲慎之助
yakumo
0
160
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
2.8k
AI時代の開発はウォーターフォールに回帰する? / development-with-ai-back-to-wf
okamototakuyasr2
0
160
reInvent2026stby LT00 "Change your life!"
shinichirokawano
1
490
Adversary Infrastructure Hunting101
disconinja
0
180
Lint の層を組み直した話
bengo4com
1
260
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.9k
The Curse of the Amulet
leimatthew05
3
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
540
How to train your dragon (web standard)
notwaldorf
96
6.9k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Believing is Seeing
oripsolob
1
260
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
590
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
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