gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit88e1d14d88e1d14d|||PR layouts#9: address Kunibert findings (3-pane 768px, :where invalid focus, placeholder & glow contrast)Atlas88e1d14d/theme/theme.hl

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

Branches

Latest commits

  • 88e1d14d|||PR layouts#9: address Kunibert findings (3-pane 768px, :where invalid focus, placeholder & glow contrast)Atlas
  • 8c875a78|||PR layouts#9: match HyperConductor look (lines 1-21)Atlas
  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 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