kocandaci/sass/style.scss

257 lines
4.3 KiB
SCSS
Raw Normal View History

2024-01-11 18:18:53 +01:00
@import "variables";
2024-01-09 22:57:56 +01:00
@import "fonts";
2024-01-11 18:10:51 +01:00
@import "grid";
@import "personnel";
2024-01-12 16:31:33 +01:00
@import "gallery";
2024-01-09 22:57:56 +01:00
* {
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;
2024-01-11 21:50:40 +01:00
color: $col-fg-0-light;
background-color: $col-bg-0-light;
2024-01-09 22:57:56 +01:00
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: stretch;
&>* {
width: 100%;
}
2024-01-10 11:48:46 +01:00
2024-01-12 00:49:13 +01:00
&.mobile-nav-open {
overflow: hidden;
}
2024-01-10 11:48:46 +01:00
@media (prefers-color-scheme: dark) {
2024-01-11 21:50:40 +01:00
color: $col-fg-0-dark;
background-color: $col-bg-0-dark;
2024-01-10 11:48:46 +01:00
}
2024-01-09 22:57:56 +01:00
}
.wrap {
width: 100%;
2024-01-11 18:10:51 +01:00
max-width: 80em;
2024-01-09 22:57:56 +01:00
margin-left: auto;
margin-right: auto;
}
2024-01-11 22:08:33 +01:00
.narrow {
max-width: 40em;
}
.centering {
text-align: center;
}
2024-01-09 22:57:56 +01:00
nav {
2024-01-12 00:49:13 +01:00
position: relative;
2024-01-09 22:57:56 +01:00
display: flex;
align-items: center;
border-bottom: 8px solid;
2024-01-11 21:50:40 +01:00
border-image: linear-gradient(to right, $col-red-light 20%, $col-orange-light 20%, $col-orange-light 40%, $col-yellow-light 40%, $col-yellow-light 60%, $col-green-light 60%, $col-green-light 80%, $col-purple-light 80%) 5;
2024-01-09 22:57:56 +01:00
.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
}
}
2024-01-12 00:49:13 +01:00
#mobile-nav-button {
display: none;
width: auto;
font-size: 2em;
font-family: remixicon;
cursor: pointer;
&::after { content: "\ef3e" }
body.mobile-nav-open &::after { content: "\eb99" }
}
@media only screen and (max-width: $width-mobile) {
padding: 1em 2em;
align-items: center;
.logo { height: 2em }
ul { display: none }
#mobile-nav-button { display: block }
}
}
.mobile-nav {
display: none;
position: absolute;
left: 0;
top: 100%;
width: 100%;
height: 100vh;
z-index: 99;
background-color: $col-bg-0-light;
overflow: hidden;
transform: translateY(7px); // Width of nav border
body.mobile-nav-open & {
display: block;
}
ul {
list-style: none;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2em;
padding: 2em 1em;
a {
color: inherit;
font-weight: bold;
font-size: 1.5em;
padding: 1rem;
}
}
// Hide the mobile nav when open and screen is resized to wide mode
@media only screen and (min-width: $width-mobile) {
body.mobile-nav-open & { display: none }
}
2024-01-09 22:57:56 +01:00
}
2024-01-11 21:50:40 +01:00
@media (prefers-color-scheme: dark) {
2024-01-12 00:49:13 +01:00
&, .mobile-nav {
background-color: $col-bg-0-dark;
color: $col-fg-1-dark;
}
2024-01-11 21:50:40 +01:00
}
2024-01-09 22:57:56 +01:00
}
a {
text-decoration: none;
2024-01-11 21:50:40 +01:00
color: $col-red-light;
2024-01-10 10:52:44 +01:00
&: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;
2024-01-11 21:50:40 +01:00
color: $col-bg-0-light;
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;
2024-01-11 21:50:40 +01:00
filter: invert(0%) contrast(94.5%);
2024-01-10 11:48:46 +01:00
@media (prefers-color-scheme: dark) {
2024-01-11 21:50:40 +01:00
filter: invert(100%) contrast(81%);
2024-01-10 11:48:46 +01:00
}
}
2024-01-09 22:57:56 +01:00
}
section {
padding: 3em 1em;
2024-01-11 22:08:33 +01:00
h1 {
font-size: 2em;
margin: .5em 0 1em 0;
&::before {
display: block;
content: "\ea81";
font-family: remixicon;
color: $col-red-light;
}
}
2024-01-09 22:57:56 +01:00
}
footer {
text-align: center;
2024-01-11 18:23:01 +01:00
padding: 5em 1em 1em 1em;
2024-01-09 22:57:56 +01:00
margin-top: auto;
}