personal-website/assets/scss/style.scss

212 lines
2.9 KiB
SCSS
Raw Normal View History

2023-08-08 09:03:06 +02:00
$body-font-color: #c1c1c1;
$link-font-color: #00cccc;
$heading-font-color: #d66388;
$code-font-color: cornflowerblue;
$special-font-color: #c2f486;
2023-08-09 09:41:34 +02:00
$main-font-family: 'Open Sans', sans-serif;
2023-08-09 07:57:05 +02:00
$min-device-width: 940px;
2023-08-09 09:41:34 +02:00
@font-face {
font-display: swap;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url('/fonts/open-sans-v35-latin-regular.woff2') format('woff2');
}
2023-08-08 09:03:06 +02:00
a {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
text-decoration: none;
color: $link-font-color;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:hover {
text-decoration: underline;
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
body {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
font-family: $main-font-family;
font-size: 130%;
line-height: 1.4;
2023-08-08 16:04:32 +02:00
margin: 1em auto;
max-width: 45em;
2023-08-08 09:03:06 +02:00
background: #303030;
color: $body-font-color;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
h1 {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:before {
content: "# ";
2023-08-09 09:01:45 +02:00
content: "# " / "";
2023-08-08 09:03:06 +02:00
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:after {
content: "-----";
content: "-----" / "";
display: block;
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
h2 {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:before {
content: "## ";
2023-08-09 09:01:45 +02:00
content: "## " / "";
2023-08-08 09:03:06 +02:00
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
h3 {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:before {
content: "### ";
2023-08-09 09:01:45 +02:00
content: "### " / "";
2023-08-08 09:03:06 +02:00
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
html {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
li {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
p {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
margin-bottom: .75rem;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
>code {
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
span {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
strong {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
font-weight: 700;
color: $heading-font-color;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:before {
content: "*";
content: "*" / "";
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
&:after {
content: "*";
content: "*" / "";
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
u {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
ul {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
list-style-type: none;
margin-left: 1rem;
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
>li {
&:before {
content: "-";
position: absolute;
margin-left: -1.1rem;
}
}
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
code {
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
.special {
color: $special-font-color;
font-style: normal;
}
2023-08-09 07:57:05 +02:00
@media (max-width: $min-device-width) {
body {
2023-08-09 09:01:45 +02:00
padding: 0 15px;
2023-08-09 07:57:05 +02:00
line-break: normal;
}
2023-08-09 09:01:45 +02:00
a {
line-break: loose;
}
code {
2023-08-09 07:57:05 +02:00
line-break: anywhere;
}
}