Use SCSS for stylesheets
This commit is contained in:
parent
3870510776
commit
1ee85ebf0d
145
style.css
145
style.css
|
@ -1,145 +0,0 @@
|
|||
html {
|
||||
-webkit-print-color-adjust: exact;
|
||||
-webkit-filter: opacity(1);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Montserrat", sans-serif;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 30px 60px 30px 60px;
|
||||
max-width: 800px;
|
||||
}
|
||||
.container .row {
|
||||
justify-content: center !important;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: "Source Code Pro", monospace;
|
||||
}
|
||||
|
||||
div.title {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
|
||||
background-color: #001f6e;
|
||||
color: #ffffff;
|
||||
border-bottom: 5px solid #0086ed;
|
||||
font-family: "Source Code Pro", monospace;
|
||||
padding: 10px 20px 10px 20px;
|
||||
width: initial !important;
|
||||
}
|
||||
div.title h1 {
|
||||
margin: 0;
|
||||
}
|
||||
div.title a {
|
||||
color: #ffffff !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
nav li {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
|
||||
background-color: #034a9c;
|
||||
color: #ffffff;
|
||||
border-bottom: 5px solid #0086ed;
|
||||
font-family: "Source Code Pro", monospace;
|
||||
padding: 10px;
|
||||
margin: 0px 5px 0px 5px;
|
||||
width: 130px !important;
|
||||
}
|
||||
nav li:hover {
|
||||
background-color: #001f6e;
|
||||
transition: background-color 0.2s linear;
|
||||
}
|
||||
nav li h1 {
|
||||
margin: 0;
|
||||
}
|
||||
nav li a {
|
||||
color: #ffffff !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
main h1 {
|
||||
border-left: 5px solid #0086ed;
|
||||
}
|
||||
main h2 {
|
||||
border-left: 3px solid #0086ed;
|
||||
}
|
||||
|
||||
footer p {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.sidecolor1 {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 15px;
|
||||
height: 100%;
|
||||
background-color: #001f6e;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.sidecolor1 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.sidecolor1 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.sidecolor2 {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 15px;
|
||||
width: 15px;
|
||||
height: 100%;
|
||||
background-color: #034a9c;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.sidecolor2 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.sidecolor2 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.sidecolor3 {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 30px;
|
||||
width: 15px;
|
||||
height: 100%;
|
||||
background-color: #0086ed;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.sidecolor3 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.sidecolor3 {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* vim: ts=2:sts=2:sw=2:et
|
||||
*/
|
||||
|
||||
/*# sourceMappingURL=style.css.map */
|
|
@ -0,0 +1,135 @@
|
|||
@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;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 30px 60px 30px 60px;
|
||||
max-width: 800px;
|
||||
|
||||
.row {
|
||||
justify-content: center !important;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
*/
|
Loading…
Reference in New Issue