personal-website/assets/scss/style.scss

314 lines
4.4 KiB
SCSS
Raw Normal View History

2023-09-01 11:02:21 +02:00
$body-font-color: #ffffff;
/* old: #d3d3d3 */
2023-08-31 08:42:15 +02:00
$background-color: #212121;
$link-font-color: #1492FF;
$heading-font-color: #FF85B8;
$code-font-color: #a4c0f4;
2023-08-08 09:03:06 +02:00
$special-font-color: #c2f486;
2023-08-09 09:41:34 +02:00
$main-font-family: 'Open Sans', sans-serif;
2023-09-01 11:02:21 +02:00
$heading-font-family: 'Kreon', 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
2023-09-01 11:02:21 +02:00
@font-face {
font-display: swap;
font-family: 'Kreon';
font-style: normal;
font-weight: 400;
src: url('/fonts/kreon-v37-latin-regular.woff2') format('woff2');
}
2023-08-30 15:41:50 +02:00
2023-08-31 08:42:15 +02:00
a {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
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;
vertical-align: baseline;
font-family: $main-font-family;
2023-08-30 15:41:50 +02:00
font-size: 1.4em;
2023-08-08 09:03:06 +02:00
line-height: 1.4;
2023-08-08 16:04:32 +02:00
margin: 1em auto;
max-width: 45em;
2023-08-31 08:42:15 +02:00
background: $background-color;
2023-08-08 09:03:06 +02:00
color: $body-font-color;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content h1 {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
2023-09-01 11:02:21 +02:00
font-family: $heading-font-family;
2023-08-30 15:41:50 +02:00
font-size: 1.5em;
2023-08-08 09:03:06 +02:00
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-30 15:41:50 +02:00
content h2 {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
2023-09-01 11:02:21 +02:00
font-size: 1.3em;
font-family: $heading-font-family;
2023-08-08 09:03:06 +02:00
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-30 15:41:50 +02:00
content h3 {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
2023-09-01 11:02:21 +02:00
font-family: $heading-font-family;
2023-08-08 09:03:06 +02:00
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
}
2023-08-09 09:01:45 +02:00
2023-08-08 09:03:06 +02:00
html {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content {
li {
margin: 0;
padding: 0;
border: 0;
padding-left: 10px;
vertical-align: baseline;
}
2023-08-31 08:42:15 +02:00
em {
font-style: italic;
color: #c2f486;
}
2023-08-08 09:03:06 +02:00
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content p {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
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-30 15:41:50 +02:00
content span {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content strong {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
font-weight: 700;
color: $heading-font-color;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content u {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content ul {
2023-08-08 09:03:06 +02:00
margin: 0;
padding: 0;
border: 0;
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-30 15:41:50 +02:00
content code {
2023-08-08 09:03:06 +02:00
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
2023-08-09 09:01:45 +02:00
2023-08-30 15:41:50 +02:00
content .special {
2023-08-08 09:03:06 +02:00
color: $special-font-color;
font-style: normal;
}
2023-08-09 07:57:05 +02:00
2023-09-01 11:02:21 +02:00
content pre>code {
font-family: monospace;
}
2023-08-30 15:41:50 +02:00
a.disabled {
pointer-events: none;
text-decoration: none;
color: #d66388;
padding-left: 15px;
:hover {
text-decoration: none;
}
}
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-30 15:41:50 +02:00
content a {
2023-08-09 09:01:45 +02:00
line-break: loose;
}
2023-08-30 15:41:50 +02:00
content code {
2023-08-09 07:57:05 +02:00
line-break: anywhere;
2023-09-01 11:02:21 +02:00
overflow-wrap: anywhere;
word-wrap: break-word;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
2023-08-09 07:57:05 +02:00
}
2023-08-30 15:41:50 +02:00
nav {
2023-09-01 11:02:21 +02:00
font-family: $heading-font-family;
padding-bottom: 5px !important;
2023-08-30 15:41:50 +02:00
.hero-text {
text-align: center !important;
font-weight: bold;
}
.float-right,
.float-left {
float: none !important;
2023-09-01 11:02:21 +02:00
margin: 0 !important;
2023-08-30 15:41:50 +02:00
a {
text-align: center;
margin: 0;
}
}
a {
float: none;
display: block;
text-align: left;
.nav-right {
float: none;
}
}
}
}
nav {
font-size: 1.2em;
overflow: hidden;
border-bottom: 1px solid $body-font-color;
margin-bottom: 30px;
2023-09-01 11:02:21 +02:00
padding: 0 10px;
font-family: $heading-font-family;
2023-08-30 15:41:50 +02:00
div {
margin-left: 15px;
}
a {
padding: 0;
border: 0;
}
.nav-link {
padding-left: 15px;
text-decoration: none;
color: $link-font-color;
&:hover {
text-decoration: underline;
}
}
.float-right {
float: right;
2023-09-01 11:02:21 +02:00
margin-top: 16px;
2023-08-30 15:41:50 +02:00
}
.float-left {
float: left;
}
.hero-text {
font-size: 1.5em;
margin: 0;
padding: 0;
text-decoration: none;
a {
color: $special-font-color;
font-weight: 800;
padding-left: 0;
}
}
2023-08-31 08:42:15 +02:00
}
footer {
overflow: hidden;
2023-09-01 11:02:21 +02:00
>div {
2023-08-31 08:42:15 +02:00
float: left;
}
2023-09-01 11:02:21 +02:00
}
.section-page-item {
>time {
color: gray;
font-size: 90%;
}
2023-08-09 07:57:05 +02:00
}