styles.css 16 KB

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