gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit97110ad997110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre97110ad9/theme/theme.hl

26.6 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. // No nested pseudo-element form on day44 (probes v09/v10; hybriel#344/#345/#260).
  50. '*,
  51. *::before,
  52. *::after' { boxSizing = 'border-box' }
  53. body {
  54. margin = '0'
  55. minHeight = '100dvh'
  56. font = '16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif'
  57. color = colorText
  58. background = colorBackground
  59. overflowWrap = 'anywhere'
  60. }
  61. // Keep the whole selector for the pseudo-element.
  62. // No nested pseudo-element form on day44 (probes v09/v10; hybriel#344/#345/#260).
  63. '::selection' {
  64. color = colorAccentText
  65. background = colorAccent
  66. }
  67. // Keep the attribute-only selector; no bare form exists.
  68. // No nested attribute-selector form on day44 (probes v05/v06).
  69. '[hidden]' { display = 'none !important' }
  70. h1 {
  71. margin = '0 0 1rem'
  72. fontSize = '1.6rem'
  73. lineHeight = '1.25'
  74. color = colorTextStrong
  75. }
  76. h2 {
  77. margin = '1.5rem 0 .6rem'
  78. fontSize = '1.25rem'
  79. lineHeight = '1.3'
  80. color = colorTextStrong
  81. }
  82. h3 {
  83. margin = '1.25rem 0 .5rem'
  84. fontSize = '1.05rem'
  85. lineHeight = '1.3'
  86. color = colorTextStrong
  87. }
  88. h4 {
  89. margin = '1rem 0 .4rem'
  90. fontSize = '1rem'
  91. color = colorTextStrong
  92. }
  93. p { margin = '0 0 1rem' }
  94. strong { color = colorTextStrong }
  95. small { fontSize = '.85rem' }
  96. // Keep the class-only selector; no bare class form exists in a styles file.
  97. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  98. '.muted' { color = colorTextMuted }
  99. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  100. 'p.empty' {
  101. color = colorTextMuted
  102. fontStyle = 'italic'
  103. }
  104. // Keep the class-only selector; no bare class form exists in a styles file.
  105. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  106. '.visually-hidden' {
  107. position = 'absolute'
  108. width = '1px'
  109. height = '1px'
  110. margin = '-1px'
  111. padding = '0'
  112. overflow = 'hidden'
  113. clip = 'rect(0 0 0 0)'
  114. whiteSpace = 'nowrap'
  115. border = '0'
  116. }
  117. ul {
  118. margin = '0 0 1rem'
  119. paddingLeft = '1.25rem'
  120. }
  121. ol {
  122. margin = '0 0 1rem'
  123. paddingLeft = '1.5rem'
  124. }
  125. li { margin = '.15rem 0' }
  126. hr {
  127. height = '1px'
  128. margin = '1.5rem 0'
  129. border = '0'
  130. background = colorSurface
  131. }
  132. img {
  133. maxWidth = '100%'
  134. height = 'auto'
  135. }
  136. a {
  137. color = colorAccent
  138. textDecoration = 'none'
  139. textUnderlineOffset = '.2em'
  140. hover { textDecoration = 'underline' }
  141. }
  142. // Keep the whole selector for the selector list.
  143. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  144. 'li > a:first-child,
  145. .links a,
  146. .row > a,
  147. .crumbs a' {
  148. display = 'inline-flex'
  149. alignItems = 'center'
  150. minHeight = layoutTap
  151. }
  152. // Keep the standalone pseudo-class; there is no enclosing element.
  153. // Standalone pseudo has no enclosing element on day44 (probe v07).
  154. ':focus-visible' {
  155. outline = '2px solid ' + colorAccent
  156. outlineOffset = '2px'
  157. }
  158. // Keep the whole selector for the selector list.
  159. code {
  160. padding = '.05rem .3rem'
  161. font = '.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  162. background = colorSurface
  163. borderRadius = radiusSmall
  164. }
  165. kbd {
  166. padding = '.05rem .3rem'
  167. font = '.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  168. background = colorSurface
  169. borderRadius = radiusSmall
  170. }
  171. samp {
  172. padding = '.05rem .3rem'
  173. font = '.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  174. background = colorSurface
  175. borderRadius = radiusSmall
  176. }
  177. pre {
  178. margin = '0 0 1rem'
  179. padding = '.75rem 1rem'
  180. overflow = 'auto'
  181. font = '.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  182. background = colorBackgroundSunken
  183. borderRadius = radiusLarge
  184. code {
  185. padding = '0'
  186. background = 'transparent'
  187. }
  188. }
  189. // Keep the whole selector for the selector list.
  190. // This selector list includes forms without a nested equivalent (probe v12).
  191. 'button,
  192. .button' {
  193. display = 'inline-flex'
  194. alignItems = 'center'
  195. justifyContent = 'center'
  196. gap = '.4rem'
  197. minWidth = layoutTap
  198. minHeight = layoutTap
  199. padding = '.4rem .9rem'
  200. font = 'inherit'
  201. fontWeight = '600'
  202. lineHeight = '1.2'
  203. color = colorText
  204. textDecoration = 'none'
  205. background = 'transparent'
  206. border = '0'
  207. borderRadius = radiusSmall
  208. cursor = 'pointer'
  209. }
  210. // Keep the whole selector for the selector list.
  211. // This selector list includes forms without a nested equivalent (probe v12).
  212. 'button:hover,
  213. .button:hover' {
  214. textDecoration = 'none'
  215. background = colorSurface
  216. }
  217. // Keep the whole selector for the selector list.
  218. // No nested attribute-selector form on day44 (probes v05/v06).
  219. 'button.primary,
  220. .button.primary,
  221. button[type="submit"]' {
  222. color = colorAccentText
  223. background = colorAccent
  224. }
  225. // Keep the whole selector for the selector list.
  226. // No nested attribute-selector form on day44 (probes v05/v06).
  227. 'button.primary:hover,
  228. .button.primary:hover,
  229. button[type="submit"]:hover' {
  230. background = colorAccent
  231. filter = 'brightness(1.1)'
  232. }
  233. // Keep the whole selector for the selector list.
  234. // This selector list includes forms without a nested equivalent (probe v12).
  235. 'button.danger,
  236. .button.danger' { color = colorDanger }
  237. @media {
  238. minWidth = '60rem'
  239. // Keep the whole selector for the selector list.
  240. // This selector list includes forms without a nested equivalent (probe v12).
  241. 'button,
  242. .button' { minHeight = '2.25rem' }
  243. }
  244. button {
  245. disabled {
  246. opacity = '.45'
  247. cursor = 'default'
  248. filter = 'none'
  249. }
  250. }
  251. // Keep the whole selector for the selector list.
  252. // This selector list includes forms without a nested equivalent (probe v12).
  253. 'button svg,
  254. .button svg' {
  255. flex = 'none'
  256. width = '1.25rem'
  257. height = '1.25rem'
  258. }
  259. label {
  260. display = 'block'
  261. marginBottom = '.25rem'
  262. fontWeight = '600'
  263. color = colorTextStrong
  264. }
  265. // Keep the whole selector for the selector list.
  266. input {
  267. maxWidth = '100%'
  268. minHeight = layoutTap
  269. padding = '.5rem .7rem'
  270. font = 'inherit'
  271. fontSize = '1rem'
  272. color = colorText
  273. background = colorBackgroundSunken
  274. border = '0'
  275. borderRadius = radiusSmall
  276. focus {
  277. outline = '2px solid ' + colorAccent
  278. outlineOffset = '0'
  279. }
  280. }
  281. select {
  282. maxWidth = '100%'
  283. minHeight = layoutTap
  284. padding = '.5rem .7rem'
  285. font = 'inherit'
  286. fontSize = '1rem'
  287. color = colorText
  288. background = colorBackgroundSunken
  289. border = '0'
  290. borderRadius = radiusSmall
  291. focus {
  292. outline = '2px solid ' + colorAccent
  293. outlineOffset = '0'
  294. }
  295. }
  296. textarea {
  297. maxWidth = '100%'
  298. minHeight = layoutTap
  299. padding = '.5rem .7rem'
  300. font = 'inherit'
  301. fontSize = '1rem'
  302. color = colorText
  303. background = colorBackgroundSunken
  304. border = '0'
  305. borderRadius = radiusSmall
  306. focus {
  307. outline = '2px solid ' + colorAccent
  308. outlineOffset = '0'
  309. }
  310. width = '100%'
  311. minHeight = '6rem'
  312. resize = 'vertical'
  313. }
  314. // Keep the whole selector for the selector list.
  315. // Keep the whole selector for the selector list.
  316. // No nested attribute-selector form on day44 (probes v05/v06).
  317. 'input[aria-invalid="true"],
  318. textarea[aria-invalid="true"]' {
  319. outline = '2px solid ' + colorDanger
  320. outlineOffset = '0'
  321. }
  322. // Keep the whole selector for the selector list.
  323. // No nested attribute-selector form on day44 (probes v05/v06).
  324. 'input[type="checkbox"],
  325. input[type="radio"]' {
  326. width = '1.25rem'
  327. height = '1.25rem'
  328. minHeight = '0'
  329. padding = '0'
  330. accentColor = colorAccent
  331. }
  332. // Keep the whole selector for the selector list.
  333. // No nested form for this functional/popup pseudo on day44 (v08/v11).
  334. 'label:has(> input[type="checkbox"]),
  335. label:has(> input[type="radio"])' {
  336. display = 'flex'
  337. alignItems = 'center'
  338. gap = '.6rem'
  339. minHeight = layoutTap
  340. }
  341. // Keep the whole selector for the selector list.
  342. // No nested pseudo-element form on day44 (probes v09/v10; hybriel#344/#345/#260).
  343. 'input::placeholder,
  344. textarea::placeholder' { color = colorTextMuted }
  345. fieldset {
  346. margin = '0 0 1rem'
  347. padding = '0'
  348. border = '0'
  349. }
  350. legend {
  351. padding = '0'
  352. marginBottom = '.5rem'
  353. fontWeight = '600'
  354. color = colorTextStrong
  355. }
  356. form {
  357. p { margin = '0 0 1rem' }
  358. }
  359. progress { accentColor = colorAccent }
  360. details {
  361. margin = '0 0 .75rem'
  362. border = '1px solid ' + colorBorder // functional: foldable boundary
  363. borderRadius = radiusLarge
  364. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  365. '> summary' {
  366. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  367. '+ *' { marginTop = '.75rem' }
  368. }
  369. }
  370. summary {
  371. display = 'block'
  372. minHeight = layoutTap
  373. padding = '.6rem .9rem'
  374. fontWeight = '600'
  375. color = colorTextStrong
  376. cursor = 'pointer'
  377. hover { background = colorSurface }
  378. }
  379. // No nested attribute-selector form on day44 (probes v05/v06).
  380. 'details[open]' {
  381. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  382. '> summary' { borderBottom = '1px solid ' + colorBorder }
  383. }
  384. // Keep the whole selector for the functional condition.
  385. // No nested form for this functional/popup pseudo on day44 (v08/v11).
  386. 'details > :not(summary)' {
  387. marginLeft = '.9rem'
  388. marginRight = '.9rem'
  389. }
  390. // Keep the whole selector for the functional condition.
  391. // No nested form for this functional/popup pseudo on day44 (v08/v11).
  392. 'details > :last-child:not(summary)' { marginBottom = '.75rem' }
  393. // Keep the selector list; its dashed border marks the functional drop zone.
  394. // This selector list includes forms without a nested equivalent (probe v12).
  395. 'drop-zone,
  396. .drop-zone' {
  397. display = 'block'
  398. padding = '1.25rem'
  399. textAlign = 'center'
  400. color = colorTextMuted
  401. border = '2px dashed ' + colorBorder // functional: drop-zone boundary
  402. borderRadius = radiusLarge
  403. }
  404. // Keep the whole selector for the selector list.
  405. // This selector list includes forms without a nested equivalent (probe v12).
  406. 'drop-zone.over,
  407. .drop-zone.over' {
  408. color = colorText
  409. borderColor = colorAccent // functional: active drop-zone boundary
  410. background = colorSurface
  411. }
  412. table {
  413. width = '100%'
  414. margin = '0 0 1rem'
  415. borderCollapse = 'collapse'
  416. }
  417. th {
  418. padding = '.4rem .6rem'
  419. fontSize = '.85rem'
  420. fontWeight = '600'
  421. textAlign = 'left'
  422. color = colorTextMuted
  423. overflowWrap = 'break-word'
  424. }
  425. td {
  426. padding = '.5rem .6rem'
  427. verticalAlign = 'top'
  428. overflowWrap = 'break-word'
  429. }
  430. // Keep the whole selector for the selector list.
  431. tbody {
  432. // No nested form for this functional/popup pseudo on day44 (v08/v11).
  433. 'tr:nth-child(odd)' { background = colorBackgroundSunken }
  434. tr {
  435. hover { background = colorSurface }
  436. }
  437. }
  438. // Keep the class-only selector; no bare class form exists in a styles file.
  439. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  440. '.type-1' { color = colorType1 }
  441. // Keep the class-only selector; no bare class form exists in a styles file.
  442. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  443. '.type-2' { color = colorType2 }
  444. // Keep the class-only selector; no bare class form exists in a styles file.
  445. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  446. '.type-3' { color = colorType3 }
  447. // Keep the class-only selector; no bare class form exists in a styles file.
  448. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  449. '.type-4' { color = colorType4 }
  450. // Keep the class-only selector; no bare class form exists in a styles file.
  451. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  452. '.type-5' { color = colorType5 }
  453. // Keep the class-only selector; no bare class form exists in a styles file.
  454. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  455. '.type-6' { color = colorType6 }
  456. // Keep the class-only selector; no bare class form exists in a styles file.
  457. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  458. '.success' { color = colorSuccess }
  459. // Keep the class-only selector; no bare class form exists in a styles file.
  460. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  461. '.warning' { color = colorWarning }
  462. // Keep the class-only selector; no bare class form exists in a styles file.
  463. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  464. '.danger' { color = colorDanger }
  465. // Keep the class-only selector; no bare class form exists in a styles file.
  466. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  467. '.pill' {
  468. display = 'inline-block'
  469. padding = '.1rem .55rem'
  470. fontSize = '.8rem'
  471. fontWeight = '700'
  472. lineHeight = '1.5'
  473. color = colorAccentText
  474. background = colorAccent
  475. borderRadius = radiusSmall
  476. whiteSpace = 'nowrap'
  477. }
  478. // Keep the class-only selector; no bare class form exists in a styles file.
  479. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  480. '.pill.type-1' {
  481. color = colorAccentText
  482. background = colorType1
  483. }
  484. // Keep the class-only selector; no bare class form exists in a styles file.
  485. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  486. '.pill.type-2' {
  487. color = colorAccentText
  488. background = colorType2
  489. }
  490. // Keep the class-only selector; no bare class form exists in a styles file.
  491. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  492. '.pill.type-3' {
  493. color = colorAccentText
  494. background = colorType3
  495. }
  496. // Keep the class-only selector; no bare class form exists in a styles file.
  497. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  498. '.pill.type-4' {
  499. color = colorAccentText
  500. background = colorType4
  501. }
  502. // Keep the class-only selector; no bare class form exists in a styles file.
  503. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  504. '.pill.type-5' {
  505. color = colorAccentText
  506. background = colorType5
  507. }
  508. // Keep the class-only selector; no bare class form exists in a styles file.
  509. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  510. '.pill.type-6' {
  511. color = colorAccentText
  512. background = colorType6
  513. }
  514. // Keep the class-only selector; no bare class form exists in a styles file.
  515. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  516. '.pill.success' {
  517. color = colorAccentText
  518. background = colorSuccess
  519. }
  520. // Keep the class-only selector; no bare class form exists in a styles file.
  521. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  522. '.pill.warning' {
  523. color = colorAccentText
  524. background = colorWarning
  525. }
  526. // Keep the class-only selector; no bare class form exists in a styles file.
  527. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  528. '.pill.danger' {
  529. color = colorAccentText
  530. background = colorDanger
  531. }
  532. // Keep the class-only selector; no bare class form exists in a styles file.
  533. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  534. '.pill.quiet' {
  535. color = colorText
  536. background = colorSurface
  537. }
  538. // ---- 3. the components of components.hybriel.worldapi.org --------------------------------------------------------
  539. // Plain html declarations share this single root; repeating html overwrites them on day35.
  540. html {
  541. colorScheme = 'dark'
  542. scrollbarColor = colorBorder + ' transparent'
  543. pagination {
  544. button {
  545. border = '0'
  546. borderRadius = radiusSmall
  547. minWidth = layoutTap
  548. }
  549. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  550. 'li.current' {
  551. button { border = '0' }
  552. }
  553. }
  554. modalDialog {
  555. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  556. '> dialog' {
  557. background = colorSurface
  558. border = '0'
  559. borderRadius = radiusLarge
  560. boxShadow = '0 1rem 3rem ' + colorBackgroundSunken
  561. }
  562. header { borderBottom = '0' }
  563. modalBody {
  564. // No unquoted child/sibling combinator form; keep exact selector (probe v18).
  565. '> footer' {
  566. background = colorSurface
  567. borderTop = '0'
  568. }
  569. }
  570. button {
  571. borderRadius = radiusSmall
  572. hover { background = colorBackground }
  573. }
  574. }
  575. monthView {
  576. ol { gap = '.25rem' }
  577. button {
  578. border = '0'
  579. borderRadius = radiusSmall
  580. }
  581. }
  582. #monthDays {
  583. li {
  584. border = '0'
  585. borderRadius = radiusLarge
  586. }
  587. }
  588. datePicker {
  589. input {
  590. border = '0'
  591. borderRadius = radiusSmall
  592. }
  593. // No nested attribute-selector form on day44 (probes v05/v06).
  594. 'input[aria-invalid="true"]' {
  595. outline = '2px solid ' + colorDanger
  596. outlineOffset = '-2px'
  597. }
  598. monthView {
  599. background = colorSurface
  600. border = '0'
  601. borderRadius = radiusLarge
  602. boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken
  603. ol { gap = '.2rem' }
  604. }
  605. button {
  606. border = '0'
  607. borderRadius = radiusSmall
  608. }
  609. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  610. 'ol.days' {
  611. li {
  612. background = colorBackground
  613. border = '0'
  614. borderRadius = radiusSmall
  615. }
  616. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  617. 'li.outside' { background = 'transparent' }
  618. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  619. 'li.selected' { background = colorAccent }
  620. }
  621. }
  622. rangePicker {
  623. input {
  624. border = '0'
  625. borderRadius = radiusSmall
  626. }
  627. // No nested attribute-selector form on day44 (probes v05/v06).
  628. 'input[aria-invalid="true"]' {
  629. outline = '2px solid ' + colorDanger
  630. outlineOffset = '-2px'
  631. }
  632. monthView {
  633. background = colorSurface
  634. border = '0'
  635. borderRadius = radiusLarge
  636. boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken
  637. ol { gap = '.2rem' }
  638. }
  639. button {
  640. border = '0'
  641. borderRadius = radiusSmall
  642. }
  643. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  644. 'ol.days' {
  645. li {
  646. background = colorBackground
  647. border = '0'
  648. borderRadius = radiusSmall
  649. }
  650. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  651. 'li.outside' { background = 'transparent' }
  652. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  653. 'li.selected' { background = colorAccent }
  654. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  655. 'li.between' {
  656. background = colorBackgroundSunken
  657. outline = '0'
  658. time { color = colorAccent }
  659. }
  660. }
  661. }
  662. fileUpload {
  663. dropZone { borderRadius = radiusLarge }
  664. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  665. 'label.choose' {
  666. display = 'inline-flex'
  667. alignItems = 'center'
  668. minHeight = layoutTap
  669. fontWeight = '600'
  670. border = '0'
  671. borderRadius = radiusSmall
  672. hover {
  673. color = colorTextStrong
  674. filter = 'brightness(1.15)'
  675. }
  676. }
  677. }
  678. filesUpload {
  679. dropZone { borderRadius = radiusLarge }
  680. pickArea { borderRadius = radiusLarge }
  681. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  682. 'label.camera' { borderRadius = radiusSmall }
  683. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  684. 'label.choose' {
  685. display = 'inline-flex'
  686. alignItems = 'center'
  687. minHeight = layoutTap
  688. fontWeight = '600'
  689. border = '0'
  690. borderRadius = radiusSmall
  691. hover {
  692. color = colorTextStrong
  693. filter = 'brightness(1.15)'
  694. }
  695. }
  696. }
  697. mdEditor {
  698. border = '0'
  699. borderRadius = radiusLarge
  700. nav {
  701. borderBottom = '0'
  702. borderRadius = radiusLarge + ' ' + radiusLarge + ' 0 0'
  703. button {
  704. minWidth = layoutTap
  705. minHeight = layoutTap
  706. borderRadius = radiusSmall
  707. }
  708. }
  709. @media {
  710. minWidth = '60.01rem'
  711. nav {
  712. button { minWidth = '2.5rem' }
  713. }
  714. }
  715. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  716. 'ul.files' { borderBottom = '0' }
  717. linkForm {
  718. borderBottom = '0'
  719. background = colorSurface
  720. input {
  721. border = '0'
  722. borderRadius = radiusSmall
  723. }
  724. button {
  725. border = '0'
  726. borderRadius = radiusSmall
  727. }
  728. }
  729. article {
  730. img { borderRadius = radiusLarge }
  731. code { borderRadius = radiusSmall }
  732. pre {
  733. border = '0'
  734. borderRadius = radiusLarge
  735. }
  736. }
  737. footer {
  738. borderTop = '0'
  739. button {
  740. border = '0'
  741. borderRadius = radiusSmall
  742. }
  743. }
  744. }
  745. commentsBlock {
  746. @media {
  747. maxWidth = '59.99rem'
  748. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  749. 'details.comment-history' {
  750. summary {
  751. display = 'inline-flex'
  752. alignItems = 'center'
  753. justifyContent = 'center'
  754. minWidth = layoutTap
  755. minHeight = layoutTap
  756. margin = '-1rem -.2rem'
  757. }
  758. }
  759. }
  760. }
  761. codeEditor {
  762. border = '0'
  763. borderRadius = radiusLarge
  764. codeGutter { borderRight = '0' }
  765. }
  766. mediaPlayer {
  767. video {
  768. borderRadius = radiusLarge
  769. background = colorBackgroundSunken
  770. }
  771. // Keep the class-only selector; no bare class form exists in a styles file.
  772. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  773. '.mp-cover' {
  774. img {
  775. borderRadius = radiusLarge
  776. background = colorSurface
  777. }
  778. }
  779. mpSeek {
  780. // Keep the class-only selector; no bare class form exists in a styles file.
  781. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  782. '.mp-track' {
  783. background = colorBackgroundSunken
  784. borderRadius = radiusSmall
  785. }
  786. // Keep the class-only selector; no bare class form exists in a styles file.
  787. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  788. '.mp-buffered' {
  789. background = colorBorder
  790. opacity = '.6'
  791. }
  792. // Keep the class-only selector; no bare class form exists in a styles file.
  793. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  794. '.mp-played' { background = colorAccent }
  795. // Keep the class-only selector; no bare class form exists in a styles file.
  796. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  797. '.mp-thumb' { background = colorAccent }
  798. }
  799. mpButtons {
  800. button {
  801. borderRadius = radiusSmall
  802. hover { background = colorSurface }
  803. }
  804. // Keep the class-only selector; no bare class form exists in a styles file.
  805. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  806. '.mp-times' { color = colorTextMuted }
  807. }
  808. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  809. 'ol.mp-queue' {
  810. button { borderRadius = radiusSmall }
  811. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  812. 'li.current' {
  813. button {
  814. color = colorAccent
  815. background = colorSurface
  816. }
  817. // Keep the class-only selector; no bare class form exists in a styles file.
  818. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  819. '.mp-q-dur' { color = colorAccent }
  820. }
  821. // Keep the class-only selector; no bare class form exists in a styles file.
  822. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  823. '.mp-q-dur' { color = colorTextMuted }
  824. }
  825. }
  826. }
  827. // Keep the whole selector for the selector list.
  828. // This selector list includes forms without a nested equivalent (probe v12).
  829. 'html files-upload ul.files img.thumb, html files-upload ul.files .kind, html files-upload button.remove' { borderRadius = radiusSmall }
  830. // Keep the selector list; the functional borders separate the user's table cells.
  831. // This selector list includes forms without a nested equivalent (probe v12).
  832. 'html md-editor article th,
  833. html md-editor article td' { border = '1px solid ' + colorBorder } // functional: table cell grid
  834. // Keep the whole selector for the selector list.
  835. // This selector list includes forms without a nested equivalent (probe v12).
  836. 'h1 code,
  837. h2 code,
  838. h3 code,
  839. html md-editor article h1 code,
  840. html md-editor article h2 code,
  841. html md-editor article h3 code' {
  842. fontSize = '.65em'
  843. overflowWrap = 'anywhere'
  844. }
  845. // Keep the whole selector for the selector list.
  846. // This selector list includes forms without a nested equivalent (probe v12).
  847. 'html md-editor td a,
  848. html md-editor th a' {
  849. display = 'inline-flex'
  850. alignItems = 'center'
  851. minHeight = layoutTap
  852. }

Branches

Latest commits

  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre
  • 494d75d4Nest caller slot styles in app-sidebarmre
  • e5571680Align all plugin sources with Hybriel day38bmre
  • 5d204c46Re-vendor layouts to Hybriel set day38bmre
  • 17e0f03eNest html-prefixed theme component overridesmre
  • 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