simoncor.net/themes/hugo-coder/assets/scss/_base.scss

294 lines
4.0 KiB
SCSS
Raw Permalink Normal View History

2020-07-16 22:43:30 +02:00
*,
*:after,
*:before {
2024-08-26 17:13:18 +02:00
box-sizing: inherit;
2020-07-16 22:43:30 +02:00
}
html {
2024-08-26 17:13:18 +02:00
box-sizing: border-box;
font-size: 62.5%;
2020-07-16 22:43:30 +02:00
}
body {
color: $fg-color;
background-color: $bg-color;
2024-08-26 17:13:18 +02:00
font-family: $font-family;
font-size: 1.8em;
font-weight: 400;
2020-07-16 22:43:30 +02:00
line-height: 1.8em;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 1.6em;
line-height: 1.6em;
}
}
2024-08-26 17:13:18 +02:00
iframe[src*=disqus] {
color-scheme: light;
}
2020-07-16 22:43:30 +02:00
a {
2024-08-26 17:13:18 +02:00
font-weight: 500;
2020-07-16 22:43:30 +02:00
color: $link-color;
text-decoration: none;
2024-08-26 17:13:18 +02:00
transition: all 0.25s ease-in;
2020-07-16 22:43:30 +02:00
&:focus,
&:hover {
text-decoration: underline;
}
}
p {
2024-08-26 17:13:18 +02:00
margin: 2rem 0 2rem 0;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
@media only screen and (max-width: 768px) {
margin: 1.5rem 0 1.5rem 0;
}
2020-07-16 22:43:30 +02:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2024-08-26 17:13:18 +02:00
font-family: $font-family;
font-weight: 600;
2020-07-16 22:43:30 +02:00
color: $alt-fg-color;
2024-08-26 17:13:18 +02:00
margin: 4rem 0 2.5rem 0;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
2020-07-16 22:43:30 +02:00
}
h1 {
font-size: 3.2rem;
line-height: 3.6rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
font-size: 3rem;
2020-07-16 22:43:30 +02:00
line-height: 3.4rem;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h2 {
font-size: 2.8rem;
line-height: 3.2rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 2.6rem;
2024-08-26 17:13:18 +02:00
line-height: 3rem;
2020-07-16 22:43:30 +02:00
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h3 {
font-size: 2.4rem;
line-height: 2.8rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 2.2rem;
line-height: 2.6rem;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h4 {
font-size: 2.2rem;
line-height: 2.6rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
font-size: 2rem;
2020-07-16 22:43:30 +02:00
line-height: 2.4rem;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h5 {
2024-08-26 17:13:18 +02:00
font-size: 2rem;
2020-07-16 22:43:30 +02:00
line-height: 2.4rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 1.8rem;
line-height: 2.2rem;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h6 {
font-size: 1.8rem;
line-height: 2.2rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 1.6rem;
2024-08-26 17:13:18 +02:00
line-height: 2rem;
2020-07-16 22:43:30 +02:00
}
}
2024-08-26 17:13:18 +02:00
b,
strong {
2020-07-16 22:43:30 +02:00
font-weight: 700;
}
2024-08-26 17:13:18 +02:00
.highlight {
div,
pre {
margin: 2rem 0 2rem;
padding: 1rem;
border-radius: 1rem;
overflow-x: auto;
}
2020-07-16 22:43:30 +02:00
}
pre {
display: block;
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
line-height: 2.6rem;
overflow-x: auto;
2024-08-26 17:13:18 +02:00
margin: 2rem 0 2rem;
padding: 1rem;
border-radius: 1rem;
2020-07-16 22:43:30 +02:00
code {
display: inline-block;
background-color: inherit;
color: inherit;
}
}
code {
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
2024-08-26 17:13:18 +02:00
border-radius: 0.6rem;
padding: 0.3rem 0.6rem;
background-color: $darker-alt-bg-color;
2020-07-16 22:43:30 +02:00
color: $fg-color;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
font-size: 1.5rem;
}
2020-07-16 22:43:30 +02:00
}
blockquote {
border-left: 2px solid $alt-bg-color;
2024-08-26 17:13:18 +02:00
padding-left: 2rem;
2020-07-16 22:43:30 +02:00
line-height: 2.2rem;
font-weight: 400;
font-style: italic;
}
2024-08-26 17:13:18 +02:00
th,
td {
2020-07-16 22:43:30 +02:00
padding: 1.6rem;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
table {
border-collapse: collapse;
}
2024-08-26 17:13:18 +02:00
table td,
table th {
2020-07-16 22:43:30 +02:00
border: 2px solid $alt-fg-color;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
table tr:first-child th {
border-top: 0;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
table tr:last-child td {
border-bottom: 0;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
img {
max-width: 100%;
}
figure {
text-align: center;
}
2024-08-26 17:13:18 +02:00
.footnotes {
ol li p {
margin: 0;
}
}
.preload-transitions * {
$null-transition: none !important;
-webkit-transition: $null-transition;
-moz-transition: $null-transition;
-ms-transition: $null-transition;
-o-transition: $null-transition;
transition: $null-transition;
}
2020-07-16 22:43:30 +02:00
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.container {
2024-08-26 17:13:18 +02:00
margin: 1rem auto;
max-width: 90rem;
2020-07-16 22:43:30 +02:00
width: 100%;
2024-08-26 17:13:18 +02:00
padding-left: 2rem;
padding-right: 2rem;
2020-07-16 22:43:30 +02:00
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 700;
}
.float-right {
float: right;
}
.float-left {
float: left;
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 900;
}