styles.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  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. li > svg {
  625. height: 0.75em;
  626. width: 0.75em;
  627. margin-right: 0.25em;
  628. }
  629. h1 svg {
  630. margin-right: 0;
  631. width: 0.85em;
  632. height: 0.85em;
  633. }
  634. .wcag-icon {
  635. width: 1.25em;
  636. }
  637. .bookmark-icon {
  638. vertical-align: middle;
  639. }
  640. .link-icon {
  641. width: 0.75em;
  642. height: 0.75em;
  643. }
  644. .tags svg, .link-icon {
  645. vertical-align: middle;
  646. }
  647. .balloon-icon {
  648. width: 0.75em;
  649. margin-right: 0;
  650. }
  651. .print {
  652. white-space: nowrap;
  653. font-style: normal;
  654. }
  655. /* Color palettes */
  656. .colors {
  657. display: flex;
  658. height: 5rem;
  659. margin: -0.25rem;
  660. list-style: none;
  661. flex-wrap: nowrap;
  662. }
  663. .colors li {
  664. margin: 0.25rem;
  665. flex: 1 0 auto;
  666. position: relative;
  667. }
  668. .colors span {
  669. line-height: 1;
  670. background-color: #111;
  671. color: #fff;
  672. font-size: 0.75rem;
  673. padding: 0.25rem;
  674. position: absolute;
  675. bottom: 0.25rem;
  676. right: 0.25rem;
  677. }
  678. /* cross references */
  679. .pattern-link {
  680. font-weight: bold;
  681. }
  682. /* inline demos */
  683. .demo-inner {
  684. border-top: 1px solid;
  685. border-bottom: 1px solid;
  686. padding: 1.5rem 0 0;
  687. text-align: right;
  688. }
  689. [id^="js-demo-"] {
  690. all: initial;
  691. display: block;
  692. }
  693. /* Section links */
  694. .h2-container {
  695. position: relative;
  696. font-size: 1.66rem;
  697. }
  698. .h2-container a {
  699. position: absolute;
  700. margin-top: 0;
  701. top: 0;
  702. line-height: 1;
  703. left: -1em;
  704. border: 0;
  705. }
  706. /* Single page layout */
  707. .wrapper.print-version .main-and-footer {
  708. margin-left: 0;
  709. }
  710. .wrapper.print-version .intro-and-nav {
  711. position: static;
  712. border: 0;
  713. width: auto;
  714. text-align: center;
  715. display: flex;
  716. align-items: center;
  717. justify-content: center;
  718. }
  719. .wrapper.print-version main {
  720. min-height: 0;
  721. }
  722. .wrapper.print-version .library-desc {
  723. font-size: 1rem;
  724. }
  725. .wrapper.print-version .intro-and-nav > div {
  726. height: auto;
  727. }
  728. .wrapper.print-version #patterns-list {
  729. margin-left: 0;
  730. margin-top: 1.5rem;
  731. display: block;
  732. }
  733. .wrapper.print-version .toc {
  734. font-size: 1rem;
  735. }
  736. .wrapper.print-version .toc h2 {
  737. font-size: 1.66rem;
  738. }
  739. .wrapper.print-version #patterns-list h3 {
  740. font-size: 1.25rem;
  741. }
  742. .wrapper.print-version .patterns {
  743. margin-top: 0;
  744. }
  745. .pattern-section:not(:last-child) {
  746. padding-bottom: 2.25rem;
  747. border-bottom: 2px solid;
  748. }
  749. .pattern-section h1 {
  750. padding: 0 !important;
  751. }
  752. /* Utilities */
  753. .vh {
  754. clip: rect(1px, 1px, 1px, 1px);
  755. height: 1px;
  756. overflow: hidden;
  757. position: absolute;
  758. white-space: nowrap;
  759. width: 1px;
  760. }
  761. @media screen and (max-width: 45em) {
  762. [role="banner"] {
  763. position: static;
  764. width: auto;
  765. height: auto;
  766. }
  767. .intro {
  768. text-align: center;
  769. }
  770. .intro-and-nav > div {
  771. padding: 1.5rem;
  772. }
  773. .main-and-footer {
  774. margin: 0;
  775. }
  776. .patterns h3 {
  777. font-size: 1.125rem;
  778. border-top: 4px solid;
  779. border-bottom: 4px solid;
  780. padding: 0.75rem 0;
  781. }
  782. .patterns li:not(.pattern) {
  783. margin-top: 0;
  784. }
  785. .patterns ul ul {
  786. margin: 0;
  787. }
  788. .patterns li {
  789. margin-top: 0;
  790. }
  791. .pattern {
  792. font-size: 1rem;
  793. }
  794. .pattern a {
  795. padding: 0.75rem 0;
  796. }
  797. .pattern [aria-current] {
  798. background-image: none;
  799. }
  800. .pattern + .pattern {
  801. border-top: 1px solid;
  802. margin-top: 0;
  803. }
  804. #menu-button {
  805. display: block;
  806. }
  807. #patterns-list {
  808. display: none;
  809. }
  810. .toc-link {
  811. display: none;
  812. }
  813. [aria-expanded="true"] + #patterns-list {
  814. display: block;
  815. }
  816. code {
  817. word-break: break-all;
  818. }
  819. }
  820. @media print {
  821. .wrapper:not(.print-version) .intro-and-nav,
  822. .wrapper:not(.print-version) [role="contentinfo"] {
  823. display: none;
  824. }
  825. .main-and-footer {
  826. margin-left: 0;
  827. }
  828. a {
  829. border: 0;
  830. }
  831. main a::after {
  832. content: " (" attr(href) ")";
  833. word-break: break-word;
  834. }
  835. main nav a::after {
  836. content: '';
  837. }
  838. .cmd code {
  839. background: #fff;
  840. color: #111;
  841. }
  842. pre code {
  843. white-space: pre-wrap !important;
  844. }
  845. .line-numbers .line-numbers-rows {
  846. display: none;
  847. }
  848. .line-numbers code {
  849. padding-left: 0;
  850. }
  851. .expandable-section {
  852. border: 0;
  853. padding: 0;
  854. }
  855. .expandable-section + p {
  856. margin-top: 0.75rem;
  857. }
  858. [id^="js-expandable-"] {
  859. display: block;
  860. }
  861. [data-expands] svg {
  862. display: none;
  863. }
  864. main *:not(.with-desc) {
  865. page-break-inside: avoid;
  866. }
  867. .note.warning {
  868. border-left: 0.5rem solid;
  869. background: none;
  870. }
  871. }
  872. @media (-ms-high-contrast: active) {
  873. img[src*=".svg"] {
  874. background: #fff;
  875. padding: 0.5rem;
  876. }
  877. .ticks li::before {
  878. content: '✓';
  879. background: none;
  880. width: auto;
  881. top: 0;
  882. }
  883. }