gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf13a655ef13a655elayouts#9: editor toolbar and comment-history density back at their 60rem cutoffsAtlasf13a655e/theme/theme.hl

21.3 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 60rem, the density cutoff; the layout breakpoint is 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. // density (tap size, docs/design-rules.md) stays at 60rem; the layout breakpoint is 768px
  244. minWidth = '60rem'
  245. // Keep the whole selector for the selector list.
  246. 'button,
  247. .button' { minHeight = '2.25rem' }
  248. }
  249. button {
  250. disabled {
  251. opacity = '.45'
  252. cursor = 'default'
  253. filter = 'none'
  254. }
  255. }
  256. // Keep the whole selector for the selector list.
  257. 'button svg,
  258. .button svg' {
  259. flex = 'none'
  260. width = '1.25rem'
  261. height = '1.25rem'
  262. }
  263. label {
  264. display = 'block'
  265. marginBottom = '.25rem'
  266. fontWeight = '600'
  267. color = colorTextStrong
  268. }
  269. // Keep the whole selector for the selector list.
  270. input {
  271. maxWidth = '100%'
  272. minHeight = layoutTap
  273. padding = '.3rem .5rem'
  274. font = 'inherit'
  275. fontSize = '1rem'
  276. color = colorTextStrong
  277. background = colorField
  278. border = '0'
  279. borderRadius = radiusSmall
  280. }
  281. // Keep the whole selector for the :where negation chain.
  282. 'input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"])):focus' {
  283. boxShadow = '0 0 0 2px ' + colorActionGlow
  284. outline = 'none'
  285. }
  286. select {
  287. maxWidth = '100%'
  288. minHeight = layoutTap
  289. padding = '.3rem .5rem'
  290. font = 'inherit'
  291. fontSize = '1rem'
  292. color = colorTextStrong
  293. background = colorField
  294. border = '0'
  295. borderRadius = radiusSmall
  296. focus {
  297. boxShadow = '0 0 0 2px ' + colorActionGlow
  298. outline = 'none'
  299. }
  300. }
  301. textarea {
  302. maxWidth = '100%'
  303. minHeight = layoutTap
  304. padding = '.5rem'
  305. font = 'inherit'
  306. fontSize = '1rem'
  307. color = colorTextStrong
  308. background = colorField
  309. border = '0'
  310. borderRadius = radiusSmall
  311. focus {
  312. boxShadow = '0 0 0 2px ' + colorActionGlow
  313. outline = 'none'
  314. }
  315. width = '100%'
  316. minHeight = '6rem'
  317. resize = 'vertical'
  318. }
  319. // Keep the whole selector for the selector list.
  320. // Keep the whole selector for the selector list.
  321. 'input[aria-invalid="true"],
  322. textarea[aria-invalid="true"]' {
  323. outline = '2px solid ' + colorDanger
  324. outlineOffset = '0'
  325. }
  326. // Keep the whole selector for the selector list.
  327. 'input[type="checkbox"],
  328. input[type="radio"]' {
  329. width = '1.25rem'
  330. height = '1.25rem'
  331. minHeight = '0'
  332. padding = '0'
  333. accentColor = colorAccent
  334. }
  335. // Keep the whole selector for the selector list.
  336. 'label:has(> input[type="checkbox"]),
  337. label:has(> input[type="radio"])' {
  338. display = 'flex'
  339. alignItems = 'center'
  340. gap = '.6rem'
  341. minHeight = layoutTap
  342. }
  343. // Keep the whole selector for the selector list.
  344. 'input::placeholder,
  345. textarea::placeholder' {
  346. color = colorText
  347. opacity = '1'
  348. }
  349. // Keep the whole selector for the forced-colors media rule.
  350. '@media (forced-colors: active)' = {
  351. 'input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"])):focus,
  352. select:focus,
  353. textarea:focus' = { outline = '2px solid Highlight' }
  354. }
  355. fieldset {
  356. margin = '0 0 1rem'
  357. padding = '0'
  358. border = '0'
  359. }
  360. legend {
  361. padding = '0'
  362. marginBottom = '.5rem'
  363. fontWeight = '600'
  364. color = colorTextStrong
  365. }
  366. form {
  367. p { margin = '0 0 1rem' }
  368. }
  369. progress { accentColor = colorAccent }
  370. details {
  371. margin = '0 0 .75rem'
  372. border = '1px solid ' + colorBorder // functional: foldable boundary
  373. borderRadius = radiusLarge
  374. '> summary' {
  375. '+ *' { marginTop = '.75rem' }
  376. }
  377. }
  378. summary {
  379. display = 'block'
  380. minHeight = layoutTap
  381. padding = '.6rem .9rem'
  382. fontWeight = '600'
  383. color = colorTextStrong
  384. cursor = 'pointer'
  385. hover { background = colorSurface }
  386. }
  387. 'details[open]' {
  388. '> summary' { borderBottom = '1px solid ' + colorBorder }
  389. }
  390. // Keep the whole selector for the functional condition.
  391. 'details > :not(summary)' {
  392. marginLeft = '.9rem'
  393. marginRight = '.9rem'
  394. }
  395. // Keep the whole selector for the functional condition.
  396. 'details > :last-child:not(summary)' { marginBottom = '.75rem' }
  397. // Keep the selector list; its dashed border marks the functional drop zone.
  398. 'drop-zone,
  399. .drop-zone' {
  400. display = 'block'
  401. padding = '1.25rem'
  402. textAlign = 'center'
  403. color = colorTextMuted
  404. border = '2px dashed ' + colorBorder // functional: drop-zone boundary
  405. borderRadius = radiusLarge
  406. }
  407. // Keep the whole selector for the selector list.
  408. 'drop-zone.over,
  409. .drop-zone.over' {
  410. color = colorText
  411. borderColor = colorAccent // functional: active drop-zone boundary
  412. background = colorSurface
  413. }
  414. table {
  415. width = '100%'
  416. margin = '0 0 1rem'
  417. borderCollapse = 'collapse'
  418. }
  419. th {
  420. padding = '.4rem .6rem'
  421. fontSize = '.85rem'
  422. fontWeight = '600'
  423. textAlign = 'left'
  424. color = colorTextMuted
  425. overflowWrap = 'break-word'
  426. }
  427. td {
  428. padding = '.5rem .6rem'
  429. verticalAlign = 'top'
  430. overflowWrap = 'break-word'
  431. }
  432. // Keep the whole selector for the selector list.
  433. tbody {
  434. 'tr:nth-child(odd)' { background = colorBackgroundSunken }
  435. tr {
  436. hover { background = colorSurface }
  437. }
  438. }
  439. // Keep the class-only selector; no bare class form exists in a styles file.
  440. '.type-1' { color = colorType1 }
  441. // Keep the class-only selector; no bare class form exists in a styles file.
  442. '.type-2' { color = colorType2 }
  443. // Keep the class-only selector; no bare class form exists in a styles file.
  444. '.type-3' { color = colorType3 }
  445. // Keep the class-only selector; no bare class form exists in a styles file.
  446. '.type-4' { color = colorType4 }
  447. // Keep the class-only selector; no bare class form exists in a styles file.
  448. '.type-5' { color = colorType5 }
  449. // Keep the class-only selector; no bare class form exists in a styles file.
  450. '.type-6' { color = colorType6 }
  451. // Keep the class-only selector; no bare class form exists in a styles file.
  452. '.success' { color = colorSuccess }
  453. // Keep the class-only selector; no bare class form exists in a styles file.
  454. '.warning' { color = colorWarning }
  455. // Keep the class-only selector; no bare class form exists in a styles file.
  456. '.danger' { color = colorDanger }
  457. // Keep the class-only selector; no bare class form exists in a styles file.
  458. '.pill' {
  459. display = 'inline-block'
  460. padding = '.1rem .55rem'
  461. fontSize = '.8rem'
  462. fontWeight = '700'
  463. lineHeight = '1.5'
  464. color = colorAccentText
  465. background = colorAccent
  466. borderRadius = radiusSmall
  467. whiteSpace = 'nowrap'
  468. }
  469. // Keep the class-only selector; no bare class form exists in a styles file.
  470. '.pill.type-1' {
  471. color = colorAccentText
  472. background = colorType1
  473. }
  474. // Keep the class-only selector; no bare class form exists in a styles file.
  475. '.pill.type-2' {
  476. color = colorAccentText
  477. background = colorType2
  478. }
  479. // Keep the class-only selector; no bare class form exists in a styles file.
  480. '.pill.type-3' {
  481. color = colorAccentText
  482. background = colorType3
  483. }
  484. // Keep the class-only selector; no bare class form exists in a styles file.
  485. '.pill.type-4' {
  486. color = colorAccentText
  487. background = colorType4
  488. }
  489. // Keep the class-only selector; no bare class form exists in a styles file.
  490. '.pill.type-5' {
  491. color = colorAccentText
  492. background = colorType5
  493. }
  494. // Keep the class-only selector; no bare class form exists in a styles file.
  495. '.pill.type-6' {
  496. color = colorAccentText
  497. background = colorType6
  498. }
  499. // Keep the class-only selector; no bare class form exists in a styles file.
  500. '.pill.success' {
  501. color = colorAccentText
  502. background = colorSuccess
  503. }
  504. // Keep the class-only selector; no bare class form exists in a styles file.
  505. '.pill.warning' {
  506. color = colorAccentText
  507. background = colorWarning
  508. }
  509. // Keep the class-only selector; no bare class form exists in a styles file.
  510. '.pill.danger' {
  511. color = colorAccentText
  512. background = colorDanger
  513. }
  514. // Keep the class-only selector; no bare class form exists in a styles file.
  515. '.pill.quiet' {
  516. color = colorText
  517. background = colorSurface
  518. }
  519. // ---- 3. the components of components.hybriel.worldapi.org --------------------------------------------------------
  520. // Plain html declarations share this single root; repeating html overwrites them on day35.
  521. html {
  522. colorScheme = 'dark'
  523. scrollbarColor = colorBorder + ' transparent'
  524. pagination {
  525. button {
  526. border = '0'
  527. borderRadius = radiusSmall
  528. minWidth = layoutTap
  529. }
  530. 'li.current' {
  531. button { border = '0' }
  532. }
  533. }
  534. modalDialog {
  535. '> dialog' {
  536. background = colorSurface
  537. border = '0'
  538. borderRadius = radiusLarge
  539. boxShadow = '0 1rem 3rem ' + colorBackgroundSunken
  540. }
  541. header { borderBottom = '0' }
  542. modalBody {
  543. '> footer' {
  544. background = colorSurface
  545. borderTop = '0'
  546. }
  547. }
  548. button {
  549. borderRadius = radiusSmall
  550. hover { background = colorBackground }
  551. }
  552. }
  553. monthView {
  554. ol { gap = '.25rem' }
  555. button {
  556. border = '0'
  557. borderRadius = radiusSmall
  558. }
  559. }
  560. '#month-days' {
  561. li {
  562. border = '0'
  563. borderRadius = radiusLarge
  564. }
  565. }
  566. datePicker {
  567. input {
  568. border = '0'
  569. borderRadius = radiusSmall
  570. }
  571. 'input[aria-invalid="true"]' {
  572. outline = '2px solid ' + colorDanger
  573. outlineOffset = '-2px'
  574. }
  575. monthView {
  576. background = colorSurface
  577. border = '0'
  578. borderRadius = radiusLarge
  579. boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken
  580. ol { gap = '.2rem' }
  581. }
  582. button {
  583. border = '0'
  584. borderRadius = radiusSmall
  585. }
  586. 'ol.days' {
  587. li {
  588. background = colorBackground
  589. border = '0'
  590. borderRadius = radiusSmall
  591. }
  592. 'li.outside' { background = 'transparent' }
  593. 'li.selected' { background = colorAccent }
  594. }
  595. }
  596. rangePicker {
  597. input {
  598. border = '0'
  599. borderRadius = radiusSmall
  600. }
  601. 'input[aria-invalid="true"]' {
  602. outline = '2px solid ' + colorDanger
  603. outlineOffset = '-2px'
  604. }
  605. monthView {
  606. background = colorSurface
  607. border = '0'
  608. borderRadius = radiusLarge
  609. boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken
  610. ol { gap = '.2rem' }
  611. }
  612. button {
  613. border = '0'
  614. borderRadius = radiusSmall
  615. }
  616. 'ol.days' {
  617. li {
  618. background = colorBackground
  619. border = '0'
  620. borderRadius = radiusSmall
  621. }
  622. 'li.outside' { background = 'transparent' }
  623. 'li.selected' { background = colorAccent }
  624. 'li.between' {
  625. background = colorBackgroundSunken
  626. outline = '0'
  627. time { color = colorAccent }
  628. }
  629. }
  630. }
  631. fileUpload {
  632. dropZone { borderRadius = radiusLarge }
  633. 'label.choose' {
  634. display = 'inline-flex'
  635. alignItems = 'center'
  636. minHeight = layoutTap
  637. fontWeight = '600'
  638. border = '0'
  639. borderRadius = radiusSmall
  640. hover {
  641. color = colorTextStrong
  642. filter = 'brightness(1.15)'
  643. }
  644. }
  645. }
  646. filesUpload {
  647. dropZone { borderRadius = radiusLarge }
  648. pickArea { borderRadius = radiusLarge }
  649. 'label.camera' { borderRadius = radiusSmall }
  650. 'label.choose' {
  651. display = 'inline-flex'
  652. alignItems = 'center'
  653. minHeight = layoutTap
  654. fontWeight = '600'
  655. border = '0'
  656. borderRadius = radiusSmall
  657. hover {
  658. color = colorTextStrong
  659. filter = 'brightness(1.15)'
  660. }
  661. }
  662. }
  663. mdEditor {
  664. border = '0'
  665. borderRadius = radiusLarge
  666. nav {
  667. borderBottom = '0'
  668. borderRadius = radiusLarge + ' ' + radiusLarge + ' 0 0'
  669. button {
  670. minWidth = layoutTap
  671. minHeight = layoutTap
  672. borderRadius = radiusSmall
  673. }
  674. }
  675. @media {
  676. minWidth = '60.01rem'
  677. nav {
  678. button { minWidth = '2.5rem' }
  679. }
  680. }
  681. 'ul.files' { borderBottom = '0' }
  682. linkForm {
  683. borderBottom = '0'
  684. background = colorSurface
  685. input {
  686. border = '0'
  687. borderRadius = radiusSmall
  688. }
  689. button {
  690. border = '0'
  691. borderRadius = radiusSmall
  692. }
  693. }
  694. article {
  695. img { borderRadius = radiusLarge }
  696. code { borderRadius = radiusSmall }
  697. pre {
  698. border = '0'
  699. borderRadius = radiusLarge
  700. }
  701. }
  702. footer {
  703. borderTop = '0'
  704. button {
  705. border = '0'
  706. borderRadius = radiusSmall
  707. }
  708. }
  709. }
  710. commentsBlock {
  711. @media {
  712. maxWidth = '59.99rem'
  713. 'details.comment-history' {
  714. summary {
  715. display = 'inline-flex'
  716. alignItems = 'center'
  717. justifyContent = 'center'
  718. minWidth = layoutTap
  719. minHeight = layoutTap
  720. margin = '-1rem -.2rem'
  721. }
  722. }
  723. }
  724. }
  725. codeEditor {
  726. border = '0'
  727. borderRadius = radiusLarge
  728. codeGutter { borderRight = '0' }
  729. }
  730. mediaPlayer {
  731. video {
  732. borderRadius = radiusLarge
  733. background = colorBackgroundSunken
  734. }
  735. // Keep the class-only selector; no bare class form exists in a styles file.
  736. '.mp-cover' {
  737. img {
  738. borderRadius = radiusLarge
  739. background = colorSurface
  740. }
  741. }
  742. mpSeek {
  743. // Keep the class-only selector; no bare class form exists in a styles file.
  744. '.mp-track' {
  745. background = colorBackgroundSunken
  746. borderRadius = radiusSmall
  747. }
  748. // Keep the class-only selector; no bare class form exists in a styles file.
  749. '.mp-buffered' {
  750. background = colorBorder
  751. opacity = '.6'
  752. }
  753. // Keep the class-only selector; no bare class form exists in a styles file.
  754. '.mp-played' { background = colorAccent }
  755. // Keep the class-only selector; no bare class form exists in a styles file.
  756. '.mp-thumb' { background = colorAccent }
  757. }
  758. mpButtons {
  759. button {
  760. borderRadius = radiusSmall
  761. hover { background = colorSurface }
  762. }
  763. // Keep the class-only selector; no bare class form exists in a styles file.
  764. '.mp-times' { color = colorTextMuted }
  765. }
  766. 'ol.mp-queue' {
  767. button { borderRadius = radiusSmall }
  768. 'li.current' {
  769. button {
  770. color = colorAccent
  771. background = colorSurface
  772. }
  773. // Keep the class-only selector; no bare class form exists in a styles file.
  774. '.mp-q-dur' { color = colorAccent }
  775. }
  776. // Keep the class-only selector; no bare class form exists in a styles file.
  777. '.mp-q-dur' { color = colorTextMuted }
  778. }
  779. }
  780. }
  781. // Keep the whole selector for the selector list.
  782. 'html files-upload ul.files img.thumb, html files-upload ul.files .kind, html files-upload button.remove' { borderRadius = radiusSmall }
  783. // Keep the whole selector for the child combinator into the caller slot.
  784. 'html files-upload pick-area form > textarea:focus' { boxShadow = 'none' }
  785. // Keep the selector list; the functional borders separate the user's table cells.
  786. 'html md-editor article th,
  787. html md-editor article td' { border = '1px solid ' + colorBorder } // functional: table cell grid
  788. // Keep the whole selector for the selector list.
  789. 'h1 code,
  790. h2 code,
  791. h3 code,
  792. html md-editor article h1 code,
  793. html md-editor article h2 code,
  794. html md-editor article h3 code' {
  795. fontSize = '.65em'
  796. overflowWrap = 'anywhere'
  797. }
  798. // Keep the whole selector for the selector list.
  799. 'html md-editor td a,
  800. html md-editor th a' {
  801. display = 'inline-flex'
  802. alignItems = 'center'
  803. minHeight = layoutTap
  804. }

Branches

Latest commits

  • f13a655elayouts#9: editor toolbar and comment-history density back at their 60rem cutoffsAtlas
  • b243fffalayouts#9: tap density stays at 60rem; palette rule names HyperConductorAtlas
  • 2027f696layouts#9: field focus glow back to HyperConductor's .45Atlas
  • 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