Skip to content

Instantly share code, notes, and snippets.

@tBaxter
tBaxter / typography.less
Created July 28, 2017 16:28
Typography from Terra project
// This is a bit over-complicated, in my opinion, but there are some neat ideas.
// Comes from the Terra project (now open sourced) my team at Cerner created.
// Typography
// --------------------------------------------------
// Unitless values are used since all font sizes
// should be converted to rem units with a pixel
// fallback via the .rem() mixin.
@print-font-size: 10; // Desired body font size, when printing, in pts.
# First level filters - Songs currently in play (filters downstream can use any from this set)
- Approved (Not christmas, explicitly disliked, or < 30s, skips are < 3)
- Second chances (Approved, but skips are between 3-4. Not skipped within a year, not played within 240 days. Capped at 200.)
- Third chances (Approved, but skips are between 4-5. Not skipped within 480 days, not played within 360 days. Capped at 100.)
- Last chance (Approved, but skips > 5, Not skipped within 480 days, not played within 360 days. Capped at 50.)
# Second level filters
- 1949 and earlier (songs in play, year is < 1949, not played in 180 days, not skipped in 270 days)
- 1950-1959 (songs in play, year is 1950-1959, not played in 180 days, not skipped in 270 days)