163 lines
2.4 KiB
SCSS
163 lines
2.4 KiB
SCSS
@use "sass:list";
|
|
@use "sass:math";
|
|
|
|
$blue1: #001f6e;
|
|
$blue2: #034a9c;
|
|
$blue3: #0086ed;
|
|
$bg: $blue1;
|
|
$text: #ffffff;
|
|
$monospace: 'Source Code Pro', monospace;
|
|
|
|
html {
|
|
-webkit-print-color-adjust: exact;
|
|
-webkit-filter: opacity(1);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-size: 14pt;
|
|
|
|
@media (max-width: 768px) {
|
|
font-size: 12pt;
|
|
}
|
|
}
|
|
|
|
.container {
|
|
padding: 30px 60px 30px 60px;
|
|
max-width: 900px;
|
|
|
|
@media (max-width: 768px) {
|
|
padding: 20px 10px 20px 10px;
|
|
}
|
|
|
|
.row {
|
|
justify-content: center !important;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
pre {
|
|
font-family: $monospace;
|
|
}
|
|
|
|
code {
|
|
font-family: $monospace;
|
|
}
|
|
|
|
@mixin mybox($bg: $blue1, $border: $blue3, $hoverbg: null) {
|
|
display: flex;
|
|
justify-content: center;
|
|
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
|
|
background-color: $bg;
|
|
color: $text;
|
|
border-bottom: 5px solid $border;
|
|
font-family: $monospace;
|
|
|
|
@if $hoverbg {
|
|
&:hover {
|
|
background-color: $hoverbg;
|
|
transition: background-color 0.2s linear;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
}
|
|
|
|
a {
|
|
color: $text !important;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
div.title {
|
|
@include mybox($blue1, $blue3);
|
|
padding: 10px 20px 10px 20px;
|
|
width: initial !important;
|
|
}
|
|
|
|
nav {
|
|
ul {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
li {
|
|
@include mybox($blue2, $blue3, $blue1);
|
|
padding: 10px;
|
|
margin: 0px 5px 0px 5px;
|
|
width: 130px !important;
|
|
}
|
|
}
|
|
|
|
main {
|
|
%heading {
|
|
// font-family: $monospace;
|
|
|
|
// &:before {
|
|
// content: "> ";
|
|
// }
|
|
}
|
|
|
|
h1 {
|
|
@extend %heading;
|
|
border-left: 5px solid $blue3;
|
|
}
|
|
|
|
h2 {
|
|
@extend %heading;
|
|
border-left: 3px solid $blue3;
|
|
}
|
|
}
|
|
|
|
.post-entry {
|
|
.post-title {
|
|
font-size: 120%
|
|
}
|
|
|
|
.post-summary {
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
&.short-hr {
|
|
max-width: 10em;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
p {
|
|
display: block;
|
|
text-align: center;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
@mixin sidecolor($colors, $width) {
|
|
@for $i from 1 through list.length($colors) {
|
|
.sidecolor#{$i} {
|
|
position: fixed;
|
|
top: 0px;
|
|
left: ($i - 1) * $width;
|
|
width: $width;
|
|
height: 100%;
|
|
background-color: list.nth($colors, $i);
|
|
|
|
@media (max-width: 900px) {
|
|
visibility: hidden;
|
|
}
|
|
|
|
@media print {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include sidecolor([$blue1, $blue2, $blue3], 15px);
|
|
|
|
/*
|
|
* vim: ts=2:sts=2:sw=2:et
|
|
*/
|