The New Styles
summary
Covers concrete use of CSS Custom Properties (double-hyphen vars) with runtime overrides on :hover, fallbacks via var(..., default), and a calc-based aspect-ratio trick that drives width/height and font-size; notes variables cannot be used inside media queries yet. Shows CSS Grid specifics: grid-template with repeat, minmax and fr units, autofill + minmax to fill leftover space, and grid-auto-flow: dense to produce masonry layouts without JS; IE11 support is limited but recent sites are shipping it.
AI-written summary · about
chapters (33)
- 0:00Introduction and welcome
- 1:09Audience CSS experience
- 2:16Sass and preprocessors
- 3:24CSS variables history
- 4:08Custom properties basics
- 5:33Root scope and cascading
- 6:38Runtime variable changes
- 8:02Overriding properties
- 9:12Fallback values
- 10:16Browser support detection
- 10:58Media queries limitation
- 11:40Animations with variables
- 12:43Aspect ratio with calc
- 14:57CSS grid introduction
- 15:19Layout evolution history
- 17:26CSS grid benefits
- 18:10Grid container setup
- 19:15Grid template columns
- 20:21Grid template rows
- 21:30Column gaps and spacing
- 22:35Minmax function
- 23:15Fraction units
- 24:44Autofill and minmax
- 26:55Masonry layout
- 29:08Grid child alignment
- 30:57Grid column positioning
- 32:02Spanning multiple rows
- 32:45Negative grid lines
- 34:08Named lines
- 35:58Named areas
- 38:54Complex grid syntax
- 40:21Browser support and fallbacks
- 41:03Closing and Q&A
