styles.css 16 KB

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