134 lines
2.2 KiB
CSS
134 lines
2.2 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
|
|
|
|
:root {
|
|
font-family: sans-serif;
|
|
--color-bg: white;
|
|
--color-fg: #222;
|
|
--color-ac: hsl(274deg 100% 90%);
|
|
--color-hl: hsl(274deg 100% 70%);
|
|
|
|
--line-mid: .14rem;
|
|
--line-thick: .2rem;
|
|
color: var(--color-fg);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: var(--color-bg);
|
|
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
padding: 1em 2em;
|
|
}
|
|
|
|
body>section {
|
|
width: 100%;
|
|
max-width: 60em;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Raleway', sans-serif;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h2 {
|
|
padding: 0 1em 0 .2em;
|
|
width: max-content;
|
|
border-bottom: .1em solid var(--color-ac);
|
|
}
|
|
|
|
h3::before {
|
|
content: "\2023" ' ';
|
|
color: var(--color-ac);
|
|
}
|
|
|
|
em {
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
}
|
|
|
|
hr {
|
|
all: unset;
|
|
width: 100%;
|
|
border-bottom: .2em solid var(--color-ac);
|
|
grid-column: 1 / -1;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.button {
|
|
--color-primary: var(--color-hl);
|
|
--color-secondary: var(--color-bg);
|
|
display: inline-block;
|
|
transition: all .3s;
|
|
cursor: pointer;
|
|
border-radius: .3em;
|
|
border: var(--line-mid) var(--color-primary) solid;
|
|
padding: .2em .6em;
|
|
text-decoration: none;
|
|
color: var(--color-primary);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.button:hover {
|
|
color: var(--color-secondary);
|
|
background-color: var(--color-primary);
|
|
text-shadow: .2em .3em .2em #0004;
|
|
}
|
|
|
|
pre>code {
|
|
display: block;
|
|
border-left: dashed var(--line-mid) var(--color-ac);
|
|
padding-left: 1.6em;
|
|
}
|
|
|
|
span[title] {
|
|
cursor: help;
|
|
border-bottom: dotted currentcolor .16em;
|
|
}
|
|
|
|
code-block:not(:defined) {
|
|
font-family: monospace;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
dl, dt, dd { all: unset; }
|
|
dt, dd { display: block; }
|
|
dl {
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
dt {
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
dl>*+dt { margin-top: .8em; }
|
|
dl>dt+* { margin-top: .6em; }
|
|
dl>*+* { margin-top: .4em; }
|
|
|
|
code { font-size: 1.1em; }
|
|
|
|
dl>code dt, dl>code dd { all: unset;}
|
|
dl>code dt::after { content: '\00A0:\00A0';}
|
|
|
|
dl>code {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
}
|
|
dl>code>dt~dd { grid-column: 2/2; }
|
|
|
|
.columns {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.4em;
|
|
}
|
|
.columns>* {
|
|
margin: 0;
|
|
flex: 100%;
|
|
}
|
|
|
|
.all-unset { all: unset; }
|
|
.full-width { grid-column: 1/-1; }
|