styles.css 15 KB

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