styles.css 14 KB

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