styles.css 15 KB

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