website/sass/style.scss
Filip Rojek c827757fb8
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 14s
Build Zola Website / build (pull_request) Successful in 21s
Added: burger menu for mobile views
2024-12-15 08:09:10 +01:00

119 lines
1.8 KiB
SCSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
font-family: 'Source Code Pro', monospace;
background: var(--background);
color: var(--color);
}
html {
overflow-y: scroll !important;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
scroll-behavior: smooth;
}
*::-webkit-scrollbar {
width: 5px;
}
*::-webkit-scrollbar-thumb {
background-color: #ffffff;
border-radius: 20px;
}
*::-webkit-scrollbar-track {
background: #000000;
}
nav {
position: relative;
display: flex;
padding: 1rem 2rem;
justify-content: space-between;
isolation: isolate;
.logo img {
height: 3rem;
}
.links {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
z-index: -1;
color: var(--color);
font-size: 1.3rem;
}
a {
color: var(--color);
}
}
a {
color: lightblue;
cursor: pointer;
text-decoration: underline;
}
a:hover { color: var(--a-hover); }
@media (min-width: 400px) {
nav .links {
position: absolute;
inset: 0;
}
}
footer {
display: flex;
width: 100vw;
flex-direction: column;
justify-content: center;
align-items: center;
align-self: flex-end;
margin-top: auto;
margin-bottom: 2rem;
}
.hamburger {
display: none;
}
@media only screen and (min-width: 0px) and (max-width: 1090px) {
header {
.hamburger {
display: block;
font-size: 3rem;
text-decoration: none;
cursor: pointer;
user-select: none;
z-index: 2000;
}
.logo {
z-index: 2000;
}
.hamburger:hover {
color: white;
}
.links {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
background: var(--c-gray);
flex-direction: column;
font-size: 2rem;
}
}
}