candifloss_site/scss/index.scss

93 lines
2.1 KiB
SCSS
Raw Normal View History

2024-12-11 11:11:06 +00:00
// Reset all default styles
* {
all: unset;
2024-12-10 22:03:11 +00:00
margin: 0;
padding: 0;
2024-12-11 11:11:06 +00:00
border: 0;
box-sizing: border-box;
}
// This is sometimes required on some browsers.
title, script {
display: none;
}
// Colors
$bg-color: linear-gradient(135deg, #1c1c2b, #30284d);
$text-color: #d4d4dc;
$link-bg-color: #2f2f3e;
$link-hover-color: #a498ce;
$link-hover-bg-color: #3d3d50;
$footer-bg-color: rgba(0, 0, 0, 0);
body {
2024-12-10 22:03:11 +00:00
font-family: Arial, sans-serif;
background: $bg-color;
color: $text-color;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
2024-12-11 11:11:06 +00:00
margin: 0;
font-family: "IosevkaTermSlab NerdFont Mono";
2024-12-10 22:03:11 +00:00
2024-12-11 11:11:06 +00:00
.container {
text-align: center;
2024-12-10 22:03:11 +00:00
2024-12-11 11:11:06 +00:00
h1 {
font-size: 7rem;
margin: 0;
padding: 0.5em;
transition: text-shadow 0.3s;
&:hover {
text-shadow: #a498ce 0px 0px 9px;
}
}
nav {
display: block;
padding: 0.2rem;
2024-12-10 22:03:11 +00:00
2024-12-11 11:11:06 +00:00
ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
gap: 1rem;
padding: 0.7rem;
li {
a {
text-decoration: none;
color: $text-color;
font-size: 1.5rem;
transition: color 0.3s;
background-color: $link-bg-color;
padding: 0.5rem 2rem;
&:hover {
color: $link-hover-color;
background-color: $link-hover-bg-color;
}
2024-12-10 22:03:11 +00:00
}
}
}
}
}
2024-12-11 11:11:06 +00:00
footer {
width: 100%;
text-align: center;
padding: 1rem;
background-color: $footer-bg-color;
color: $text-color;
font-size: 1rem;
position: fixed;
bottom: 0;
left: 0;
text-shadow: 0 0 3px #000;
}
2024-12-10 22:03:11 +00:00
}