212 lines
3.4 KiB
SCSS
212 lines
3.4 KiB
SCSS
:root {
|
|
--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Cantarell, Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
|
|
}
|
|
|
|
// Change these two variables for styling
|
|
$baseheight: 18px;
|
|
$baseline: 1.75;
|
|
|
|
// Don't change this one, it's just to
|
|
// make code more readable
|
|
$lineheight: $baseline * 1rem;
|
|
|
|
@mixin paragraph() {
|
|
padding:0;
|
|
margin:0;
|
|
margin-bottom: $lineheight;
|
|
}
|
|
|
|
html {
|
|
font-family: var(--font-family);
|
|
text-align: left;
|
|
font-size: $baseheight;
|
|
}
|
|
|
|
body {
|
|
line-height: $lineheight;
|
|
color: #444;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.night-mode {
|
|
color:#BBB;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
a {
|
|
color:#2484c1;
|
|
text-decoration:none;
|
|
}
|
|
|
|
p, time {
|
|
@include paragraph();
|
|
&:last-child {
|
|
margin-bottom:0;
|
|
}
|
|
}
|
|
|
|
ul, ol {
|
|
@include paragraph();
|
|
ul {
|
|
margin-bottom:0;
|
|
}
|
|
li {
|
|
margin-left: $lineheight;
|
|
}
|
|
}
|
|
|
|
/* sup, sub */
|
|
|
|
sup, sub {
|
|
margin:0;
|
|
padding:0;
|
|
line-height:$lineheight;
|
|
font-size: 0.8rem;
|
|
vertical-align:baseline;
|
|
position:relative;
|
|
}
|
|
|
|
sup {
|
|
top: -$lineheight/4;
|
|
}
|
|
|
|
sub {
|
|
top: $lineheight/4;
|
|
}
|
|
|
|
|
|
::selection { background: #2484c1; color: #fff; }
|
|
::-moz-selection { background: #2484c1; color: #fff; }
|
|
|
|
/* ------------------ WRAPPERS ------------------- */
|
|
|
|
.text-wrapper {
|
|
width:$baseheight*40;
|
|
margin: auto;
|
|
}
|
|
|
|
/* ------------------ TITLES ------------------- */
|
|
|
|
@mixin title($size, $weight) {
|
|
$height: ceil($size / $baseline) * $baseline;
|
|
font-size: $size * 1rem;
|
|
line-height: $height * 1rem;
|
|
margin-bottom: $lineheight;
|
|
font-weight: $weight;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6, h7 {
|
|
text-align: left;
|
|
font-size: $baseheight;
|
|
line-height: $lineheight;
|
|
padding:0;
|
|
margin:0;
|
|
font-weight:400;
|
|
}
|
|
|
|
h1 {
|
|
@include title(2.3333333, 700);
|
|
}
|
|
|
|
h2 {
|
|
@include title(2, 700);
|
|
}
|
|
|
|
h3 {
|
|
@include title(1.5, 700);
|
|
}
|
|
|
|
h4 {
|
|
@include title(1.5, 600);
|
|
}
|
|
|
|
h5 {
|
|
@include title(1.333333, 600);
|
|
}
|
|
|
|
h6 {
|
|
@include title(1.1, 600);
|
|
}
|
|
|
|
/* ------------------ HR ------------------- */
|
|
|
|
hr {
|
|
border-top: 0px;
|
|
border-left: 0px;
|
|
border-right: 0px;
|
|
border-bottom: 1px;
|
|
border-color: rgba(1,1,1,0.15);
|
|
border-style: solid;
|
|
padding:0;
|
|
margin:0;
|
|
margin-bottom: $lineheight;
|
|
}
|
|
|
|
/* ------------------ QUOTE ------------------- */
|
|
|
|
@mixin well() {
|
|
border-width: 0 0 0 $lineheight/4;
|
|
border-style: solid;
|
|
border-radius: $lineheight/8;
|
|
margin:0;
|
|
margin-bottom: $lineheight;
|
|
padding: $lineheight;
|
|
font-size:1.1rem;
|
|
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
blockquote {
|
|
@include well();
|
|
border-color: rgba(1, 1, 1, 0.15);
|
|
|
|
.night-mode & {
|
|
border-color: rgba(255, 255, 255, 0.15)
|
|
}
|
|
}
|
|
|
|
pre {
|
|
@include well();
|
|
border-color: rgba(1,1,1,0.20);
|
|
background-color:#EEE;
|
|
|
|
.night-mode & {
|
|
background-color:#222;
|
|
border-color:rgba(255,255,255,0.20);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
mark {
|
|
border-radius: 0.2em;
|
|
padding:0 $lineheight/4 0 $lineheight/4;
|
|
|
|
background-color:rgba(255,255,0,0.33);
|
|
color: inherit;
|
|
}
|
|
|
|
.night-mode mark {
|
|
background-color:rgba(128,128,0,0.66);
|
|
}
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
.time {
|
|
font-style: italic;
|
|
text-align: right;
|
|
width: 100%;
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
}
|