2018-10-15 13:35:03 +02:00
|
|
|
@import 'font-face';
|
2018-10-13 16:49:21 +02:00
|
|
|
|
2019-11-07 12:22:09 +01:00
|
|
|
// Change these two variables for styling
|
2019-11-04 15:28:23 +01:00
|
|
|
$baseheight: 18px;
|
2019-11-07 12:22:09 +01:00
|
|
|
$baseline: 1.5;
|
|
|
|
|
|
|
|
// Don't change this one, it's just to
|
|
|
|
// make code more readable
|
|
|
|
$lineheight: $baseline * 1rem;
|
2019-11-04 15:21:06 +01:00
|
|
|
|
2018-10-13 17:35:10 +02:00
|
|
|
@mixin paragraph() {
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
|
2019-11-04 15:28:23 +01:00
|
|
|
html {
|
2018-10-15 13:35:03 +02:00
|
|
|
font-family: OpenSans, sans-serif;
|
2018-10-13 16:49:21 +02:00
|
|
|
text-align: left;
|
2019-11-04 15:28:23 +01:00
|
|
|
font-size: $baseheight;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2019-11-07 12:22:09 +01:00
|
|
|
line-height: $lineheight;
|
2018-10-13 16:49:21 +02:00
|
|
|
color: #444;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.night-mode {
|
|
|
|
color:#BBB;
|
|
|
|
}
|
|
|
|
|
|
|
|
strong {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color:#2484c1;
|
|
|
|
text-decoration:none;
|
|
|
|
}
|
|
|
|
|
2018-10-13 17:35:10 +02:00
|
|
|
p {
|
|
|
|
@include paragraph();
|
2018-10-13 17:36:15 +02:00
|
|
|
&:last-child {
|
2019-11-04 15:47:24 +01:00
|
|
|
margin-bottom:0;
|
2018-10-13 17:36:15 +02:00
|
|
|
}
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
@include paragraph();
|
|
|
|
ul {
|
2019-11-04 15:47:24 +01:00
|
|
|
margin-bottom:0;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
li {
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-left: $lineheight;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-13 17:46:57 +02:00
|
|
|
ol {
|
|
|
|
@include paragraph();
|
|
|
|
ol {
|
2019-11-04 15:47:24 +01:00
|
|
|
margin-bottom:0;
|
2018-10-13 17:46:57 +02:00
|
|
|
}
|
|
|
|
li {
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-left: $lineheight;
|
2018-10-13 17:46:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-10-13 16:49:21 +02:00
|
|
|
::selection { background: #2484c1; color: #fff; }
|
|
|
|
::-moz-selection { background: #2484c1; color: #fff; }
|
|
|
|
|
|
|
|
/* ------------------ WRAPPERS ------------------- */
|
|
|
|
|
|
|
|
.text-wrapper {
|
2019-11-04 16:02:16 +01:00
|
|
|
width:$baseheight*40;
|
2018-10-13 16:49:21 +02:00
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ TITLES ------------------- */
|
|
|
|
|
2019-11-04 15:57:00 +01:00
|
|
|
@mixin title($size, $weight) {
|
|
|
|
$height: ceil($size / $baseline) * $baseline;
|
|
|
|
font-size: $size * 1rem;
|
|
|
|
line-height: $height * 1rem;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 17:13:38 +02:00
|
|
|
font-weight: $weight;
|
|
|
|
}
|
|
|
|
|
2018-10-13 16:49:21 +02:00
|
|
|
h1, h2, h3, h4, h5, h6, h7 {
|
2018-10-13 16:56:11 +02:00
|
|
|
text-align: left;
|
2019-11-07 12:22:09 +01:00
|
|
|
font-size: $baseheight;
|
|
|
|
line-height: $lineheight;
|
2018-10-13 16:54:38 +02:00
|
|
|
padding:0;
|
|
|
|
margin:0;
|
2018-10-13 16:49:21 +02:00
|
|
|
font-weight:400;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(2.3333333, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(2, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(1.5, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(1.5, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(1.333333, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
2019-11-04 15:57:00 +01:00
|
|
|
@include title(1.1, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ 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;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ QUOTE ------------------- */
|
|
|
|
|
2018-10-13 17:05:57 +02:00
|
|
|
@mixin well() {
|
2018-10-13 17:37:46 +02:00
|
|
|
border-width: 0 0 0 0.2em;
|
2018-10-13 16:49:21 +02:00
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px;
|
2019-11-04 15:47:24 +01:00
|
|
|
margin:0;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
|
|
|
padding: $lineheight/2;
|
2018-10-13 17:05:57 +02:00
|
|
|
|
|
|
|
max-width: 100%;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2018-10-13 17:05:57 +02:00
|
|
|
blockquote {
|
|
|
|
@include well();
|
|
|
|
border-color: rgba(1, 1, 1, 0.15);
|
|
|
|
|
|
|
|
.night-mode & {
|
|
|
|
border-color: rgba(255, 255, 255, 0.15)
|
|
|
|
}
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
2018-10-13 17:05:57 +02:00
|
|
|
@include well();
|
2018-10-13 16:49:21 +02:00
|
|
|
border-color: rgba(1,1,1,0.20);
|
|
|
|
background-color:#EEE;
|
2018-10-13 17:05:57 +02:00
|
|
|
|
|
|
|
.night-mode & {
|
|
|
|
background-color:#222;
|
|
|
|
border-color:rgba(255,255,255,0.20);
|
|
|
|
}
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2018-10-13 17:05:57 +02:00
|
|
|
|
2018-10-13 16:49:21 +02:00
|
|
|
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
|
|
|
|
mark {
|
|
|
|
border-radius: 0.2em;
|
2019-11-07 12:22:09 +01:00
|
|
|
padding:0 $lineheight/4 0 $lineheight/4;
|
2018-10-13 16:49:21 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|