Popcorn Hack 1

The three beakers are refactored from an inline style and a made up box class into one ocs__grid, one ocs__grid--standard variant, and three ocs__grid-cell boxes.

Challenge

Popcorn Hack 1: three beakers in an OCS standard grid with no inline style and no box class. Press Run.

Lines: 1 Characters: 0
UI Output

Popcorn Hack 2

All 4 beakers sit in one row, and the Control Beaker is twice as wide as each of the others:

  • 4 boxes in a row: 4 fr values
  • Control Beaker twice as wide: 1fr 1fr 1fr 2fr, with the 2 on the last box

Challenge

Popcorn Hack 2: four beakers in one row with grid-template-columns: 1fr 1fr 1fr 2fr. Press Run.

Lines: 1 Characters: 0
UI Output

Homework Hack

Both grids are rebuilt with only OCS classes, with a variant and cell types picked for each:

  • Grid 1: ocs__grid--standard. The title is ocs__grid-cell--header and Beaker 3, the outlier, is ocs__grid-cell--accent
  • Grid 2: ocs__grid--calculator, a keypad for beaker readings. The Avg key is ocs__grid-cell--accent

Challenge

Homework Hack: a standard grid with header and accent cells, plus a calculator keypad with an accent Avg key, using only OCS classes. Press Run.

Lines: 1 Characters: 0
UI Output