219 lines
3.4 KiB
CSS
219 lines
3.4 KiB
CSS
:root {
|
|
--text: black;
|
|
--accent: #ff1b8d;
|
|
--accent2: #FA7DBC;
|
|
--background: #fba0e3;
|
|
--background-body: #ffcff1;
|
|
--rounding: 8em;
|
|
--transitiondur: 0.3s;
|
|
}
|
|
|
|
* {
|
|
transition-duration: var(--transitiondur);
|
|
}
|
|
|
|
body {
|
|
padding: 0px;
|
|
margin: auto;
|
|
height: 100vh;
|
|
background-color: var(--background-body);
|
|
font-family: ComicShannsMono Nerd Font, Chalkboard, Comic Sans MS, sans-serif;
|
|
}
|
|
|
|
/*
|
|
* basic elements
|
|
*/
|
|
|
|
a {
|
|
color: var(--accent);
|
|
transition-duration: var(--transitiondur);
|
|
}
|
|
|
|
a:hover {
|
|
border-radius: var(--rounding);
|
|
background-color: var(--text);
|
|
rotate: -2deg;
|
|
scale: 125%;
|
|
transform: translateY(-10px);
|
|
|
|
padding: 10px;
|
|
margin: -10px;
|
|
display: inline-block;
|
|
}
|
|
|
|
/*
|
|
* header
|
|
*/
|
|
|
|
header {
|
|
background-image: url("/img/astolfos/header.gif");
|
|
background-position: 100% 100%;
|
|
background-size: 100% 100%;
|
|
border-radius: var(--rounding);
|
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
|
|
|
|
width: 60em;
|
|
height: 30em;
|
|
margin: auto;
|
|
margin-top: 2em;
|
|
animation: spinin 1s;
|
|
}
|
|
|
|
header:hover {
|
|
transition-duration: 3s;
|
|
scale: 125%;
|
|
transform: translateY(10%);
|
|
filter: hue-rotate(360deg);
|
|
}
|
|
|
|
header h1 {
|
|
border-radius: var(--rounding);
|
|
background-color: var(--accent2);
|
|
|
|
position: relative;
|
|
top: 3em;
|
|
margin: auto;
|
|
font-size: 8em;
|
|
height: fit-content;
|
|
width: fit-content;
|
|
box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
|
|
}
|
|
|
|
#wave-text * {
|
|
animation: wave 3s infinite;
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
header a{
|
|
padding: 0.3em;
|
|
display: inline-block;
|
|
border-radius: var(--rounding);
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
}
|
|
|
|
header a:hover {
|
|
background-color: var(--accent2);
|
|
scale: 200%;
|
|
transform: translateY(-5px) rotate(-7deg);
|
|
margin-left: 2em;
|
|
margin-right: 2em;
|
|
}
|
|
|
|
@keyframes wave {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
25% {
|
|
scale: 120%;
|
|
}
|
|
50% {
|
|
transform: translateY(-50px);
|
|
}
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
|
|
@keyframes spinin {
|
|
0% {
|
|
transform: translateY(-100vh);
|
|
rotate: 360deg;
|
|
scale: 300%;
|
|
}
|
|
100% {
|
|
transform: translateY(0px);
|
|
rotate: 0deg;
|
|
scale: 100%;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* nav/sidebar
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
* footer
|
|
*/
|
|
|
|
footer {
|
|
color: var(--text);
|
|
background-color: var(--background);
|
|
display: flex;
|
|
|
|
margin: 0px;
|
|
padding: 30px;
|
|
border-top-right-radius: var(--rounding);
|
|
border-top-left-radius: var(--rounding);
|
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
|
|
|
|
background-image: url("/img/astolfos/footer.webp");
|
|
background-position: 100% 100%;
|
|
background-size: 10em;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
footer p,hr,div {
|
|
padding-left: 30px;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translateY(0px);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
/*
|
|
* blog
|
|
*/
|
|
|
|
.blog-content {
|
|
margin: auto;
|
|
width: 50em;
|
|
}
|
|
|
|
.blog-content h1 {
|
|
font-family: Serif;
|
|
font-size: 3rem;
|
|
}
|
|
|
|
/*
|
|
* responsive webpage
|
|
*/
|
|
.horizontal-flex {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
header {
|
|
margin: none;
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 0px;
|
|
margin-top: 0px;
|
|
}
|
|
|
|
header h1 {
|
|
top: 0.3em;
|
|
}
|
|
|
|
.horizontal-flex {
|
|
flex-direction: column;
|
|
}
|
|
|
|
footer marquee {
|
|
width: auto !important;
|
|
}
|
|
|
|
.blog-content {
|
|
width: 90vw !important;
|
|
}
|
|
}
|
|
|