103 lines
1.8 KiB
Stylus
103 lines
1.8 KiB
Stylus
::selection {
|
|
background: $selection-bg;
|
|
color: $selection-color;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
background: var(--body-bg-color);
|
|
color: var(--text-color);
|
|
font-family: $font-family-base;
|
|
font-size: $font-size-base;
|
|
line-height: $line-height-base;
|
|
|
|
+tablet-mobile() {
|
|
// Remove the padding of body when the sidebar is open.
|
|
padding-left: 0 !important;
|
|
padding-right: 0 !important;
|
|
}
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: $font-family-headings;
|
|
font-weight: bold;
|
|
line-height: 1.5;
|
|
margin: 20px 0 15px;
|
|
}
|
|
|
|
for headline in (1 .. 6) {
|
|
h{headline} {
|
|
font-size: $font-size-headings-base - $font-size-headings-step * headline;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
a, span.exturl {
|
|
border-bottom: 1px solid $link-decoration-color;
|
|
color: var(--link-color);
|
|
outline: 0;
|
|
text-decoration: none;
|
|
word-wrap();
|
|
|
|
&:hover {
|
|
border-bottom-color: var(--link-hover-color);
|
|
color: var(--link-hover-color);
|
|
}
|
|
|
|
// For spanned external links.
|
|
cursor: pointer;
|
|
}
|
|
|
|
iframe, img, video {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
hr {
|
|
background-image: repeating-linear-gradient(-45deg, $grey-lighter, $grey-lighter 4px, transparent 4px, transparent 8px);
|
|
border: 0;
|
|
height: 3px;
|
|
margin: 40px 0;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 4px solid $grey-lighter;
|
|
color: var(--blockquote-color);
|
|
margin: 0;
|
|
padding: 0 15px;
|
|
|
|
cite::before {
|
|
content: '-';
|
|
padding: 0 5px;
|
|
}
|
|
}
|
|
|
|
dt {
|
|
font-weight: bold;
|
|
}
|
|
|
|
dd {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
kbd {
|
|
background-color: $whitesmoke;
|
|
background-image: linear-gradient($gainsboro, white, $gainsboro);
|
|
border: 1px solid $grey-light;
|
|
border-radius: .2em;
|
|
box-shadow: .1em .1em .2em rgba(0, 0, 0, .1);
|
|
color: $code-foreground;
|
|
font-family: inherit;
|
|
padding: .1em .3em;
|
|
white-space: nowrap;
|
|
}
|