styles.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. /* fonts */
  2. @font-face {
  3. font-family: 'Miriam Libre';
  4. src: url('fonts/miriamlibre-bold.woff2') format('woff2'), url('fonts/miriamlibre-bold.woff') format('woff');
  5. font-weight: bold;
  6. font-style: normal;
  7. }
  8. *,
  9. *::before,
  10. *::after {
  11. font-family: inherit;
  12. background-color: inherit;
  13. color: inherit;
  14. margin: 0;
  15. padding: 0;
  16. box-sizing: border-box;
  17. }
  18. html {
  19. font-size: calc(1em + 0.33vw);
  20. font-family: PT Sans, sans-serif;
  21. line-height: 1.5;
  22. color: #111;
  23. background-color: #fefefe;
  24. }
  25. * + * {
  26. margin-top: 2.25rem;
  27. }
  28. br,
  29. dt,
  30. dd,
  31. th,
  32. td,
  33. option,
  34. [hidden] + *,
  35. li + li,
  36. body,
  37. .main-and-footer {
  38. margin-top: 0;
  39. }
  40. p + p {
  41. margin-top: 0.75rem;
  42. }
  43. a {
  44. text-decoration: none;
  45. border-bottom: 1px solid;
  46. }
  47. abbr {
  48. text-decoration: none;
  49. cursor: help;
  50. border-bottom: 1px dashed;
  51. }
  52. img {
  53. max-width: 100%;
  54. }
  55. p img {
  56. margin: 0.75rem 0;
  57. }
  58. figure p img {
  59. margin: 0;
  60. }
  61. :focus:not([tabindex="-1"]),
  62. [data-expands]:focus svg,
  63. .patterns a:focus .text,
  64. [for="themer"] :focus + [aria-hidden] {
  65. outline: 3px solid #888;
  66. outline-offset: 2px;
  67. }
  68. /* fix for IE :( */
  69. [tabindex="-1"]:focus,
  70. div:not([tabindex]):focus {
  71. outline: none;
  72. }
  73. [hidden] {
  74. display: none;
  75. }
  76. /* skip link */
  77. [href="#main"] {
  78. display: block;
  79. width: 100%;
  80. padding: 0.75rem;
  81. color: #fff;
  82. background: #000;
  83. position: absolute;
  84. top: -3rem;
  85. text-align: center;
  86. z-index: 1;
  87. }
  88. [href="#main"]:focus {
  89. top: 0;
  90. outline: none;
  91. }
  92. /* text styles */
  93. h1,
  94. h2,
  95. h3,
  96. h4 {
  97. font-family: Miriam Libre, serif;
  98. line-height: 1.125;
  99. }
  100. h1 {
  101. font-size: 2rem;
  102. }
  103. h2 {
  104. font-size: 1.66rem;
  105. }
  106. h3 {
  107. font-size: 1.25rem;
  108. }
  109. h4,
  110. h5 {
  111. font-size: 1rem;
  112. font-family: PT Sans, sans-serif;
  113. }
  114. h5 {
  115. font-size: 0.85rem;
  116. text-transform: uppercase;
  117. }
  118. kbd {
  119. line-height: 1;
  120. font-size: 0.66rem;
  121. padding: 0.1rem 0.33rem;
  122. border-radius: 0.25rem;
  123. border: 2px solid;
  124. box-shadow: 0.125rem 0.125rem 0 #111;
  125. vertical-align: 0.33em;
  126. }
  127. pre,
  128. .file-tree {
  129. overflow-x: auto;
  130. padding: 1.5rem;
  131. border: 1px solid;
  132. }
  133. code {
  134. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  135. font-size: 0.85em;
  136. }
  137. .cmd {
  138. padding: 0.75rem;
  139. background: #111;
  140. }
  141. .cmd code {
  142. color: #fff;
  143. white-space: nowrap;
  144. }
  145. .cmd code::before {
  146. content: '$';
  147. font-weight: bold;
  148. padding-right: 0.25em;
  149. }
  150. /* Lists */
  151. main ul,
  152. main ol {
  153. margin-left: 2.25rem;
  154. }
  155. main li + li {
  156. margin-top: 0.5rem;
  157. }
  158. main ul ul {
  159. margin-top: 0;
  160. }
  161. /* Buttons */
  162. button {
  163. font-size: 1.25rem;
  164. border-radius: 0.125em;
  165. font-family: inherit;
  166. background: #111;
  167. color: #fff;
  168. padding: 0.75rem;
  169. border: 0;
  170. }
  171. [data-launch] {
  172. font-size: 0.75rem;
  173. margin-top: 0.75rem;
  174. padding: 0.5rem;
  175. border-radius: 0;
  176. }
  177. /* Forms */
  178. label {
  179. display: inline-block;
  180. font-weight: bold;
  181. }
  182. [for="themer"] {
  183. background: #111;
  184. border-radius: 0.125em;
  185. color: #fff;
  186. padding: 0.25em 0.75em;
  187. margin: 0.5rem;
  188. }
  189. [for="themer"] [aria-hidden]::before {
  190. content: 'off';
  191. }
  192. [for="themer"] :checked + [aria-hidden]::before {
  193. content: 'on';
  194. }
  195. /* Tables */
  196. table {
  197. text-align: left;
  198. table-layout: fixed;
  199. width: 100%;
  200. border-collapse: collapse;
  201. }
  202. th,
  203. td {
  204. border: 2px solid;
  205. padding: 0.5rem;
  206. line-height: 1.25;
  207. margin: 0;
  208. }
  209. th {
  210. font-weight: bold;
  211. }
  212. th:empty {
  213. border: 0;
  214. }
  215. /* Tested using... table */
  216. .tested {
  217. text-align: center;
  218. border: 1px solid #111;
  219. }
  220. .tested tr {
  221. display: flex;
  222. flex-flow: row wrap;
  223. }
  224. .tested td, .tested th {
  225. vertical-align: middle;
  226. overflow: hidden;
  227. flex: 1 0 auto;
  228. border: 1px solid #111;
  229. }
  230. .tested th {
  231. width: 100%;
  232. background-color: #111;
  233. color: #fff;
  234. outline-color: #111;
  235. }
  236. .tested img {
  237. max-width: 3rem;
  238. }
  239. .tested span {
  240. display: block;
  241. margin: 0;
  242. }
  243. .tested .additional {
  244. font-size: 0.85rem;
  245. }
  246. caption {
  247. font-size: 1.125rem;
  248. padding-bottom: 0.25rem;
  249. font-style: italic;
  250. }
  251. /* Page structure */
  252. .wrapper {
  253. position: relative;
  254. margin-top: 0;
  255. overflow-x: hidden;
  256. }
  257. .intro-and-nav {
  258. font-size: 0.8rem;
  259. width: 15rem;
  260. height: 100vh;
  261. position: fixed;
  262. top: 0;
  263. left: 0;
  264. border-right: 2px solid;
  265. }
  266. .intro-and-nav > div {
  267. padding: 2.25rem;
  268. display: flex;
  269. flex-direction: column;
  270. height: 100%;
  271. }
  272. .intro {
  273. flex: 1 0 auto;
  274. }
  275. .patterns {
  276. flex: 1 1 auto;
  277. }
  278. .logo {
  279. border: 0;
  280. }
  281. .logo img {
  282. width: 100%;
  283. max-width: 12rem;
  284. }
  285. .library-desc {
  286. margin-top: 0.5rem;
  287. margin-left: auto;
  288. margin-right: auto;
  289. max-width: 25rem;
  290. }
  291. .main-and-footer {
  292. margin-left: 15rem;
  293. }
  294. .main-and-footer > div {
  295. max-width: 40rem;
  296. margin: 0 auto;
  297. padding: 2.25rem;
  298. }
  299. [role="contentinfo"] {
  300. font-size: 0.85rem;
  301. margin-top: 4rem;
  302. text-align: center;
  303. }
  304. /* Patterns navigation */
  305. .patterns {
  306. overflow: auto;
  307. margin-top: 1.5rem;
  308. }
  309. .patterns * {
  310. margin-top: 0;
  311. }
  312. .patterns h3 {
  313. font-size: 1rem;
  314. }
  315. .patterns h3 + ul {
  316. margin-top: 0.75rem;
  317. }
  318. .patterns li {
  319. line-height: 1.125;
  320. list-style: none;
  321. }
  322. .patterns li + li {
  323. margin-top: 0.75rem;
  324. }
  325. .patterns ul ul {
  326. margin-left: 0.75rem;
  327. }
  328. .pattern a {
  329. border: 0;
  330. display: flex;
  331. flex-wrap: nowrap;
  332. align-items: baseline;
  333. font-weight: bold;
  334. }
  335. .pattern a:focus {
  336. outline: none;
  337. }
  338. .pattern span {
  339. margin-left: 0.125rem;
  340. }
  341. .pattern [aria-current] {
  342. background-color: #111;
  343. background-image: url(images/arrow_effect.svg);
  344. background-position: 98% center;
  345. background-size: 125%;
  346. background-repeat: no-repeat;
  347. color: #fff;
  348. padding: 0.5em 1em 0.5em;
  349. }
  350. /* menu button */
  351. #menu-button {
  352. display: none;
  353. width: 100%;
  354. text-align: center;
  355. }
  356. #menu-button:focus {
  357. outline: none;
  358. box-shadow: inset 0 0 0 0.25rem #ccc;
  359. }
  360. /* Tables of contents */
  361. .toc {
  362. font-size: 0.85rem;
  363. border: 1px solid;
  364. padding: 1.5rem;
  365. }
  366. .toc h2 {
  367. font-size: 1rem;
  368. }
  369. .toc ol {
  370. margin-left: 0.75rem;
  371. margin-top: 0.5rem;
  372. }
  373. /* Pattern lists */
  374. .patterns-list {
  375. list-style: none;
  376. margin-left: 0;
  377. }
  378. .patterns-list h2 {
  379. font-size: 1.25rem;
  380. }
  381. .patterns-list li + li {
  382. margin-top: 1rem;
  383. padding-top: 1rem;
  384. border-top: 2px solid;
  385. }
  386. .patterns-list a {
  387. border: 0;
  388. }
  389. /* Tags */
  390. .tags {
  391. margin-top: 0;
  392. font-size: 0.85rem;
  393. }
  394. .tags * {
  395. display: inline;
  396. margin: 0;
  397. }
  398. .tags strong {
  399. margin-right: 0.25rem;
  400. }
  401. .tags li {
  402. white-space: nowrap;
  403. margin: 0 0.25rem 0 0;
  404. }
  405. /* Notes and warnings */
  406. .note {
  407. border-left: 0.5rem solid;
  408. font-size: 0.85rem;
  409. }
  410. .note svg {
  411. height: 2.25rem;
  412. width: 2.25rem;
  413. }
  414. .note > div {
  415. margin-left: 0.75rem;
  416. }
  417. .note > div > img:first-child {
  418. height: 1.5rem;
  419. }
  420. .note > div >:first-child + * {
  421. margin-top: 0;
  422. }
  423. .note.warning {
  424. border-left: 0;
  425. background-image: url(images/stripe.svg);
  426. background-size: 0.5rem auto;
  427. background-repeat: repeat-y;
  428. }
  429. .note.warning > div {
  430. margin-left: 1.25rem;
  431. }
  432. /* Tick lists */
  433. .ticks li {
  434. list-style: none;
  435. position: relative;
  436. }
  437. .ticks li::before {
  438. content: '';
  439. display: inline-block;
  440. width: 1rem;
  441. height: 1rem;
  442. margin-right: 0.25rem;
  443. background-image: url(images/icon-tick.svg);
  444. background-size: 100% auto;
  445. position: absolute;
  446. left: -1.25rem;
  447. top: 0.25rem;
  448. }
  449. /* Figures */
  450. figure {
  451. text-align: center;
  452. }
  453. figcaption {
  454. font-size: 0.85rem;
  455. font-style: italic;
  456. margin-top: 0.5rem;
  457. }
  458. main {
  459. display: block;
  460. counter-reset: fig;
  461. min-height: 100vh;
  462. }
  463. figcaption::before {
  464. counter-increment: fig;
  465. content: 'Figure ' counter(fig) ':\0020';
  466. font-weight: bold;
  467. }
  468. /* Code blocks */
  469. pre[class*=language-] {
  470. background: none;
  471. margin-top: 2.25rem;
  472. margin-bottom: 0;
  473. overflow-y: hidden;
  474. overflow-x: auto;
  475. }
  476. code[class*="language-"], pre[class*="language-"] {
  477. text-shadow: none;
  478. filter: grayscale(100%);
  479. }
  480. pre[class*=language-][data-line] {
  481. padding: 1em 0 0 2.25rem;
  482. }
  483. pre[class*=language-] code * {
  484. margin-top: 0 !important;
  485. }
  486. [data-codeblock-shortcode] {
  487. display: inline-block;
  488. margin-top: -1rem;
  489. }
  490. .line-numbers code {
  491. padding-left: 3rem;
  492. margin-top: -1rem;
  493. overflow-x: visible;
  494. overflow-y: hidden;
  495. }
  496. .line-numbers {
  497. padding: 1.5rem !important;
  498. overflow-x: auto;
  499. }
  500. .line-numbers .line-numbers-rows {
  501. margin-left: 2.25rem;
  502. left: -3.5em;
  503. top: 1.25rem;
  504. color: #111;
  505. border-color: #111;
  506. }
  507. .line-numbers-rows > span:before {
  508. color: inherit;
  509. }
  510. /* file tree lists */
  511. .file-tree {
  512. overflow-x: auto;
  513. }
  514. .file-tree ul {
  515. font-family: Courier, monospace;
  516. margin: 0;
  517. padding: 0;
  518. padding-left: 3rem;
  519. list-style: none;
  520. line-height: 1.25;
  521. position: relative;
  522. }
  523. .file-tree > ul {
  524. padding-left: 0;
  525. overflow-x: auto;
  526. overflow-y: hidden;
  527. }
  528. .file-tree li {
  529. background: #fff;
  530. position: relative;
  531. white-space: nowrap;
  532. }
  533. .file-tree li + li {
  534. margin-top: 0;
  535. }
  536. .file-tree li:not(:last-child) > ul::before {
  537. content: '\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020';
  538. position: absolute;
  539. left: 0;
  540. top: 0;
  541. bottom: 0;
  542. width: 1em;
  543. white-space: normal;
  544. }
  545. .file-tree li::before {
  546. content: '\251C\2500\2500\0020';
  547. }
  548. .file-tree li:last-child::before {
  549. content: '\2514\2500\2500\0020';
  550. }
  551. /* Expandable sections */
  552. .expandable-section {
  553. border-top: 1px solid;
  554. border-bottom: 1px solid;
  555. padding: 0.75rem 0;
  556. }
  557. [id^="js-expandable-"] {
  558. margin: 0;
  559. padding: 1.5rem 0 0.75rem;
  560. }
  561. @media screen {
  562. .expandable-section + .expandable-section {
  563. margin-top: 0;
  564. border-top: 0;
  565. }
  566. }
  567. [data-expands] {
  568. text-align: left;
  569. color: #111;
  570. border: 0;
  571. background: none;
  572. width: 100%;
  573. padding: 0;
  574. margin: 0;
  575. display: flex;
  576. align-items: center;
  577. justify-content: space-between;
  578. cursor: pointer;
  579. }
  580. [data-expands] svg {
  581. margin-top: 0;
  582. width: 1em;
  583. height: 1em;
  584. }
  585. [data-expands][aria-expanded="true"] svg .up-strut {
  586. display: none;
  587. }
  588. [data-expands]:focus {
  589. outline: none;
  590. }
  591. p:empty {
  592. display: none;
  593. }
  594. *:not(p) + p:empty + p {
  595. margin-top: 2.25rem;
  596. }
  597. /* WCAG and principles */
  598. .wcag li {
  599. font-size: 0.85em;
  600. }
  601. .principles p {
  602. font-size: 0.85rem;
  603. margin-top: 0.75rem;
  604. }
  605. .principles.with-desc > li + li,
  606. .wcag.with-desc > li + li {
  607. border-top: 1px solid;
  608. margin-top: 0.75rem;
  609. padding-top: 0.75rem;
  610. }
  611. /* Site errors */
  612. .site-error {
  613. padding: 1.5rem;
  614. background: #efefef;
  615. }
  616. .site-error strong {
  617. color: #C83737;
  618. }
  619. /* SVG icons */
  620. a svg,
  621. button svg,
  622. h1 svg,
  623. th svg {
  624. height: 0.75em;
  625. width: auto;
  626. margin-right: 0.25em;
  627. }
  628. h1 svg,
  629. li > svg,
  630. h2 a svg {
  631. height: 1em;
  632. width: auto;
  633. vertical-align: middle;
  634. }
  635. h1 svg {
  636. margin-right: 0;
  637. }
  638. .print {
  639. white-space: nowrap;
  640. font-style: normal;
  641. }
  642. .svg-outer {
  643. width: 0.75em;
  644. display: inline-block;
  645. vertical-align: middle;
  646. }
  647. /* Color palettes */
  648. .colors {
  649. display: flex;
  650. height: 5rem;
  651. margin: -0.25rem;
  652. list-style: none;
  653. flex-wrap: nowrap;
  654. }
  655. .colors li {
  656. margin: 0.25rem;
  657. flex: 1 0 auto;
  658. position: relative;
  659. }
  660. .colors span {
  661. line-height: 1;
  662. background-color: #111;
  663. color: #fff;
  664. font-size: 0.75rem;
  665. padding: 0.25rem;
  666. position: absolute;
  667. bottom: 0.25rem;
  668. right: 0.25rem;
  669. }
  670. /* cross references */
  671. .pattern-link {
  672. font-weight: bold;
  673. }
  674. /* inline demos */
  675. .demo-inner {
  676. border-top: 1px solid;
  677. border-bottom: 1px solid;
  678. padding: 1.5rem 0 0;
  679. text-align: right;
  680. }
  681. [id^="js-demo-"] {
  682. all: initial;
  683. display: block;
  684. }
  685. /* Section links */
  686. .h2-container {
  687. position: relative;
  688. font-size: 1.66rem;
  689. }
  690. .h2-container a {
  691. position: absolute;
  692. margin-top: 0;
  693. top: 0;
  694. line-height: 1;
  695. left: -1em;
  696. border: 0;
  697. }
  698. /* Single page layout */
  699. .wrapper.print-version .main-and-footer {
  700. margin-left: 0;
  701. }
  702. .wrapper.print-version .intro-and-nav {
  703. position: static;
  704. border: 0;
  705. width: auto;
  706. text-align: center;
  707. display: flex;
  708. align-items: center;
  709. justify-content: center;
  710. }
  711. .wrapper.print-version main {
  712. min-height: 0;
  713. }
  714. .wrapper.print-version .library-desc {
  715. font-size: 1rem;
  716. }
  717. .wrapper.print-version .intro-and-nav > div {
  718. height: auto;
  719. }
  720. .wrapper.print-version #patterns-list {
  721. margin-left: 0;
  722. margin-top: 1.5rem;
  723. display: block;
  724. }
  725. .wrapper.print-version .toc {
  726. font-size: 1rem;
  727. }
  728. .wrapper.print-version .toc h2 {
  729. font-size: 1.66rem;
  730. }
  731. .wrapper.print-version #patterns-list h3 {
  732. font-size: 1.25rem;
  733. }
  734. .wrapper.print-version .patterns {
  735. margin-top: 0;
  736. }
  737. .pattern-section:not(:last-child) {
  738. padding-bottom: 2.25rem;
  739. border-bottom: 2px solid;
  740. }
  741. .pattern-section h1 {
  742. padding: 0 !important;
  743. }
  744. /* Utilities */
  745. .vh {
  746. clip: rect(1px, 1px, 1px, 1px);
  747. height: 1px;
  748. overflow: hidden;
  749. position: absolute;
  750. white-space: nowrap;
  751. width: 1px;
  752. }
  753. @media screen and (max-width: 45em) {
  754. [role="banner"] {
  755. position: static;
  756. width: auto;
  757. height: auto;
  758. }
  759. .intro {
  760. text-align: center;
  761. }
  762. .intro-and-nav > div {
  763. padding: 1.5rem;
  764. }
  765. .main-and-footer {
  766. margin: 0;
  767. }
  768. .patterns h3 {
  769. font-size: 1.125rem;
  770. border-top: 4px solid;
  771. border-bottom: 4px solid;
  772. padding: 0.75rem 0;
  773. }
  774. .patterns li:not(.pattern) {
  775. margin-top: 0;
  776. }
  777. .patterns ul ul {
  778. margin: 0;
  779. }
  780. .patterns li {
  781. margin-top: 0;
  782. }
  783. .pattern {
  784. font-size: 1rem;
  785. }
  786. .pattern a {
  787. padding: 0.75rem 0;
  788. }
  789. .pattern [aria-current] {
  790. background-image: none;
  791. }
  792. .pattern + .pattern {
  793. border-top: 1px solid;
  794. margin-top: 0;
  795. }
  796. #menu-button {
  797. display: block;
  798. }
  799. #patterns-list {
  800. display: none;
  801. }
  802. .toc-link {
  803. display: none;
  804. }
  805. [aria-expanded="true"] + #patterns-list {
  806. display: block;
  807. }
  808. code {
  809. word-break: break-all;
  810. }
  811. }
  812. @media print {
  813. .wrapper:not(.print-version) .intro-and-nav,
  814. .wrapper:not(.print-version) [role="contentinfo"] {
  815. display: none;
  816. }
  817. .main-and-footer {
  818. margin-left: 0;
  819. }
  820. a {
  821. border: 0;
  822. }
  823. main a::after {
  824. content: " (" attr(href) ")";
  825. word-break: break-word;
  826. }
  827. main nav a::after {
  828. content: '';
  829. }
  830. .cmd code {
  831. background: #fff;
  832. color: #111;
  833. }
  834. pre code {
  835. white-space: pre-wrap !important;
  836. }
  837. .line-numbers .line-numbers-rows {
  838. display: none;
  839. }
  840. .line-numbers code {
  841. padding-left: 0;
  842. }
  843. .expandable-section {
  844. border: 0;
  845. padding: 0;
  846. }
  847. .expandable-section + p {
  848. margin-top: 0.75rem;
  849. }
  850. [id^="js-expandable-"] {
  851. display: block;
  852. }
  853. [data-expands] svg {
  854. display: none;
  855. }
  856. main *:not(.with-desc) {
  857. page-break-inside: avoid;
  858. }
  859. .note.warning {
  860. border-left: 0.5rem solid;
  861. background: none;
  862. }
  863. }
  864. @media (-ms-high-contrast: active) {
  865. img[src*=".svg"] {
  866. background: #fff;
  867. padding: 0.5rem;
  868. }
  869. .ticks li::before {
  870. content: '✓';
  871. background: none;
  872. width: auto;
  873. top: 0;
  874. }
  875. }