1341 lines
25 KiB
CSS
1341 lines
25 KiB
CSS
/* Fonts */
|
|
@import url("https://fonts.bunny.net/css?family=miriam-libre:400,700");
|
|
|
|
:root {
|
|
--text-color: #E1D9D1;
|
|
--background: #353535;
|
|
--background-gradient: linear-gradient(#2a2a29, #1c1c1c);
|
|
--href: #FFA500;
|
|
--href-dark: #e59400;
|
|
--selector: #996300;
|
|
--main-font: Miriam Libre, serif;
|
|
--secondary-font: Arial, Helvetica Neue, sans-serif;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
font-family: inherit;
|
|
background-color: inherit;
|
|
color: inherit;
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.fourohfour {
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
flex-direction: column;
|
|
}
|
|
|
|
html {
|
|
font-size: calc(1em + 0.33vw);
|
|
font-family: var(--secondary-font);
|
|
;
|
|
line-height: 1.5;
|
|
color: #111;
|
|
background-color: var(--text-color);
|
|
;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
/* Fixes #77 */
|
|
overscroll-behavior-y: none;
|
|
}
|
|
|
|
template {
|
|
display: none !important;
|
|
}
|
|
|
|
br,
|
|
dt,
|
|
dd,
|
|
th,
|
|
td,
|
|
option,
|
|
[hidden]+*,
|
|
li+li,
|
|
body,
|
|
.main-and-footer {
|
|
margin-top: 0;
|
|
}
|
|
|
|
p+p {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.priority {
|
|
margin-top: 0;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
abbr {
|
|
text-decoration: none;
|
|
cursor: help;
|
|
border-bottom: 1px dashed;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 50vh;
|
|
border-radius: 2px;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.img-link {
|
|
border-bottom: none;
|
|
}
|
|
|
|
p img {
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
figure p img {
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
a {
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Katex math typesetting */
|
|
.katex * {
|
|
margin-top: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* Skip link */
|
|
[href="#main"] {
|
|
display: block;
|
|
width: 100%;
|
|
padding: none;
|
|
color: var(--text-color);
|
|
;
|
|
background: #000;
|
|
position: absolute;
|
|
top: -3rem;
|
|
text-align: center;
|
|
z-index: 1;
|
|
}
|
|
|
|
|
|
/* Text styles */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-family: var(--main-font);
|
|
;
|
|
line-height: 1.125;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.66rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
h4,
|
|
h5 {
|
|
font-size: 1rem;
|
|
font-family: PT Sans, sans-serif;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
kbd {
|
|
line-height: 1;
|
|
font-size: 0.66rem;
|
|
padding: 0.1rem 0.33rem;
|
|
border-radius: 0.25rem;
|
|
border: 2px solid;
|
|
box-shadow: 0.125rem 0.125rem 0 #111;
|
|
vertical-align: 0.33em;
|
|
}
|
|
|
|
pre,
|
|
.file-tree {
|
|
overflow-x: auto;
|
|
padding: 1.5rem;
|
|
border: 1px solid;
|
|
}
|
|
|
|
code {
|
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
font-size: 0.85em;
|
|
background-color: #343434;
|
|
}
|
|
|
|
.cmd {
|
|
padding: 0.75rem;
|
|
background: #111;
|
|
}
|
|
|
|
.cmd code {
|
|
color: var(--text-color);
|
|
;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.cmd code::before {
|
|
content: '$';
|
|
font-weight: bold;
|
|
padding-right: 0.25em;
|
|
}
|
|
|
|
.cmd code::selection {
|
|
background: var(--text-color);
|
|
;
|
|
color: rgba(0, 0, 0, .8);
|
|
}
|
|
|
|
/* Lists */
|
|
main ul,
|
|
main ol {
|
|
margin-left: 2.25rem;
|
|
}
|
|
|
|
main li+li {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
main ul ul,
|
|
main ol ol,
|
|
main li ul,
|
|
main li ol {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
ol ol {
|
|
list-style: lower-latin;
|
|
}
|
|
|
|
ol ol ol {
|
|
list-style: lower-roman;
|
|
}
|
|
|
|
main dt {
|
|
font-weight: bold;
|
|
}
|
|
|
|
main dd {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
dd ul {
|
|
margin-left: 0;
|
|
}
|
|
|
|
dd li+li {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Blockquotes */
|
|
blockquote {
|
|
border-left: 0.5rem solid;
|
|
padding-left: 0.75rem;
|
|
}
|
|
|
|
blockquote .author {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
font-size: 1.25rem;
|
|
border-radius: 0.33em;
|
|
font-family: inherit;
|
|
background: #111;
|
|
color: var(--text-color);
|
|
;
|
|
padding: 0.75rem;
|
|
border: 0;
|
|
}
|
|
|
|
[data-launch] {
|
|
font-size: 0.66rem !important;
|
|
padding: 0.5rem !important;
|
|
margin-top: 0 !important;
|
|
border-radius: 0 !important;
|
|
border-top-left-radius: 0.33rem !important;
|
|
box-shadow: none !important;
|
|
background: #111 !important;
|
|
color: var(--text-color);
|
|
!important;
|
|
position: absolute !important;
|
|
right: 0 !important;
|
|
bottom: 0 !important;
|
|
}
|
|
|
|
/* Forms */
|
|
label {
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
}
|
|
|
|
[for="themer"] {
|
|
background: #111;
|
|
border-radius: 0.33em;
|
|
color: var(--text-color);
|
|
;
|
|
padding: 0.25em 0.75em;
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
[for="themer"] [aria-hidden]::before {
|
|
content: 'off';
|
|
}
|
|
|
|
[for="themer"] :checked+[aria-hidden]::before {
|
|
content: 'on';
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
text-align: left;
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border: 2px solid;
|
|
padding: 0.5rem;
|
|
line-height: 1.25;
|
|
margin: 0;
|
|
}
|
|
|
|
th {
|
|
font-weight: bold;
|
|
}
|
|
|
|
th:empty {
|
|
border: 0;
|
|
}
|
|
|
|
/* Tested using... table */
|
|
.tested {
|
|
text-align: center;
|
|
border: 1px solid #111;
|
|
}
|
|
|
|
.tested tr {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
}
|
|
|
|
.tested td,
|
|
.tested th {
|
|
vertical-align: middle;
|
|
overflow: hidden;
|
|
flex: 1 0 auto;
|
|
border: 1px solid #111;
|
|
}
|
|
|
|
.tested th {
|
|
width: 100%;
|
|
background-color: #111;
|
|
color: var(--text-color);
|
|
;
|
|
outline-color: #111;
|
|
}
|
|
|
|
.tested img {
|
|
max-width: 3rem;
|
|
}
|
|
|
|
.tested span {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
|
|
.tested .additional {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
caption {
|
|
font-size: 1.125rem;
|
|
padding-bottom: 0.25rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Page structure */
|
|
.wrapper {
|
|
position: relative;
|
|
margin-top: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.intro-and-nav {
|
|
font-size: 0.8rem;
|
|
width: 15rem;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
border-right: 2px solid;
|
|
}
|
|
|
|
.intro-and-nav>div {
|
|
padding: 2.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.intro {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.patterns {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.logo {
|
|
border: 0;
|
|
}
|
|
|
|
.logo img {
|
|
width: 100%;
|
|
max-width: 12rem;
|
|
}
|
|
|
|
.library-desc {
|
|
margin-top: 0.5rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 25rem;
|
|
}
|
|
|
|
.library-desc a {
|
|
color: var(--href);
|
|
}
|
|
|
|
.main-and-footer {
|
|
margin-left: 15rem;
|
|
}
|
|
|
|
.main-and-footer>div {
|
|
max-width: 40rem;
|
|
margin: 0 auto;
|
|
padding: 2.25rem;
|
|
}
|
|
|
|
[role="contentinfo"] {
|
|
font-size: 0.85rem;
|
|
/** margin-top: 4rem; **/
|
|
text-align: center;
|
|
}
|
|
|
|
/* Patterns navigation */
|
|
.patterns {
|
|
overflow: auto;
|
|
margin-top: 1.5rem;
|
|
min-width: max-content;
|
|
}
|
|
|
|
.patterns * {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.patterns h3 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.patterns h3+ul {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.patterns li {
|
|
line-height: 1.125;
|
|
list-style: none;
|
|
}
|
|
|
|
.patterns li+li {}
|
|
|
|
.patterns ul ul {
|
|
margin-left: 0.75rem;
|
|
}
|
|
|
|
.pattern a {
|
|
border: 0;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: baseline;
|
|
font-weight: bold;
|
|
padding: 0 1rem;
|
|
padding-top: 0.5em;
|
|
padding-bottom: 0.5em;
|
|
}
|
|
|
|
|
|
.pattern span {
|
|
margin-left: 0.125rem;
|
|
}
|
|
|
|
/* After */
|
|
.pattern [aria-current] {
|
|
background: linear-gradient(#2a2a29, #1c1c1c);
|
|
clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
|
|
color: var(--text-color);
|
|
;
|
|
}
|
|
|
|
/* Menu button */
|
|
#menu-button {
|
|
display: none;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* Tables of contents */
|
|
.toc {
|
|
font-size: 0.85rem;
|
|
border: 1px solid;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.toc nav {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.toc ol {
|
|
margin-left: 0.75rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* Disqus Comments */
|
|
#disqus-container {
|
|
text-align: center;
|
|
}
|
|
|
|
#disqus-button {
|
|
width: 100%;
|
|
padding: 0.25em 0.75em;
|
|
}
|
|
|
|
#disqus-comments {
|
|
display: none;
|
|
}
|
|
|
|
/* Pattern lists */
|
|
.patterns-list {
|
|
list-style: none;
|
|
margin-left: 0;
|
|
}
|
|
#patterns-list {
|
|
position:absolute;
|
|
}
|
|
|
|
.patterns-list h2 {
|
|
font-size: 1.25rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.patterns-list li+li {
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 2px solid;
|
|
}
|
|
|
|
.patterns-list a {
|
|
border: 0;
|
|
}
|
|
|
|
/* Tags */
|
|
.tags {
|
|
margin-top: 0;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.tags * {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
.tags strong {
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.tags li {
|
|
white-space: nowrap;
|
|
margin: 0 0.25rem 0 0;
|
|
}
|
|
|
|
/* Date */
|
|
.date {
|
|
margin-top: 0;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Notes and warnings */
|
|
.note {
|
|
border-left: 0.5rem solid;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.note .sign {
|
|
height: 2.25rem;
|
|
width: 2.25rem;
|
|
}
|
|
|
|
.note>div {
|
|
margin-left: 0.75rem;
|
|
}
|
|
|
|
.note>div>img:first-child {
|
|
height: 1.5rem;
|
|
}
|
|
|
|
.note>div>:first-child+* {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.note.warning {
|
|
border-left: 0;
|
|
background-image: url(http://localhost:1313/css/images/stripe.svg);
|
|
background-size: 0.5rem auto;
|
|
background-repeat: repeat-y;
|
|
}
|
|
|
|
.note.warning>div {
|
|
margin-left: 1.25rem;
|
|
}
|
|
|
|
/* Tick lists */
|
|
.ticks li {
|
|
list-style: none;
|
|
position: relative;
|
|
}
|
|
|
|
.ticks li::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
margin-right: 0.25rem;
|
|
background-image: url(http://localhost:1313/css/images/icon-tick.svg);
|
|
background-size: 100% auto;
|
|
position: absolute;
|
|
left: -1.25rem;
|
|
top: 0.25rem;
|
|
}
|
|
|
|
/* Figures */
|
|
figure {
|
|
text-align: center;
|
|
}
|
|
|
|
figcaption {
|
|
font-size: 0.85rem;
|
|
font-style: italic;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
main {
|
|
display: block;
|
|
counter-reset: fig;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
figcaption::before {
|
|
counter-increment: fig;
|
|
content: 'Figure 'counter(fig) ':\0020';
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Code blocks */
|
|
pre[class*=language-] {
|
|
background: none;
|
|
margin-top: 2.25rem;
|
|
margin-bottom: 0;
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
code[class*="language-"],
|
|
pre[class*="language-"] {
|
|
text-shadow: none;
|
|
/* filter: grayscale(100%); */
|
|
}
|
|
|
|
pre[class*=language-][data-line] {
|
|
padding: 1em 0 0 2.25rem;
|
|
}
|
|
|
|
pre[class*=language-] code * {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
[data-codeblock-shortcode],
|
|
.code-annotated code {
|
|
display: inline-block;
|
|
margin-top: -1rem;
|
|
}
|
|
|
|
.code-annotated {
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
padding: 1.5rem;
|
|
border: 1px solid;
|
|
white-space: pre;
|
|
counter-reset: annotation;
|
|
}
|
|
|
|
.highlight {
|
|
background: #ddd;
|
|
padding: 0.0625rem 0.33rem;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.numbered .highlight::after,
|
|
.code-annotated.numbered+ol li::before {
|
|
counter-increment: annotation;
|
|
content: counter(annotation);
|
|
font-weight: bold;
|
|
font-size: 0.5rem;
|
|
background: #111;
|
|
color: var(--text-color);
|
|
;
|
|
border-radius: 1rem;
|
|
margin-left: 0.25rem;
|
|
padding: 0.125em 0.5em;
|
|
vertical-align: 0.33em;
|
|
}
|
|
|
|
.code-annotated.numbered+ol {
|
|
list-style: none;
|
|
counter-reset: annotation;
|
|
}
|
|
|
|
.code-annotated.numbered+ol li::before {
|
|
font-size: 0.66em;
|
|
margin-right: 0.33em;
|
|
vertical-align: 0.25em;
|
|
}
|
|
|
|
/* File tree lists */
|
|
.file-tree {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.file-tree ul {
|
|
font-family: Courier, monospace;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding-left: 3rem;
|
|
list-style: none;
|
|
line-height: 1.25;
|
|
position: relative;
|
|
}
|
|
|
|
.file-tree>ul {
|
|
padding-left: 0;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.file-tree li {
|
|
background: var(--text-color);
|
|
;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.file-tree li+li {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.file-tree li:not(:last-child)>ul::before {
|
|
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';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1em;
|
|
white-space: normal;
|
|
}
|
|
|
|
.file-tree li::before {
|
|
content: '\251C\2500\2500\0020';
|
|
}
|
|
|
|
.file-tree li:last-child::before {
|
|
content: '\2514\2500\2500\0020';
|
|
}
|
|
|
|
/* Expandable sections */
|
|
.expandable-section {
|
|
border-top: 1px solid;
|
|
border-bottom: 1px solid;
|
|
padding: 0.75rem 0;
|
|
}
|
|
|
|
[id^="js-expandable-"] {
|
|
margin: 0;
|
|
padding: 1.5rem 0 0.75rem;
|
|
}
|
|
|
|
@media screen {
|
|
.expandable-section+.expandable-section {
|
|
margin-top: 0;
|
|
border-top: 0;
|
|
}
|
|
}
|
|
|
|
[data-expands] {
|
|
text-align: left;
|
|
color: #111;
|
|
border: 0;
|
|
background: none;
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
}
|
|
|
|
[data-expands] svg {
|
|
margin-top: 0;
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
|
|
[data-expands][aria-expanded="true"] svg .up-strut {
|
|
display: none;
|
|
}
|
|
|
|
*+* {
|
|
margin-top: 2.25rem;
|
|
}
|
|
|
|
|
|
p:empty {
|
|
display: none;
|
|
}
|
|
|
|
*:not(p)+p:empty+p {
|
|
margin-top: 2.25rem;
|
|
}
|
|
|
|
/* WCAG and principles */
|
|
.wcag li {
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.principles p {
|
|
font-size: 0.85rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.principles.with-desc>li+li,
|
|
.wcag.with-desc>li+li {
|
|
border-top: 1px solid;
|
|
margin-top: 0.75rem;
|
|
padding-top: 0.75rem;
|
|
}
|
|
|
|
/* Site errors */
|
|
.site-error {
|
|
padding: 1.5rem;
|
|
background: #efefef;
|
|
}
|
|
|
|
.site-error strong {
|
|
color: #C83737;
|
|
}
|
|
|
|
/* SVG icons */
|
|
a svg,
|
|
button svg,
|
|
h1 svg,
|
|
th svg,
|
|
li>svg {
|
|
height: 0.75em;
|
|
width: 0.75em;
|
|
margin-right: 0.25em;
|
|
}
|
|
|
|
h1 svg {
|
|
margin-right: 0;
|
|
width: 0.85em;
|
|
height: 0.85em;
|
|
}
|
|
|
|
.wcag-icon {
|
|
width: 1.25em;
|
|
}
|
|
|
|
.bookmark-icon {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.link-icon {
|
|
width: 0.75em;
|
|
height: 0.75em;
|
|
}
|
|
|
|
.tags svg,
|
|
.link-icon {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.balloon-icon {
|
|
width: 0.75em;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.print {
|
|
white-space: nowrap;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Color palettes */
|
|
.colors {
|
|
display: flex;
|
|
height: 5rem;
|
|
margin: -0.25rem;
|
|
list-style: none;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.colors li {
|
|
margin: 0.25rem;
|
|
flex: 1 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
.colors span {
|
|
line-height: 1;
|
|
background-color: #111;
|
|
color: var(--text-color);
|
|
;
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem;
|
|
position: absolute;
|
|
bottom: 0.25rem;
|
|
right: 0.25rem;
|
|
}
|
|
|
|
/* Cross references */
|
|
.pattern-link {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Inline demos */
|
|
.demo-inner {
|
|
border-top: 1px solid;
|
|
border-bottom: 1px solid;
|
|
padding: 1.5rem 0;
|
|
position: relative;
|
|
}
|
|
|
|
[id^="js-demo-"] {
|
|
all: initial;
|
|
display: block;
|
|
}
|
|
|
|
/* Section links */
|
|
.h2-container {
|
|
position: relative;
|
|
font-size: 1.66rem;
|
|
}
|
|
|
|
.h2-container .link-icon {
|
|
position: absolute;
|
|
margin-top: 0;
|
|
top: 0;
|
|
line-height: 1;
|
|
left: -1em;
|
|
border: 0;
|
|
display: none;
|
|
}
|
|
|
|
/* Single page layout */
|
|
.wrapper.print-version .main-and-footer {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.wrapper.print-version .intro-and-nav {
|
|
position: static;
|
|
border: 0;
|
|
width: auto;
|
|
text-align: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.wrapper.print-version main {
|
|
min-height: 0;
|
|
}
|
|
|
|
.wrapper.print-version .library-desc {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.wrapper.print-version .intro-and-nav>div {
|
|
height: auto;
|
|
}
|
|
|
|
.wrapper.print-version #patterns-list {
|
|
margin-left: 0;
|
|
margin-top: 1.5rem;
|
|
display: block;
|
|
}
|
|
|
|
.wrapper.print-version .toc {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.wrapper.print-version .toc h2 {
|
|
font-size: 1.66rem;
|
|
}
|
|
|
|
.wrapper.print-version #patterns-list h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.wrapper.print-version .patterns {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.pattern-section:not(:last-child) {
|
|
padding-bottom: 2.25rem;
|
|
border-bottom: 2px solid;
|
|
}
|
|
|
|
.pattern-section h1 {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
/* Custom 404 */
|
|
.custom-404 {
|
|
text-align: center;
|
|
}
|
|
|
|
.custom-404 * {
|
|
margin: 0;
|
|
}
|
|
|
|
.custom-404 svg {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Utilities */
|
|
.vh {
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
}
|
|
|
|
.gallery {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Media queries */
|
|
@media screen and (max-width: 45em) {
|
|
body a {
|
|
-webkit-hyphens: auto;
|
|
hyphens: auto;
|
|
}
|
|
|
|
[role="banner"] {
|
|
position: static;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
|
|
.intro {
|
|
text-align: center;
|
|
}
|
|
|
|
.intro-and-nav {
|
|
border-right: none;
|
|
}
|
|
|
|
.intro-and-nav>div {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.main-and-footer {
|
|
margin: 0;
|
|
}
|
|
|
|
#patterns-list {
|
|
margin-top: 0.5rem;
|
|
border: 1px solid;
|
|
}
|
|
|
|
.patterns h3 {
|
|
font-size: 1.5rem;
|
|
padding: 1.5rem 1rem 0.75rem;
|
|
}
|
|
|
|
.patterns li:not(.pattern) {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.patterns ul ul {
|
|
margin: 0;
|
|
}
|
|
|
|
.patterns li {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.pattern {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.pattern a {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.pattern [aria-current] {
|
|
clip-path: none;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.pattern+.pattern {
|
|
border-top: 1px solid;
|
|
margin-top: 0;
|
|
}
|
|
|
|
#menu-button {
|
|
display: block;
|
|
background: linear-gradient(#2a2a29, #1c1c1c);
|
|
}
|
|
|
|
#patterns-list {
|
|
display: none;
|
|
}
|
|
|
|
.toc-link {
|
|
display: none;
|
|
}
|
|
|
|
[aria-expanded="true"]+#patterns-list {
|
|
display: block;
|
|
border-color: transparent;
|
|
position: static;
|
|
}
|
|
|
|
code {
|
|
word-break: break-all;
|
|
}
|
|
}
|
|
|
|
@media print {
|
|
|
|
.wrapper:not(.print-version) .intro-and-nav,
|
|
.wrapper:not(.print-version) [role="contentinfo"] {
|
|
display: none;
|
|
}
|
|
|
|
.main-and-footer {
|
|
margin-left: 0;
|
|
}
|
|
|
|
a {
|
|
border: 0;
|
|
}
|
|
|
|
main a::after {
|
|
content: " ("attr(href) ")";
|
|
word-break: break-word;
|
|
}
|
|
|
|
main nav a::after {
|
|
content: '';
|
|
}
|
|
|
|
.cmd code {
|
|
background: var(--text-color);
|
|
;
|
|
color: #111;
|
|
}
|
|
|
|
pre code {
|
|
white-space: pre-wrap !important;
|
|
}
|
|
|
|
.expandable-section {
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.expandable-section+p {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
[id^="js-expandable-"] {
|
|
display: block;
|
|
}
|
|
|
|
[data-expands] svg {
|
|
display: none;
|
|
}
|
|
|
|
main *:not(.with-desc) {
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.note.warning {
|
|
border-left: 0.5rem solid;
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
@media (-ms-high-contrast: active) {
|
|
img[src*=".svg"] {
|
|
background: var(--text-color);
|
|
;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.ticks li::before {
|
|
content: '✓';
|
|
background: none;
|
|
width: auto;
|
|
top: 0;
|
|
}
|
|
|
|
.note.warning {
|
|
border-left: 0.5rem solid;
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
::-moz-selection {
|
|
/* Code for Firefox */
|
|
background: var(--selector);
|
|
;
|
|
color: var(--text-color);
|
|
;
|
|
}
|
|
|
|
::selection {
|
|
background: var(--selector);
|
|
;
|
|
color: var(--text-color);
|
|
;
|
|
}
|
|
|
|
embed,
|
|
iframe,
|
|
object {
|
|
max-width: 100%;
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
outline: none;
|
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9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQAAAAAACwAAAAABQADAAADCFhaA0QiLJYAADs=") center center repeat-x;
|
|
margin: 0 0 20px;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
a:hover,
|
|
a:active {
|
|
color: var(--href);
|
|
;
|
|
}
|
|
|
|
.emoji {
|
|
display: inline !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
height: 1em !important;
|
|
width: 1em !important;
|
|
margin: 0 0.07em !important;
|
|
vertical-align: -0.1em !important;
|
|
background: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
.youtube-player{
|
|
position:relative;
|
|
padding-bottom:56.25%;
|
|
height:0;
|
|
overflow:hidden;
|
|
max-width:100%;
|
|
background:transparent;
|
|
margin:5px
|
|
}
|
|
.youtube-player iframe{
|
|
position:absolute;
|
|
top:0;
|
|
left:0;
|
|
width:100%;
|
|
height:100%;
|
|
z-index:100;
|
|
background:0 0
|
|
}
|
|
.youtube-player img{
|
|
object-fit:cover;
|
|
display:block;
|
|
left:0;
|
|
bottom:0;
|
|
margin:auto;
|
|
max-width:100%;
|
|
width:100%;
|
|
position:absolute;
|
|
right:0;
|
|
top:0;
|
|
border:none;
|
|
height:auto;
|
|
cursor:pointer;
|
|
-webkit-transition:.4s all;
|
|
-moz-transition:.4s all;
|
|
transition:.4s all
|
|
}
|
|
.youtube-player img:hover{
|
|
-webkit-filter:brightness(75%);
|
|
filter:brightness(75%);
|
|
}
|
|
.youtube-player .play{
|
|
height:48px;
|
|
width:68px;
|
|
left:50%;
|
|
top:50%;
|
|
margin-left:-34px;
|
|
margin-top:-24px;
|
|
position:absolute;
|
|
background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAwCAYAAACooNxlAAAAAXNSR0IArs4c6QAAAMZlWElmTU0AKgAAAAgABgESAAMAAAABAAEAAAEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgEoAAMAAAABAAIAAAExAAIAAAAVAAAAZodpAAQAAAABAAAAfAAAAAAAAAEsAAAAAQAAASwAAAABUGl4ZWxtYXRvciBQcm8gMy4zLjIAAAAEkAQAAgAAABQAAACyoAEAAwAAAAEAAQAAoAIABAAAAAEAAABEoAMABAAAAAEAAAAwAAAAADIwMjM6MDM6MjYgMTE6Mjk6MjUAthnFpAAAAAlwSFlzAAAuIwAALiMBeKU/dgAAA7JpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8dG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