SASS Containers HW
OCS SASS Containers Grammar
Source lesson: navigation/sass/containers/lesson
Nesting order used on every page: ocs__container → ocs__card → ocs__grid → ocs__grid-cell, with ocs__table-wrap and ocs__callout also inside the card.
Popcorn Hack: Parade Invite Rescue
page-wrap+ inlinemax-width→ oneocs__container- purple inline
<h1>→ocs__section-titleinside anocs__card, plus a one-lineocs__description - inline flex row +
boxdivs →ocs__grid ocs__grid--standard cols-3with threeocs__grid-cells, the start time as--accent - no
styleattributes or made-up classes left
Poway Rotary Parade Invite
You're invited to the Poway Scripps Rotary Parade, a morning of floats, music and neighbors on Poway Road.
Poway Rotary Parade Invite
You're invited to the Poway Scripps Rotary Parade, a morning of floats, music and neighbors on Poway Road.
Test: at full width the three cells sit side by side. At phone width the standard grid wraps to fewer columns on its own. Nothing in the markup sets a width, so the container’s max-width and the grid handle both sizes.
Homework Hack: Parade Hub Page
Every required piece, in order:
| Requirement | Where |
|---|---|
exactly one ocs__container holding one ocs__card |
outer two divs |
| title + one-line description | ocs__section-title, ocs__description |
cols-3 standard grid with a --header, an --accent and a --muted cell |
the grid |
table rebuilt with ocs__table-wrap + ocs__table, header row + two body rows |
the table |
one ocs__callout at the end |
last element in the card |
The teal inline <h1>, wrap / tile classes, display: flex and border='1' table are all gone.
Poway Rotary Parade
Everything you need for parade day, from where to stand to which floats are confirmed.
| Entry | Status |
|---|---|
| Rotary Club float | Open for volunteers |
| Poway High marching band | Confirmed |
Poway Rotary Parade
Everything you need for parade day, from where to stand to which floats are confirmed.
| Entry | Status |
|---|---|
| Rotary Club float | Open for volunteers |
| Poway High marching band | Confirmed |
Test (narrow and wide): wide, the header spans the top row and the three detail cells sit beneath it. Narrow, the grid wraps and the table stays inside ocs__table-wrap, so it lines up with the card instead of overflowing the page.
Why the cell types fit: the header labels the whole grid. The start time is the one detail everyone needs, so it’s accented. The float line-up time is for participants, not spectators, so it’s muted.