kocandaci/sass/style.scss

163 lines
2.5 KiB
SCSS
Raw Normal View History

2024-01-09 22:57:56 +01:00
@import "fonts";
* {
box-sizing: border-box;
}
html, body, h1, h2, h3, p, ul, li {
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
font-size: 16px;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: stretch;
&>* {
width: 100%;
}
2024-01-10 11:48:46 +01:00
@media (prefers-color-scheme: dark) {
color: #ddd;
background-color: #222;
}
2024-01-09 22:57:56 +01:00
}
.wrap {
width: 100%;
max-width: 50em;
margin-left: auto;
margin-right: auto;
}
nav {
display: flex;
align-items: center;
border-bottom: 8px solid;
border-image: linear-gradient(to right, #BF616A 20%, #D08770 20%, #D08770 40%, #EBCB8B 40%, #EBCB8B 60%, #A3BE8C 60%, #A3BE8C 80%, #B48EAD 80%) 5;
.wrap {
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: baseline;
2024-01-10 01:12:27 +01:00
padding: 2.5em 1em 1em 1em;
2024-01-09 22:57:56 +01:00
2024-01-09 23:02:32 +01:00
.logo {
2024-01-10 01:12:27 +01:00
height: 4em;
display: block;
2024-01-10 11:48:46 +01:00
@media (prefers-color-scheme: dark) {
filter: contrast(80%) saturate(80%) brightness(180%);
}
2024-01-09 23:02:32 +01:00
}
2024-01-09 22:57:56 +01:00
ul {
list-style: none;
display: flex;
2024-01-09 23:02:32 +01:00
a {
display: block;
padding: 1em;
color: inherit;
2024-01-10 01:12:27 +01:00
font-weight: bold;
2024-01-09 22:57:56 +01:00
2024-01-09 23:02:32 +01:00
&:hover {
text-decoration: underline;
}
2024-01-09 22:57:56 +01:00
}
}
}
}
a {
text-decoration: none;
2024-01-10 10:52:44 +01:00
color: #353;
&:hover {
text-decoration: underline;
}
&[rel~="noreferrer"]::after, &.external::after {
content: "\ecaf";
font-family: remixicon;
font-size: .8em;
font-weight: normal;
margin-left: .2em;
}
2024-01-09 22:57:56 +01:00
}
img {
max-width: 100%;
height: auto;
}
header {
2024-01-10 11:48:46 +01:00
position: relative;
2024-01-09 22:57:56 +01:00
min-height: 35em;
color: #fff;
2024-01-10 12:36:53 +01:00
overflow: hidden;
2024-01-09 22:57:56 +01:00
.wrap {
padding: 5em 1em;
}
h1 {
font-size: 2.5em;
margin-bottom: 1.5em;
}
2024-01-10 11:48:46 +01:00
&::before {
content: "";
position: absolute;
2024-01-10 12:36:53 +01:00
z-index: -2;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('img/panorama.jpg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
filter: blur(4px);
transform: scale(1.1); // Fix borders created by the blur
}
&::after {
content: "";
position: absolute;
z-index: -1;
2024-01-10 11:48:46 +01:00
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('img/forest.svg');
background-size: contain;
background-position: center bottom -4px; // -4px fixes a visible line on some resolutions
background-repeat: no-repeat;
@media (prefers-color-scheme: dark) {
filter: invert(100%) contrast(73%);
}
}
2024-01-09 22:57:56 +01:00
}
section {
padding: 3em 1em;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1em;
margin-top: auto;
}