personal-website/assets/scss/style.scss
lauralani b1cd2daa9f
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful
ci/woodpecker/pr/deploy-netlify Pipeline was successful
update headings
2023-09-01 11:18:52 +02:00

315 lines
No EOL
4.4 KiB
SCSS

$body-font-color: #ffffff;
/* old: #d3d3d3 */
$background-color: #212121;
$link-font-color: #1492FF;
$heading-font-color: #FF85B8;
$code-font-color: #a4c0f4;
$special-font-color: #c2f486;
$main-font-family: 'Open Sans', sans-serif;
$heading-font-family: 'Kreon', serif;
$min-device-width: 940px;
@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');
}
@font-face {
font-display: swap;
font-family: 'Kreon';
font-style: normal;
font-weight: 400;
src: url('/fonts/kreon-v37-latin-regular.woff2') format('woff2');
}
a {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
text-decoration: none;
color: $link-font-color;
&:hover {
text-decoration: underline;
}
}
body {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
font-family: $main-font-family;
font-size: 1.4em;
line-height: 1.4;
margin: 1em auto;
max-width: 45em;
background: $background-color;
color: $body-font-color;
}
content h1 {
margin: 0;
padding: 0;
border: 0;
font-family: $heading-font-family;
font-size: 1.6em;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
}
content h2 {
margin: 0;
padding: 0;
border: 0;
font-size: 1.4em;
font-family: $heading-font-family;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
}
content h3 {
margin: 0;
padding: 0;
border: 0;
font-family: $heading-font-family;
font-size: 1.2em;
vertical-align: baseline;
line-height: 100%;
margin-top: 2rem;
margin-bottom: 1rem;
color: $heading-font-color;
}
html {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
content {
li {
margin: 0;
padding: 0;
border: 0;
padding-left: 10px;
vertical-align: baseline;
}
em {
font-style: italic;
color: #c2f486;
}
}
content p {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
margin-bottom: .75rem;
>code {
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
}
content span {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
content strong {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
font-weight: 700;
color: $heading-font-color;
}
content u {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
content ul {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
list-style-type: none;
margin-left: 1rem;
>li {
&:before {
content: "-";
position: absolute;
margin-left: -1.1rem;
}
}
}
content code {
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
content .special {
color: $special-font-color;
font-style: normal;
}
content pre>code {
font-family: monospace;
}
a.disabled {
pointer-events: none;
text-decoration: none;
color: #d66388;
padding-left: 15px;
:hover {
text-decoration: none;
}
}
@media (max-width: $min-device-width) {
body {
padding: 0 15px;
line-break: normal;
}
content a {
line-break: loose;
}
content code {
line-break: anywhere;
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;
}
nav {
font-family: $heading-font-family;
padding-bottom: 5px !important;
.hero-text {
text-align: center !important;
font-weight: bold;
}
.float-right,
.float-left {
float: none !important;
margin: 0 !important;
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;
padding: 0 10px;
font-family: $heading-font-family;
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;
margin-top: 16px;
}
.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;
}
}
}
footer {
overflow: hidden;
>div {
float: left;
}
}
.section-page-item {
>time {
color: gray;
font-size: 90%;
}
}