personal-website/assets/scss/style.scss
lauralani 2e1c8b43cc
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful
add margin bottom for img
2023-09-14 16:51:17 +02:00

306 lines
No EOL
4.2 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');
}
.float-left {
float: left;
}
a {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
text-decoration: none;
color: $link-font-color;
&:hover {
text-decoration: underline;
}
}
body {
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,
h2,
h3 {
padding: 0;
border: 0;
font-family: $heading-font-family;
font-weight: 400;
vertical-align: baseline;
line-height: 100%;
color: $heading-font-color;
}
h1 {
font-size: 1.6em;
margin: 2rem 0 1rem;
}
h2 {
font-size: 1.4em;
margin: 2rem 0 1rem;
}
h3 {
font-size: 1.2em;
margin: 2rem 0 0.2em;
}
html {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
li {
margin: 0;
padding: 0;
border: 0;
padding-left: 10px;
vertical-align: baseline;
}
em {
font-style: italic;
color: #c2f486;
}
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;
}
}
span {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
strong {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
font-weight: 700;
color: $heading-font-color;
}
u {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
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;
}
}
}
code {
font: unset;
font-family: $main-font-family;
color: $code-font-color;
}
.special {
color: $special-font-color;
font-style: normal;
}
pre>code {
font-family: monospace;
}
img {
max-height: 10em;
border-radius: 25%;
float: right;
margin-left: 1em;
margin-bottom: 1em;
}
}
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;
}
nav {
font-family: $heading-font-family;
padding-bottom: 5px !important;
.hero-text {
text-align: center !important;
}
.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 1.5px;
}
}
.float-right {
float: right;
margin-top: 16px;
}
.hero-text {
font-size: 1.5em;
margin: 0;
padding: 0;
text-decoration: none;
a {
color: $special-font-color;
padding-left: 0;
}
}
}
footer {
overflow: hidden;
}
.section-page-item {
>.details {
color: gray;
font-size: 90%;
overflow: hidden;
>div {
white-space: pre;
}
}
}