styles.css 16 KB

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