Semantics Developer semantics vs. HTML/CSS semantics
Slide 40
Semantics Developer semantics vs. HTML/CSS semantics Is there really such a thing as CSS semantics??
Slide 41
Semantics Developer semantics vs. HTML/CSS semantics Is there really such a thing as CSS semantics?? When creating classes, stick with developer semantics!
Slide 42
Methodology “a set of methods, rules, or ideas that are important in a science or art : a particular procedure or set of procedures” *Merriam-Webster
Slide 43
Slide 44
Slide 45
Use flex box or grid to center the contents.
Slide 46
Use flex box or grid to center the contents. Decide on consistent margins for components.
Slide 47
Use flex box or grid to center the contents. Decide on consistent margins for components. Establish consistent helper classes in incremental values, 5, 10, 15, etc.
Slide 48
WAT?
Slide 49
Media Object with BEM and FlexBox
Slide 50
Slide 51
Slide 52
Slide 53
Slide 54
Block
The Shell The highest level of a component.
Slide 55
Block The Shell
Slide 56
Element (image, heading, sub-heading, copy, etc.) Element is a child of block. Welcome to the party! Speaker Bio Chris DeMars is a Developer Advocate at Quicken Loans in Detroit, Michigan. He is an international speaker…
Slide 57
Element (image, heading, sub-heading, copy, etc.) Element is a child of block. Welcome to the party! Speaker Bio Chris DeMars is a Developer Advocate at Quicken Loans in Detroit, Michigan. He is an international speaker…
Slide 58
Element
(image, heading, sub-heading, copy, etc.)
Elements
Slide 59
Modifier (color, size, weight, etc.) Represents a different state or look of either block or element. Welcome to the party! Speaker Bio Chris DeMars is a Developer Advocate at Quicken Loans in Detroit, Michigan. He is an international speaker…
Slide 60
Modifier (color, size, weight, etc.) Represents a different state or look of either block or element. Welcome to the party! Speaker Bio Chris DeMars is a Developer Advocate at Quicken Loans in Detroit, Michigan. He is an international speaker…
Slide 61
Modifier (color, size, weight, etc.)
Modifiers
Slide 62
“ We’re not designing pages, we’re designing systems of components. ” - Stephen Hay | @stephenhay
Slide 63
Reusability
Slide 64
Style Naming
Slide 65
Style Naming
Remember developer semantics?
Slide 66
Style Naming
Remember developer semantics? Be specific about what the class is supposed to style.
Slide 67
Separation of Skin & Structure
Slide 68
Separation of Skin & Structure
Just like OOCSS
Slide 69
Separation of Skin & Structure
Just like OOCSS Thanks Nicole Sullivan!
Slide 70
Separate Skin & Structure
Slide 71
Separate Container & Content
Slide 72
Downfalls?
Slide 73
Chained Classes === Acceptable Bloat
Slide 74
Chained Classes === Acceptable Bloat
Causes bloat
Slide 75
Chained Classes === Acceptable Bloat
Causes bloat But it is very specific without the hassle of specificity.