gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8c875a788c875a78|||PR layouts#9: match HyperConductor look (lines 1-21)Atlas8c875a78/theme/theme.hl

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

Branches

Latest commits

  • 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
  • ebd00b6cNest caller slot styles in three-panemre