website/themes/cozy-hugo/assets/css/main.scss

213 lines
5 KiB
SCSS
Raw Normal View History

2022-11-24 11:00:36 +01:00
:root {
--background: rgb(255, 255, 230);
--background-header: rgb(250, 220, 120);
--background-nav: rgb(252.5, 237.5, 175);
--text: rgb(50, 50, 50);
--sphere: rgb(245, 180, 100);
--hill: rgb(50, 235, 150);
--hillshade: rgb(40, 160, 100);
--image-decorative-blend: initial;
2023-01-07 14:06:55 +01:00
@media (prefers-color-scheme: dark) {
--background: rgb(0, 45, 60);
--background-header: rgb(0, 70, 100);
--background-nav: rgb(0, 62.5, 80);
--text: rgb(255, 255, 255);
--sphere: rgb(105, 210, 255);
--hill: rgb(0, 95, 135);
--hillshade: rgb(0, 45, 60);
--image-decorative-blend: luminosity;
2022-11-24 11:00:36 +01:00
}
2023-01-07 14:06:55 +01:00
}
* {
2022-11-24 11:00:36 +01:00
box-sizing: border-box;
scrollbar-color: var(--sphere) var(--background-header);
2023-01-07 14:06:55 +01:00
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
html {
2022-11-24 11:00:36 +01:00
scroll-behavior: smooth;
2023-01-07 14:06:55 +01:00
body {
background-color: var(--background);
color: var(--text);
2023-07-29 20:59:27 +02:00
display: flex;
2023-01-07 14:06:55 +01:00
font-family: 'Lucida Console', 'Courier New', monospace;
2023-07-29 20:59:27 +02:00
flex-direction: column;
2023-01-07 14:06:55 +01:00
hyphens: auto;
line-height: 1.8;
margin: 0;
2023-07-29 20:59:27 +02:00
align-items: center;
2023-01-07 14:06:55 +01:00
}
a {
color: var(--text);
text-underline-offset: 3px;
transition: text-decoration-color .15s ease;
&:hover {
text-decoration-color: var(--sphere);
}
}
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
header {
2022-11-24 11:00:36 +01:00
background-blend-mode: var(--image-decorative-blend);
background-color: var(--background-header);
background-image: url(home-header-optimized.svg);
background-position: center;
background-size: cover;
2022-11-24 11:00:36 +01:00
color: var(--text);
display: flex;
flex-direction: column;
height: 40vh;
justify-content: center;
overflow: hidden;
position: relative;
text-align: center;
2023-07-29 20:59:27 +02:00
width: 100%;
2023-01-07 14:06:55 +01:00
h1 {
font-size: 3.6em;
line-height: .9em;
margin: 0;
z-index: 10;
}
p {
margin: 0;
z-index: 10;
}
#sphere {
background: var(--sphere);
border-radius: 100%;
display: none;
height: 10vh;
left: 30vw;
position: absolute;
top: 3vh;
width: 10vh;
}
#hill {
background: var(--hill);
border-radius: 40px;
bottom: 0;
display: none;
height: 40vh;
left: 50vw;
position: absolute;
transform: rotate(45deg) translate(50%, 50%);
width: 40vh;
}
#hillshade {
background: var(--hillshade);
border-radius: 80px;
bottom: -5vh;
display: none;
height: 40vh;
left: 30vw;
position: absolute;
transform: rotate(45deg) translate(50%, 50%);
width: 40vh;
}
#header-background {
height: 100%;
position: absolute;
align-self: center;
}
}
#main-nav {
2022-11-24 11:00:36 +01:00
align-items: center;
background: var(--background-nav);
border-radius: 10px;
display: flex;
gap: 20px;
height: 60px;
justify-content: center;
2023-01-07 14:06:55 +01:00
margin: 0px auto;
2022-11-24 11:00:36 +01:00
position: relative;
top: -30px;
2023-01-07 14:06:55 +01:00
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
.width-1200 {
2022-11-24 11:00:36 +01:00
max-width: 1200px;
2023-07-29 20:59:27 +02:00
width: calc(100% - 4rem);
2023-01-07 14:06:55 +01:00
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
main {
section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
grid-gap: 20px;
}
article {
background: var(--background-header);
border-radius: 10px;
box-shadow: rgba(0, 0, 0, 0.1) 10px 10px 0px 0px;
display: flex;
flex-direction: column;
padding: 40px;
transition: box-shadow .3s ease, transform .3s ease;
&:hover {
box-shadow: rgba(0, 0, 0, 0.1) 10px 15px 0px 0px;
transform: translate(0, -5px);
}
a {
background: var(--background);
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 0px 0px;
color: var(--text);
display: inline-block;
font-weight: bold;
padding: 10px 14px;
text-decoration: none;
transition: box-shadow .15s ease, transform .15s ease;
&:hover {
box-shadow: rgba(0, 0, 0, 0.1) 2.5px 2.5px 0px 0px;
transform: translate(2.5px, 2.5px);
}
&:active {
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 0px;
transform: translate(5px, 5px);
}
}
h2 {
font-size: 1.8em;
line-height: normal;
margin: 0;
}
p {
margin: 20px 0;
}
nav {
display: flex;
flex-wrap: wrap;
gap: 10px;
hyphens: none;
margin-top: auto;
}
}
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
footer {
margin-top: 80px !important;
2022-11-24 11:00:36 +01:00
text-align: center;
2023-01-07 14:06:55 +01:00
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
/*footer p, footer a {
text-align: center;
color: rgb(80, 150, 190);
}*/
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
@media (max-width: 1000px) {
2022-11-24 11:00:36 +01:00
header hill {
2023-01-07 14:06:55 +01:00
transform: rotate(45deg) translate(40%, 70%);
2022-11-24 11:00:36 +01:00
}
header hillshade {
2023-01-07 14:06:55 +01:00
transform: rotate(45deg) translate(20%, 80%);
2022-11-24 11:00:36 +01:00
}
2023-01-07 14:06:55 +01:00
}
2022-11-24 11:00:36 +01:00
2023-01-07 14:06:55 +01:00
@media (prefers-color-scheme: dark) {
2022-11-24 11:00:36 +01:00
header #sphere {
2023-01-07 14:06:55 +01:00
left: unset;
right: 30vw;
2022-11-24 11:00:36 +01:00
}
2023-01-07 14:06:55 +01:00
}