spry-theme-h2o.css 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. /*
  2. * Spry CSS theme: "H2O" — Mac OS X Aqua, Mountain Lion (2012)
  3. * Ported from the ARC Aqua reference: a brushed menu bar along the top, grey
  4. * windows on pinstriped linen, white push buttons that turn blue when pressed,
  5. * a pulsing blue default button, pop-up buttons with a blue end, Finder's
  6. * striped lists and blue selection. Light-only.
  7. * Activate with <html data-theme="h2o"> or the demo radio #spry-theme-h2o.
  8. * Load after spry.css.
  9. */
  10. [data-theme="h2o"],
  11. html:has(#spry-theme-h2o:checked) {
  12. color-scheme: light;
  13. /* ---- Aqua surfaces (verbatim from the reference tokens) ---- */
  14. --h2o-push: linear-gradient(180deg, #ffffff 0%, #f7f7f7 49%, #ededed 50%, #f3f3f3 100%);
  15. --h2o-push-hover: linear-gradient(180deg, #ffffff 0%, #fdfdfd 49%, #f3f3f3 50%, #ffffff 100%);
  16. --h2o-blue: linear-gradient(180deg, #b9dcfd 0%, #85c1fb 49%, #4fa0f6 50%, #79bdfa 100%);
  17. --h2o-gloss:
  18. radial-gradient(ellipse 90% 60% at 50% 100%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
  19. linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.35) 49%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
  20. --h2o-gel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 1px rgba(0, 0, 0, 0.2);
  21. --h2o-highlight: linear-gradient(180deg, #3b6fe2 0%, #1f50cc 100%);
  22. --h2o-selection: linear-gradient(180deg, #5f92e2 0%, #2f66cc 100%);
  23. --h2o-default-btn: linear-gradient(180deg, #5590e8 0%, #2a6cd4 45%, #1c53b4 55%, #2f6ac8 100%);
  24. --h2o-edge: #9a9a9a #959595 #868686;
  25. --h2o-blue-edge: #3f6fb6 #3a68ad #2f5996;
  26. /* ---- Palette ---- */
  27. --spry-bg: #ececec;
  28. --spry-bg-alt: #e3e3e3;
  29. --spry-bg-inset: #f2f2f2;
  30. --spry-surface: #ffffff;
  31. --spry-surface-hover: #f6f6f8;
  32. --spry-fg: #1a1a1a;
  33. --spry-fg-muted: #5f5f63;
  34. --spry-border: #c8c8c8;
  35. --spry-border-strong: #959595;
  36. --spry-accent: #3a8ef5;
  37. --spry-accent-hover: #2a6ed8;
  38. --spry-accent-fg: #ffffff;
  39. --spry-danger: #e0443e;
  40. --spry-success: #4cae3c;
  41. --spry-warning: #f5a623;
  42. --spry-info: #33a3d6;
  43. --spry-link: #2a6ed8;
  44. --spry-link-hover: #1b53b0;
  45. --spry-backdrop: rgb(0 0 0 / 0.22); /* Mac dialogs barely dim */
  46. --spry-focus-ring: 0 0 0 3px rgba(80, 150, 240, 0.55);
  47. /* ---- Typography: Aqua is small and compact ---- */
  48. --spry-font: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Geneva, Verdana, sans-serif;
  49. --spry-font-heading: var(--spry-font);
  50. --spry-font-mono: 'Menlo', 'Monaco', ui-monospace, 'Courier New', monospace;
  51. --spry-font-size: 0.8rem;
  52. --spry-line-height: 1.5;
  53. --spry-heading-weight: 700;
  54. --spry-heading-color: #1a1a1a;
  55. /* ---- Shape & depth: 4px base, 3px sm, 5px lg ---- */
  56. --spry-radius: 4px;
  57. --spry-radius-sm: 3px;
  58. --spry-radius-lg: 5px;
  59. --spry-radius-pill: 999px;
  60. --spry-shadow: 0 1px 1px rgb(0 0 0 / 0.12);
  61. --spry-shadow-lg: 0 0 0 1px rgb(0 0 0 / 0.22), 0 10px 28px rgb(0 0 0 / 0.4);
  62. /* ---- Controls: ~22px at 12.8px text ---- */
  63. --spry-control-bg: #ffffff;
  64. --spry-control-fg: #1a1a1a;
  65. --spry-control-border: #a5a5a5;
  66. --spry-control-radius: 3px;
  67. --spry-control-padding-x: 0.5rem;
  68. --spry-control-padding-y: 0.2rem;
  69. /* Buttons: the white push; held down it turns Aqua blue (the active state) */
  70. --spry-btn-bg: var(--h2o-push);
  71. --spry-btn-fg: #1a1a1a;
  72. --spry-btn-border: #959595;
  73. --spry-btn-bg-hover: var(--h2o-push-hover);
  74. --spry-btn-bg-active: var(--h2o-blue);
  75. --spry-card-bg: #ffffff;
  76. --spry-card-border: rgba(0, 0, 0, 0.16);
  77. --spry-card-padding: 0.9rem;
  78. --spry-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 4px rgba(0, 0, 0, 0.1);
  79. --spry-table-header-bg: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
  80. --spry-table-hover: #dde7f6;
  81. --spry-progress-bg: linear-gradient(180deg, #d6d6d6 0%, #f2f2f2 100%);
  82. --spry-progress-fg: #3d8ef5;
  83. --spry-popover-bg: rgba(255, 255, 255, 0.97);
  84. --spry-popover-border: #9a9a9a;
  85. --spry-popover-shadow: 0 5px 15px rgb(0 0 0 / 0.35);
  86. /* The desktop: pinstriped linen, light enough to stay readable */
  87. & body {
  88. background-color: #ececec;
  89. background-image:
  90. radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18) 100%),
  91. repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(0, 0, 0, 0.04) 1px 3px);
  92. background-attachment: fixed;
  93. -webkit-font-smoothing: antialiased;
  94. }
  95. & ::selection { background-color: #b4d5fe; }
  96. /* ---- The menu bar along the top ---- */
  97. & .topbar {
  98. padding: 0.25rem clamp(0.75rem, 2vw, 1.5rem);
  99. background: linear-gradient(180deg, #f8f8f8 0%, #e3e3e3 55%, #d4d4d4 100%);
  100. border-bottom: 1px solid #8e8e8e;
  101. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.3);
  102. font-size: 13px;
  103. }
  104. & .topbar-brand { font-size: 13px; font-weight: 700; color: #1a1a1a; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
  105. /* Menu titles, highlighted blue like an open menu */
  106. & .nav a { padding: 0.2rem 0.65rem; border-radius: 3px; color: #000; font-weight: 400; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
  107. & .nav a:hover,
  108. & .nav a.active { background-image: var(--h2o-highlight); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); }
  109. & .nav a.active { font-weight: 700; }
  110. /* ---- Menus: compact, nearly opaque white, blue highlight across the row ---- */
  111. & .menu a { padding: 3px 10px; border-radius: 3px; }
  112. & .submenu { padding: 4px; background: rgba(255, 255, 255, 0.97); border: 1px solid #9a9a9a; border-radius: 5px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35); }
  113. & .submenu a { padding: 3px 10px; border-radius: 3px; }
  114. & .menu a:hover,
  115. & .menu a.active,
  116. & .submenu a:hover,
  117. & .submenu a.active { background-image: var(--h2o-highlight); color: #fff; }
  118. & .popover-menu {
  119. padding: 4px;
  120. min-width: 11rem;
  121. background: rgba(255, 255, 255, 0.97);
  122. border: 1px solid #9a9a9a;
  123. border-radius: 5px;
  124. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  125. }
  126. & .popover-menu :is(a, button) { padding: 3px 10px; border-radius: 3px; box-shadow: none; }
  127. & .popover-menu :is(a, button):hover { background-image: var(--h2o-highlight); color: #fff; }
  128. /* ---- Tabs as Aqua segmented controls ---- */
  129. & .tab-list { gap: 0; border-bottom: 0; }
  130. & .tab-list label {
  131. padding: 0.25rem 0.9rem;
  132. border: 1px solid var(--h2o-edge);
  133. border-radius: 0;
  134. margin-left: -1px;
  135. background-image: var(--h2o-push);
  136. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12);
  137. color: #000;
  138. font-weight: 500;
  139. }
  140. & .tab-list label:first-of-type { margin-left: 0; border-radius: 4px 0 0 4px; }
  141. & .tab-list label:last-of-type { border-radius: 0 4px 4px 0; }
  142. & .tab-list label:hover { background-image: var(--h2o-push-hover); color: #000; }
  143. & .tabs > input:nth-of-type(1):checked ~ .tab-list label:nth-of-type(1),
  144. & .tabs > input:nth-of-type(2):checked ~ .tab-list label:nth-of-type(2),
  145. & .tabs > input:nth-of-type(3):checked ~ .tab-list label:nth-of-type(3),
  146. & .tabs > input:nth-of-type(4):checked ~ .tab-list label:nth-of-type(4),
  147. & .tabs > input:nth-of-type(5):checked ~ .tab-list label:nth-of-type(5),
  148. & .tabs > input:nth-of-type(6):checked ~ .tab-list label:nth-of-type(6) {
  149. position: relative;
  150. z-index: 1;
  151. background-color: #4a99f5;
  152. background-image: var(--h2o-gloss);
  153. border-color: var(--h2o-blue-edge);
  154. color: #000;
  155. font-weight: 600;
  156. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  157. box-shadow: var(--h2o-gel-shadow);
  158. }
  159. /* ---- Buttons: the white push button, for .btn and bare buttons alike ---- */
  160. & :where(.btn, button, input[type="submit"], input[type="reset"], input[type="button"]) { border-color: var(--h2o-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12); }
  161. & :where(.btn, button, input[type="submit"], input[type="reset"], input[type="button"]):active { border-color: var(--h2o-blue-edge); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
  162. & :where(.btn, button, input[type="submit"], input[type="reset"], input[type="button"]):is(:disabled, [aria-disabled="true"]) { box-shadow: none; animation: none; filter: none; }
  163. /* The default button: Aqua blue gel, white writing, pulsing softly.
  164. Deep stops keep white text at AA across the band where the label sits. */
  165. & .btn-primary {
  166. background-color: transparent;
  167. background-image: linear-gradient(180deg, rgb(255 255 255 / 0.18) 0%, rgb(255 255 255 / 0) 50%), var(--h2o-default-btn);
  168. border-color: var(--h2o-blue-edge);
  169. color: #fff;
  170. font-weight: 600;
  171. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  172. box-shadow: var(--h2o-gel-shadow);
  173. animation: h2o-pulse 1s ease-in-out infinite alternate;
  174. }
  175. & .btn-primary:hover { border-color: #2f5996; }
  176. & .btn-primary:active { background-image: linear-gradient(180deg, rgb(0 0 0 / 0.12) 0%, rgb(0 0 0 / 0) 50%), linear-gradient(180deg, #2f6ac8 0%, #1c53b4 100%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35); }
  177. & .btn-primary:is(:disabled, [aria-disabled="true"]) { animation: none; box-shadow: none; }
  178. /* Danger: a red gel */
  179. & .btn-danger {
  180. background-color: #e0443e;
  181. background-image: var(--h2o-gloss);
  182. border-color: #922c28;
  183. color: #fff;
  184. font-weight: 600;
  185. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  186. box-shadow: var(--h2o-gel-shadow);
  187. }
  188. & .btn-danger:hover { background-color: #d63c36; border-color: #7d2420; }
  189. & .btn-danger:active { filter: brightness(0.88); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35); }
  190. /* Outline: a white push button that fills with Aqua blue while held */
  191. & .btn-outline {
  192. background-image: var(--h2o-push);
  193. border-color: var(--h2o-edge);
  194. color: #2f5996;
  195. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12);
  196. }
  197. & .btn-outline:hover { background-image: var(--h2o-push-hover); border-color: var(--h2o-blue-edge); color: #2f5996; }
  198. & .btn-outline:active { background-image: var(--h2o-blue); border-color: var(--h2o-blue-edge); color: #1a1a1a; }
  199. /* Ghost and link stay flat: re-assert so the push base cannot leak in */
  200. & .btn-ghost { background-image: none; border-color: transparent; box-shadow: none; }
  201. & .btn-ghost:active { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35); }
  202. & .btn-link { background-image: none; border-color: transparent; box-shadow: none; }
  203. /* ---- Text fields: white sunken wells ---- */
  204. & :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="color"], select, textarea, .input) { box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.12); }
  205. & :where(input, textarea)::placeholder { color: #a0a0a0; }
  206. /* Pop-up buttons: a push button with an Aqua blue end holding the arrows */
  207. & select:not([size]):not([multiple]) {
  208. appearance: none;
  209. padding-right: 1.9rem;
  210. border-color: var(--h2o-edge);
  211. border-radius: 4px;
  212. background-color: #f2f2f2;
  213. background-image:
  214. conic-gradient(from 135deg at 50% 62%, #fff 0 90deg, rgba(0, 0, 0, 0) 90deg 360deg),
  215. conic-gradient(from -45deg at 50% 38%, #fff 0 90deg, rgba(0, 0, 0, 0) 90deg 360deg),
  216. linear-gradient(90deg, rgba(47, 89, 150, 0.6) 0 1px, rgba(47, 89, 150, 0) 1px),
  217. var(--h2o-blue),
  218. var(--h2o-push);
  219. background-position:
  220. right 5px calc(50% - 5px),
  221. right 5px calc(50% + 3px),
  222. right 18px top,
  223. right top,
  224. 0 0;
  225. background-size: 9px 6px, 9px 6px, 19px 100%, 19px 100%, 100% 100%;
  226. background-repeat: no-repeat;
  227. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12);
  228. }
  229. & select:not([size]):not([multiple]):focus { border-color: var(--h2o-blue-edge); box-shadow: var(--spry-focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12); }
  230. /* Checkboxes and radios take the Aqua blue via accent-color */
  231. /* ---- Switch: a sunken pill, striped Aqua blue when on ---- */
  232. & .switch .track {
  233. border: 1px solid #9a9a9a;
  234. background-color: #f4f4f4;
  235. background-image: linear-gradient(180deg, #ffffff 0%, #f3f3f3 49%, #e8e8e8 50%, #f4f4f4 100%);
  236. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  237. }
  238. & .switch input:checked + .track {
  239. border-color: var(--h2o-blue-edge);
  240. background-color: #4a99f5;
  241. background-image:
  242. repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.35) 0 6px, rgba(255, 255, 255, 0) 6px 12px),
  243. var(--h2o-blue);
  244. }
  245. & .switch .track::after { border: 1px solid #9a9a9a; box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.35); }
  246. /* ---- Cards: group boxes, white on the grey window ---- */
  247. & .card { border-radius: 5px; }
  248. & .card-header { background: linear-gradient(180deg, #ffffff 0%, #ececec 100%); border-bottom-color: rgba(0, 0, 0, 0.12); font-weight: 700; }
  249. & .card-footer { background: linear-gradient(180deg, #f2f2f2 0%, #ececec 100%); border-top-color: rgba(0, 0, 0, 0.12); }
  250. /* ---- Alerts & badges: gel chips ---- */
  251. & .alert { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  252. & .alert-danger { color: #b3241e; }
  253. & .alert-success { color: #1e6a12; }
  254. & .alert-warning { color: #8a5a08; }
  255. & .alert-info { color: #186a8f; }
  256. & .hero-eyebrow { color: #17479e; }
  257. & .field .is-invalid ~ .hint { color: #b3241e; }
  258. & .badge { color: #1b53b0; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); }
  259. /* ---- Tables: Finder's striped list view ---- */
  260. & thead th {
  261. background-image: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
  262. color: #222;
  263. font-weight: 400;
  264. text-transform: none;
  265. letter-spacing: normal;
  266. border-bottom: 1px solid #b3b3b3;
  267. box-shadow: inset -1px 0 0 #d1d1d1;
  268. }
  269. & .table-striped tbody tr:nth-child(even) { background: #f1f5fb; }
  270. & .table-hover tbody tr:hover { background: #dde7f6; }
  271. & tbody tr[aria-selected="true"] { background-image: var(--h2o-selection); box-shadow: inset 0 1px 0 #5a8ddf; color: #fff; }
  272. & tbody tr[aria-selected="true"] a { color: #fff; }
  273. /* ---- Progress: a sunken well with a blue gel fill, stripes marching ---- */
  274. & progress { border: 1px solid #9f9f9f; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
  275. & progress::-webkit-progress-bar { background: linear-gradient(180deg, #d6d6d6 0%, #f2f2f2 100%); }
  276. & progress::-webkit-progress-value {
  277. background-color: #3d8ef5;
  278. background-image:
  279. repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.3) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
  280. var(--h2o-gloss);
  281. background-size: 22.63px 22.63px, 100% 100%, 100% 100%;
  282. border-radius: 3px;
  283. animation: h2o-barber 0.9s linear infinite;
  284. }
  285. /* Indeterminate: the classic full-width Aqua barber pole marching across
  286. the trough. Element-background layers so it works in every engine. */
  287. & progress:indeterminate {
  288. background:
  289. repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.55) 0 8px, #3d8ef5 8px 16px) 0 0 / 22.63px 22.63px,
  290. linear-gradient(180deg, #d6d6d6 0%, #f2f2f2 100%);
  291. animation: h2o-barber 0.9s linear infinite;
  292. }
  293. & progress::-moz-progress-bar {
  294. background-color: #3d8ef5;
  295. background-image:
  296. repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.3) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
  297. var(--h2o-gloss);
  298. background-size: 22.63px 22.63px, 100% 100%, 100% 100%;
  299. border-radius: 3px;
  300. animation: h2o-barber 0.9s linear infinite;
  301. }
  302. /* ---- Spinner: twelve grey spokes stepping round ---- */
  303. & .spinner {
  304. border: 0;
  305. background: conic-gradient(from 15deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
  306. -webkit-mask:
  307. repeating-conic-gradient(#000 0 12deg, transparent 12deg 30deg),
  308. radial-gradient(farthest-side, transparent 42%, #000 44%);
  309. -webkit-mask-composite: source-in;
  310. mask:
  311. repeating-conic-gradient(#000 0 12deg, transparent 12deg 30deg),
  312. radial-gradient(farthest-side, transparent 42%, #000 44%);
  313. mask-composite: intersect;
  314. animation: h2o-spinner 0.9s steps(12) infinite;
  315. }
  316. /* ---- Windows: grey frames with a brushed titlebar ---- */
  317. & dialog {
  318. background: #ececec;
  319. border: 1px solid rgba(0, 0, 0, 0.22);
  320. border-radius: 5px;
  321. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.22), 0 22px 70px 4px rgba(0, 0, 0, 0.56);
  322. }
  323. & .dialog-titlebar {
  324. padding: 0.35rem 0.75rem;
  325. background: linear-gradient(180deg, #ebebeb 0%, #d3d3d3 100%);
  326. border-bottom: 1px solid #a3a3a3;
  327. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  328. }
  329. & .dialog-title { color: #4d4d4d; font-weight: 700; font-size: 0.85rem; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
  330. /* The close button: a red traffic light, 12px across */
  331. & .dialog-close {
  332. order: -1;
  333. width: 12px;
  334. height: 12px;
  335. padding: 0;
  336. border: 1px solid #7e1d18;
  337. border-radius: 50%;
  338. background-color: #c1302a;
  339. background-image: var(--h2o-gloss), linear-gradient(180deg, #f46b60 0%, #e05648 49%, #c1302a 50%, #d6453a 100%);
  340. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.25);
  341. color: transparent;
  342. font-size: 0;
  343. }
  344. & .dialog-close:hover { filter: brightness(1.12); }
  345. & .dialog-close:active { filter: brightness(0.88); }
  346. & .dialog-body { padding: 0.9rem; }
  347. /* Dialog buttons sit on the window's own grey, with no separator above */
  348. & .dialog-footer { padding: 0 0.9rem 0.9rem; border-top: 0; background: transparent; }
  349. /* ---- Popovers: grey windows; menus above restyle themselves white ---- */
  350. & [popover] { background: #ececec; border-color: rgba(0, 0, 0, 0.22); border-radius: 5px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35); }
  351. /* ---- Expanders: boxed rows with a push-button summary ---- */
  352. & details { border-color: rgba(0, 0, 0, 0.16); background: #ffffff; }
  353. & summary { background: linear-gradient(180deg, #ffffff 0%, #ececec 100%); }
  354. & summary:hover { background: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%); }
  355. & details[open] > summary { background: #e3e3e3; }
  356. /* ---- Fieldsets: group boxes ---- */
  357. & fieldset { border: 1px solid #b8b8b8; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.5); }
  358. & legend { font-weight: 700; }
  359. /* ---- kbd & code: little white wells ---- */
  360. & kbd {
  361. font-family: var(--spry-font-mono);
  362. font-size: 0.9em;
  363. padding: 0.05em 0.4em;
  364. border: 1px solid #a5a5a5;
  365. border-bottom-width: 2px;
  366. border-radius: 3px;
  367. background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  368. box-shadow: inset 0 1px 0 #ffffff, 0 1px 0 rgba(0, 0, 0, 0.08);
  369. }
  370. & code { font-family: var(--spry-font-mono); font-size: 0.92em; background: rgba(0, 0, 0, 0.045); border-radius: 3px; padding: 0.08em 0.35em; }
  371. /* ---- Hero: a band of the pinstriped linen ---- */
  372. & .hero {
  373. background:
  374. radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0) 55%),
  375. repeating-linear-gradient(180deg, #ececec 0 2px, #f0f0f0 2px 4px);
  376. border-block: 1px solid #c9c9c9;
  377. }
  378. /* ---- Avatars: gel circles ---- */
  379. & .avatar {
  380. background-color: #4a99f5;
  381. background-image: var(--h2o-gloss), var(--h2o-blue);
  382. border: 1px solid #3a68ad;
  383. color: #fff;
  384. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  385. }
  386. /* ---- Drawers: grey windows sliding out over the linen ---- */
  387. & .drawer-left,
  388. & .drawer-right { background: #ececec; border-color: #8e8e8e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), -8px 0 24px rgba(0, 0, 0, 0.35); }
  389. /* ---- Pagination: white gels, the current page in Aqua blue ---- */
  390. & .pagination :is(a, span) { border-color: #959595; background-image: var(--h2o-push); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.12); }
  391. & .pagination a:hover { background-image: var(--h2o-push-hover); }
  392. & .pagination [aria-current="page"] {
  393. background-color: #4a99f5;
  394. background-image: var(--h2o-gloss), var(--h2o-blue);
  395. border-color: var(--h2o-blue-edge);
  396. color: #1a1a1a;
  397. font-weight: 700;
  398. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  399. }
  400. @media (prefers-reduced-motion: reduce) {
  401. & .btn-primary,
  402. & .spinner { animation: none; }
  403. & progress::-webkit-progress-value { animation: none; }
  404. & progress::-moz-progress-bar { animation: none; }
  405. }
  406. }
  407. @keyframes h2o-barber {
  408. from { background-position: 0 0, 0 0, 0 0; }
  409. to { background-position: 22.63px 0, 0 0, 0 0; }
  410. }
  411. @keyframes h2o-pulse {
  412. from { filter: brightness(0.94) saturate(0.9); }
  413. to { filter: brightness(1.1) saturate(1.15); }
  414. }
  415. @keyframes h2o-spinner {
  416. to { transform: rotate(1turn); }
  417. }