gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite54e735ee54e735eFormat plain theme elements with nested rules and bare mediamree54e735e/theme/theme.hl

21.1 KB

  1. // theme/theme.hl — THE WORLDAPI THEME: how WorldAPI makes the black/white components of components.hybriel.worldapi.org
  2. // look for itself. A styles file (hl:web): an app inherits it from its own styles.hl and sets its accent and type colours:
  3. //
  4. // inherit './theme/theme.hl'
  5. // import { var } from 'hl:web/css'
  6. // import { purple, yellow } from './shared/tokens.hl'
  7. // colorAccent = var(purple)
  8. // colorType1 = var(yellow)
  9. //
  10. // What is in here, in this order:
  11. // 1. layout tokens and the type-colour slots (the palette and the semantic roles are shared/tokens.hl)
  12. // 2. plain HTML elements: text, links, buttons, fields, foldables, drop zones, tables, pills
  13. // 3. the components of components.hybriel.worldapi.org, themed WITHOUT forking them: every rule repeats the component's
  14. // own selector with `html ` in front, so it wins over the component's Style (which comes later in the one stylesheet)
  15. // and never emits the same selector twice (hl:web refuses that)
  16. // The shells (header, sidebar, content-first, list-first, three-pane) carry their own Style in theme/shell/*.hl.
  17. //
  18. // Design rules (docs/design-rules.md): borderless — a border only where it means something (foldables, drop zones,
  19. // focus); no boxed cards, no grey frames; colours only through the named tokens; titles white; mobile first, wider
  20. // layouts in `@media (min-width: 60rem)` (the one breakpoint of the theme, also used by theme/shell/*.hl).
  21. import { var } from 'hl:web/css'
  22. import { yellow, greenDark, purple, blueDark, orange, blueLight, colorBackground, colorBackgroundSunken, colorSurface, colorBorder, colorText, colorTextStrong, colorTextMuted, colorSuccess, colorWarning, colorDanger, colorAccent, colorAccentText } from '../shared/tokens.hl'
  23. // ---- 1. tokens -------------------------------------------------------------------------------------------------
  24. // the type colours: an app names what each slot means (tracker: 1 Movie, 2 Series, 3 Show, 4 Genre, 5 Person) and may
  25. // point a slot at another palette colour in its styles.hl (`colorType1 = var(yellow)`)
  26. colorType1 = var(yellow)
  27. colorType2 = var(greenDark)
  28. colorType3 = var(purple)
  29. colorType4 = var(blueDark)
  30. colorType5 = var(orange)
  31. colorType6 = var(blueLight)
  32. // the layout: the centred content column (header contents end flush with it), the side gutter, the header height, the
  33. // sidebar and list-pane widths of the shells
  34. layoutColumn = var('72rem')
  35. layoutGutter = var('1rem')
  36. layoutHeader = var('3.25rem')
  37. layoutSidebar = var('16rem')
  38. layoutList = var('24rem')
  39. // the tap size: every button, icon button, link in a menu or list, tab, crumb and field is at least this tall and wide (44 px, the
  40. // minimum touch target); mobile first — only the buttons and menu links of the desktop (min-width 60rem) go denser, on purpose
  41. layoutTap = var('2.75rem')
  42. // the corner radii — exactly two (docs/design-rules.md "Corner radius"): radiusSmall for every small item (buttons, pills,
  43. // fields, tags, menu items, chips, day cells), radiusLarge for everything else that is rounded (panels, modals, popovers,
  44. // dropdowns, foldables, tiles/posters); '50%' only for round things (avatars, the check circle). check-theme flags any other
  45. radiusSmall = var('5px')
  46. radiusLarge = var('10px')
  47. // ---- 2. plain elements -----------------------------------------------------------------------------------------
  48. // Keep the whole selector for the selector list.
  49. '*,
  50. *::before,
  51. *::after' { boxSizing = 'border-box' }
  52. html {
  53. colorScheme = 'dark'
  54. scrollbarColor = colorBorder + ' transparent'
  55. }
  56. body {
  57. margin = '0'
  58. minHeight = '100dvh'
  59. font = '16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif'
  60. color = colorText
  61. background = colorBackground
  62. overflowWrap = 'anywhere'
  63. }
  64. // Keep the whole selector for the pseudo-element.
  65. '::selection' {
  66. color = colorAccentText
  67. background = colorAccent
  68. }
  69. // Keep the attribute-only selector; no bare form exists.
  70. '[hidden]' { display = 'none !important' }
  71. h1 {
  72. margin = '0 0 1rem'
  73. fontSize = '1.6rem'
  74. lineHeight = '1.25'
  75. color = colorTextStrong
  76. }
  77. h2 {
  78. margin = '1.5rem 0 .6rem'
  79. fontSize = '1.25rem'
  80. lineHeight = '1.3'
  81. color = colorTextStrong
  82. }
  83. h3 {
  84. margin = '1.25rem 0 .5rem'
  85. fontSize = '1.05rem'
  86. lineHeight = '1.3'
  87. color = colorTextStrong
  88. }
  89. h4 {
  90. margin = '1rem 0 .4rem'
  91. fontSize = '1rem'
  92. color = colorTextStrong
  93. }
  94. p { margin = '0 0 1rem' }
  95. strong { color = colorTextStrong }
  96. small { fontSize = '.85rem' }
  97. // Keep the class-only selector; no bare class form exists in a styles file.
  98. '.muted' { color = colorTextMuted }
  99. 'p.empty' {
  100. color = colorTextMuted
  101. fontStyle = 'italic'
  102. }
  103. // Keep the class-only selector; no bare class form exists in a styles file.
  104. '.visually-hidden' {
  105. position = 'absolute'
  106. width = '1px'
  107. height = '1px'
  108. margin = '-1px'
  109. padding = '0'
  110. overflow = 'hidden'
  111. clip = 'rect(0 0 0 0)'
  112. whiteSpace = 'nowrap'
  113. border = '0'
  114. }
  115. ul {
  116. margin = '0 0 1rem'
  117. paddingLeft = '1.25rem'
  118. }
  119. ol {
  120. margin = '0 0 1rem'
  121. paddingLeft = '1.5rem'
  122. }
  123. li { margin = '.15rem 0' }
  124. hr {
  125. height = '1px'
  126. margin = '1.5rem 0'
  127. border = '0'
  128. background = colorSurface
  129. }
  130. img {
  131. maxWidth = '100%'
  132. height = 'auto'
  133. }
  134. a {
  135. color = colorAccent
  136. textDecoration = 'none'
  137. textUnderlineOffset = '.2em'
  138. hover { textDecoration = 'underline' }
  139. }
  140. // Keep the whole selector for the selector list.
  141. 'li > a:first-child,
  142. .links a,
  143. .row > a,
  144. .crumbs a' {
  145. display = 'inline-flex'
  146. alignItems = 'center'
  147. minHeight = layoutTap
  148. }
  149. // Keep the standalone pseudo-class; there is no enclosing element.
  150. ':focus-visible' {
  151. outline = '2px solid ' + colorAccent
  152. outlineOffset = '2px'
  153. }
  154. // Keep the whole selector for the selector list.
  155. 'code,
  156. kbd,
  157. samp' {
  158. padding = '.05rem .3rem'
  159. font = '.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  160. background = colorSurface
  161. borderRadius = radiusSmall
  162. }
  163. pre {
  164. margin = '0 0 1rem'
  165. padding = '.75rem 1rem'
  166. overflow = 'auto'
  167. font = '.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  168. background = colorBackgroundSunken
  169. borderRadius = radiusLarge
  170. code {
  171. padding = '0'
  172. background = 'transparent'
  173. }
  174. }
  175. // Keep the whole selector for the selector list.
  176. 'button,
  177. .button' {
  178. display = 'inline-flex'
  179. alignItems = 'center'
  180. justifyContent = 'center'
  181. gap = '.4rem'
  182. minWidth = layoutTap
  183. minHeight = layoutTap
  184. padding = '.4rem .9rem'
  185. font = 'inherit'
  186. fontWeight = '600'
  187. lineHeight = '1.2'
  188. color = colorText
  189. textDecoration = 'none'
  190. background = 'transparent'
  191. border = '0'
  192. borderRadius = radiusSmall
  193. cursor = 'pointer'
  194. }
  195. // Keep the whole selector for the selector list.
  196. 'button:hover,
  197. .button:hover' {
  198. textDecoration = 'none'
  199. background = colorSurface
  200. }
  201. // Keep the whole selector for the selector list.
  202. 'button.primary,
  203. .button.primary,
  204. button[type="submit"]' {
  205. color = colorAccentText
  206. background = colorAccent
  207. }
  208. // Keep the whole selector for the selector list.
  209. 'button.primary:hover,
  210. .button.primary:hover,
  211. button[type="submit"]:hover' {
  212. background = colorAccent
  213. filter = 'brightness(1.1)'
  214. }
  215. // Keep the whole selector for the selector list.
  216. 'button.danger,
  217. .button.danger' { color = colorDanger }
  218. @media {
  219. minWidth = '60rem'
  220. // Keep the whole selector for the selector list.
  221. 'button,
  222. .button' { minHeight = '2.25rem' }
  223. }
  224. button {
  225. disabled {
  226. opacity = '.45'
  227. cursor = 'default'
  228. filter = 'none'
  229. }
  230. }
  231. // Keep the whole selector for the selector list.
  232. 'button svg,
  233. .button svg' {
  234. flex = 'none'
  235. width = '1.25rem'
  236. height = '1.25rem'
  237. }
  238. label {
  239. display = 'block'
  240. marginBottom = '.25rem'
  241. fontWeight = '600'
  242. color = colorTextStrong
  243. }
  244. // Keep the whole selector for the selector list.
  245. 'input,
  246. select,
  247. textarea' {
  248. maxWidth = '100%'
  249. minHeight = layoutTap
  250. padding = '.5rem .7rem'
  251. font = 'inherit'
  252. fontSize = '1rem'
  253. color = colorText
  254. background = colorBackgroundSunken
  255. border = '0'
  256. borderRadius = radiusSmall
  257. }
  258. // Keep the whole selector for the selector list.
  259. 'input:focus,
  260. select:focus,
  261. textarea:focus' {
  262. outline = '2px solid ' + colorAccent
  263. outlineOffset = '0'
  264. }
  265. // Keep the whole selector for the selector list.
  266. 'input[aria-invalid="true"],
  267. textarea[aria-invalid="true"]' {
  268. outline = '2px solid ' + colorDanger
  269. outlineOffset = '0'
  270. }
  271. // Keep the whole selector for the selector list.
  272. 'input[type="checkbox"],
  273. input[type="radio"]' {
  274. width = '1.25rem'
  275. height = '1.25rem'
  276. minHeight = '0'
  277. padding = '0'
  278. accentColor = colorAccent
  279. }
  280. // Keep the whole selector for the selector list.
  281. 'label:has(> input[type="checkbox"]),
  282. label:has(> input[type="radio"])' {
  283. display = 'flex'
  284. alignItems = 'center'
  285. gap = '.6rem'
  286. minHeight = layoutTap
  287. }
  288. // Keep the whole selector for the selector list.
  289. 'input::placeholder,
  290. textarea::placeholder' { color = colorTextMuted }
  291. textarea {
  292. width = '100%'
  293. minHeight = '6rem'
  294. resize = 'vertical'
  295. }
  296. fieldset {
  297. margin = '0 0 1rem'
  298. padding = '0'
  299. border = '0'
  300. }
  301. legend {
  302. padding = '0'
  303. marginBottom = '.5rem'
  304. fontWeight = '600'
  305. color = colorTextStrong
  306. }
  307. form {
  308. p { margin = '0 0 1rem' }
  309. }
  310. progress { accentColor = colorAccent }
  311. details {
  312. margin = '0 0 .75rem'
  313. border = '1px solid ' + colorBorder
  314. borderRadius = radiusLarge
  315. '> summary' {
  316. '+ *' { marginTop = '.75rem' }
  317. }
  318. }
  319. summary {
  320. display = 'block'
  321. minHeight = layoutTap
  322. padding = '.6rem .9rem'
  323. fontWeight = '600'
  324. color = colorTextStrong
  325. cursor = 'pointer'
  326. hover { background = colorSurface }
  327. }
  328. 'details[open]' {
  329. '> summary' { borderBottom = '1px solid ' + colorBorder }
  330. }
  331. // Keep the whole selector for the functional condition.
  332. 'details > :not(summary)' {
  333. marginLeft = '.9rem'
  334. marginRight = '.9rem'
  335. }
  336. // Keep the whole selector for the functional condition.
  337. 'details > :last-child:not(summary)' { marginBottom = '.75rem' }
  338. // Keep the selector list; its dashed border marks the functional drop zone.
  339. 'drop-zone,
  340. .drop-zone' {
  341. display = 'block'
  342. padding = '1.25rem'
  343. textAlign = 'center'
  344. color = colorTextMuted
  345. border = '2px dashed ' + colorBorder
  346. borderRadius = radiusLarge
  347. }
  348. // Keep the whole selector for the selector list.
  349. 'drop-zone.over,
  350. .drop-zone.over' {
  351. color = colorText
  352. borderColor = colorAccent
  353. background = colorSurface
  354. }
  355. table {
  356. width = '100%'
  357. margin = '0 0 1rem'
  358. borderCollapse = 'collapse'
  359. }
  360. th {
  361. padding = '.4rem .6rem'
  362. fontSize = '.85rem'
  363. fontWeight = '600'
  364. textAlign = 'left'
  365. color = colorTextMuted
  366. }
  367. td {
  368. padding = '.5rem .6rem'
  369. verticalAlign = 'top'
  370. }
  371. // Keep the whole selector for the selector list.
  372. 'td,
  373. th' { overflowWrap = 'break-word' }
  374. tbody {
  375. 'tr:nth-child(odd)' { background = colorBackgroundSunken }
  376. tr {
  377. hover { background = colorSurface }
  378. }
  379. }
  380. // Keep the class-only selector; no bare class form exists in a styles file.
  381. '.type-1' { color = colorType1 }
  382. // Keep the class-only selector; no bare class form exists in a styles file.
  383. '.type-2' { color = colorType2 }
  384. // Keep the class-only selector; no bare class form exists in a styles file.
  385. '.type-3' { color = colorType3 }
  386. // Keep the class-only selector; no bare class form exists in a styles file.
  387. '.type-4' { color = colorType4 }
  388. // Keep the class-only selector; no bare class form exists in a styles file.
  389. '.type-5' { color = colorType5 }
  390. // Keep the class-only selector; no bare class form exists in a styles file.
  391. '.type-6' { color = colorType6 }
  392. // Keep the class-only selector; no bare class form exists in a styles file.
  393. '.success' { color = colorSuccess }
  394. // Keep the class-only selector; no bare class form exists in a styles file.
  395. '.warning' { color = colorWarning }
  396. // Keep the class-only selector; no bare class form exists in a styles file.
  397. '.danger' { color = colorDanger }
  398. // Keep the class-only selector; no bare class form exists in a styles file.
  399. '.pill' {
  400. display = 'inline-block'
  401. padding = '.1rem .55rem'
  402. fontSize = '.8rem'
  403. fontWeight = '700'
  404. lineHeight = '1.5'
  405. color = colorAccentText
  406. background = colorAccent
  407. borderRadius = radiusSmall
  408. whiteSpace = 'nowrap'
  409. }
  410. // Keep the class-only selector; no bare class form exists in a styles file.
  411. '.pill.type-1' {
  412. color = colorAccentText
  413. background = colorType1
  414. }
  415. // Keep the class-only selector; no bare class form exists in a styles file.
  416. '.pill.type-2' {
  417. color = colorAccentText
  418. background = colorType2
  419. }
  420. // Keep the class-only selector; no bare class form exists in a styles file.
  421. '.pill.type-3' {
  422. color = colorAccentText
  423. background = colorType3
  424. }
  425. // Keep the class-only selector; no bare class form exists in a styles file.
  426. '.pill.type-4' {
  427. color = colorAccentText
  428. background = colorType4
  429. }
  430. // Keep the class-only selector; no bare class form exists in a styles file.
  431. '.pill.type-5' {
  432. color = colorAccentText
  433. background = colorType5
  434. }
  435. // Keep the class-only selector; no bare class form exists in a styles file.
  436. '.pill.type-6' {
  437. color = colorAccentText
  438. background = colorType6
  439. }
  440. // Keep the class-only selector; no bare class form exists in a styles file.
  441. '.pill.success' {
  442. color = colorAccentText
  443. background = colorSuccess
  444. }
  445. // Keep the class-only selector; no bare class form exists in a styles file.
  446. '.pill.warning' {
  447. color = colorAccentText
  448. background = colorWarning
  449. }
  450. // Keep the class-only selector; no bare class form exists in a styles file.
  451. '.pill.danger' {
  452. color = colorAccentText
  453. background = colorDanger
  454. }
  455. // Keep the class-only selector; no bare class form exists in a styles file.
  456. '.pill.quiet' {
  457. color = colorText
  458. background = colorSurface
  459. }
  460. // ---- 3. the components of components.hybriel.worldapi.org --------------------------------------------------------
  461. // Their own Style draws frames around buttons, fields, editors and day cells. The theme takes the decorative ones away
  462. // (the drop zone's dashed border and the focus rings stay — they mean something) and lets surfaces separate instead.
  463. // Their corners become the theme's two radii: small items radiusSmall, popups / windows / editors / day tiles radiusLarge.
  464. // pagination
  465. 'html pagination button' { border = '0' borderRadius = radiusSmall minWidth = layoutTap }
  466. 'html pagination li.current button' { border = '0' }
  467. // modal: the dimmed page around the window is the separation
  468. 'html modal-dialog > dialog' { background = colorSurface border = '0' borderRadius = radiusLarge boxShadow = '0 1rem 3rem ' + colorBackgroundSunken }
  469. 'html modal-dialog header' { borderBottom = '0' }
  470. 'html modal-dialog modal-body > footer' { background = colorSurface borderTop = '0' }
  471. 'html modal-dialog button' { borderRadius = radiusSmall }
  472. 'html modal-dialog button:hover' { background = colorBackground }
  473. // month view: the day cells are tiles with a gap, no grid lines
  474. 'html month-view ol' { gap = '.25rem' }
  475. 'html month-view button' { border = '0' borderRadius = radiusSmall }
  476. 'html #month-days li' { border = '0' borderRadius = radiusLarge }
  477. // date picker + date range picker: borderless field, the popup is a raised surface
  478. 'html date-picker input' { border = '0' borderRadius = radiusSmall }
  479. 'html range-picker input' { border = '0' borderRadius = radiusSmall }
  480. 'html date-picker input[aria-invalid="true"]' { outline = '2px solid ' + colorDanger outlineOffset = '-2px' }
  481. 'html range-picker input[aria-invalid="true"]' { outline = '2px solid ' + colorDanger outlineOffset = '-2px' }
  482. 'html date-picker month-view' { background = colorSurface border = '0' borderRadius = radiusLarge boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  483. 'html range-picker month-view' { background = colorSurface border = '0' borderRadius = radiusLarge boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  484. 'html date-picker button' { border = '0' borderRadius = radiusSmall }
  485. 'html range-picker button' { border = '0' borderRadius = radiusSmall }
  486. 'html date-picker month-view ol' { gap = '.2rem' }
  487. 'html range-picker month-view ol' { gap = '.2rem' }
  488. 'html date-picker ol.days li' { background = colorBackground border = '0' borderRadius = radiusSmall }
  489. 'html range-picker ol.days li' { background = colorBackground border = '0' borderRadius = radiusSmall }
  490. 'html date-picker ol.days li.outside' { background = 'transparent' }
  491. 'html range-picker ol.days li.outside' { background = 'transparent' }
  492. 'html date-picker ol.days li.selected' { background = colorAccent }
  493. 'html range-picker ol.days li.selected' { background = colorAccent }
  494. 'html range-picker ol.days li.between' { background = colorBackgroundSunken outline = '0' }
  495. 'html range-picker ol.days li.between time' { color = colorAccent }
  496. // file upload: the drop zone keeps its dashed border (it is a drop zone); the choose button is a plain button
  497. 'html file-upload drop-zone' { borderRadius = radiusLarge }
  498. 'html file-upload label.choose' { display = 'inline-flex' alignItems = 'center' minHeight = layoutTap fontWeight = '600' border = '0' borderRadius = radiusSmall }
  499. 'html file-upload label.choose:hover' { color = colorTextStrong filter = 'brightness(1.15)' }
  500. // file upload, several files: the same (the component's own radii are .5rem and .35rem)
  501. 'html files-upload drop-zone' { borderRadius = radiusLarge }
  502. 'html files-upload pick-area' { borderRadius = radiusLarge }
  503. 'html files-upload ul.files img.thumb, html files-upload ul.files .kind, html files-upload button.remove' { borderRadius = radiusSmall }
  504. 'html files-upload label.camera' { borderRadius = radiusSmall }
  505. 'html files-upload label.choose' { display = 'inline-flex' alignItems = 'center' minHeight = layoutTap fontWeight = '600' border = '0' borderRadius = radiusSmall }
  506. 'html files-upload label.choose:hover' { color = colorTextStrong filter = 'brightness(1.15)' }
  507. // Markdown editor: one sunken surface, the toolbar a surface strip; no lines between the parts
  508. 'html md-editor' { border = '0' borderRadius = radiusLarge }
  509. 'html md-editor nav' { borderBottom = '0' borderRadius = radiusLarge + ' ' + radiusLarge + ' 0 0' }
  510. 'html md-editor nav button' { minWidth = layoutTap minHeight = layoutTap borderRadius = radiusSmall }
  511. // desktop: the toolbar's 11 buttons (the Table button was added) must stay in ONE row in the narrow new-ticket form (512 px): 40 px wide, still 44 px high; the phone keeps the full 44 px square
  512. '@media (min-width: 60.01rem)' { // the same desktop breakpoint, spelled differently: a block's key must be unique in the file
  513. 'html md-editor nav button' { minWidth = '2.5rem' }
  514. }
  515. 'html md-editor ul.files' { borderBottom = '0' }
  516. 'html md-editor link-form' { borderBottom = '0' background = colorSurface }
  517. 'html md-editor link-form input' { border = '0' borderRadius = radiusSmall }
  518. 'html md-editor link-form button' { border = '0' borderRadius = radiusSmall }
  519. 'html md-editor article img' { borderRadius = radiusLarge }
  520. 'html md-editor article code' { borderRadius = radiusSmall }
  521. 'html md-editor article pre' { border = '0' borderRadius = radiusLarge }
  522. // tables in a comment or the editor: thin grey lines (1 px, the palette's border grey). The component draws no cell lines of its own since components 0a9216f; the page's theme owns the table look
  523. 'html md-editor article th,
  524. html md-editor article td' { border = '1px solid ' + colorBorder } // functional: the lines are the table's grid, they separate the cells of the user's data
  525. // code inside a heading (docs: `ListFirst (theme/shell/list-first.hl) — <list-first …>`) stays text-sized, not title-sized
  526. 'h1 code,
  527. h2 code,
  528. h3 code,
  529. html md-editor article h1 code,
  530. html md-editor article h2 code,
  531. html md-editor article h3 code' { fontSize = '.65em' overflowWrap = 'anywhere' }
  532. 'html md-editor td a,
  533. html md-editor th a' { display = 'inline-flex' alignItems = 'center' minHeight = layoutTap } // a link alone in a table cell is a tap target
  534. 'html md-editor footer' { borderTop = '0' }
  535. 'html md-editor footer button' { border = '0' borderRadius = radiusSmall }
  536. // comments: the quiet 'edited' label keeps its look (no padding, no frame) but on the phone its box is 44 px (desktop stays dense); the negative margin gives the room back, the row does not grow
  537. '@media (max-width: 59.99rem)' {
  538. 'html comments-block details.comment-history summary' { display = 'inline-flex' alignItems = 'center' justifyContent = 'center' minWidth = layoutTap minHeight = layoutTap margin = '-1rem -.2rem' }
  539. }
  540. // code editor: the gutter is a surface beside the sunken text, no line between them
  541. 'html code-editor' { border = '0' borderRadius = radiusLarge }
  542. 'html code-editor code-gutter' { borderRight = '0' }
  543. // media player: the video area a sunken surface, the seek track a surface with the accent as the played part; the
  544. // buttons are the theme's plain ones (transparent, a surface on hover); the current queue item is the accent on a surface
  545. 'html media-player video' { borderRadius = radiusLarge background = colorBackgroundSunken }
  546. 'html media-player .mp-cover img' { borderRadius = radiusLarge background = colorSurface }
  547. 'html media-player mp-seek .mp-track' { background = colorBackgroundSunken borderRadius = radiusSmall }
  548. // the buffered layer keeps the border grey but softer, so the unbuffered end reads as a lighter end of one bar (not a stub)
  549. 'html media-player mp-seek .mp-buffered' { background = colorBorder opacity = '.6' }
  550. 'html media-player mp-seek .mp-played' { background = colorAccent }
  551. 'html media-player mp-seek .mp-thumb' { background = colorAccent }
  552. 'html media-player mp-buttons button' { borderRadius = radiusSmall }
  553. 'html media-player mp-buttons button:hover' { background = colorSurface }
  554. 'html media-player mp-buttons .mp-times' { color = colorTextMuted }
  555. 'html media-player ol.mp-queue button' { borderRadius = radiusSmall }
  556. 'html media-player ol.mp-queue li.current button' { color = colorAccent background = colorSurface }
  557. 'html media-player ol.mp-queue .mp-q-dur' { color = colorTextMuted }
  558. 'html media-player ol.mp-queue li.current .mp-q-dur' { color = colorAccent }

Branches

Latest commits

  • e54e735eFormat plain theme elements with nested rules and bare mediamre
  • 547f834eRecord LY7 deployment and live verificationmre
  • fa4600b1Link caller-slot style exceptions to hybriel#270mre
  • 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
  • b810453etracker-demo: nest child and compound selectors in Stylemre
  • 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
  • ab22bdc2mail-demo: nest child and compound selectors in Stylemre
  • fe2d8de9home: nest child and compound selectors in Stylemre
  • e631791buser-menu: nest child and compound selectors in Stylemre
  • 69604944three-pane: nest child and compound selectors in Stylemre
  • 3e389b83main-menu: nest child and compound selectors in Stylemre
  • 05413975list-first: nest child and compound selectors in Stylemre
  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
  • 69c9f784Record LY7 slot nesting blocker and minimal repromre
  • b1d4f379app-header: nest child and compound selectors in Stylemre
  • 6385ff8eRecord LY7 style formatting proof and review statusmre
  • 0100f51etracker-demo: format Style with nested rules and bare mediamre
  • 5f82554enotes-demo: format Style with nested rules and bare mediamre
  • 3dc27d78mail-demo: format Style with nested rules and bare mediamre