astolfo.org/bundle.css

346 lines
5.2 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;
background-image: url("/img/background.jpg");
background-position: 100% 100%;
background-size: cover;
background-repeat: repeat;
backdrop-filter: blur(5px);
}
a {
padding: 0.3em;
display: inline-block;
border-radius: var(--rounding);
text-decoration: none;
color: var(--text);
}
a:hover {
background-color: var(--accent2);
transform: translateY(-5px) rotate(-7deg) scale(200%);
margin-left: 2em;
margin-right: 2em;
}
/*
* 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 {
width: auto;
height: 30svh;
margin: auto;
animation: spinin 1s;
border-bottom-left-radius: var(--rounding);
border-bottom-right-radius: var(--rounding);
marquee {
color: var(--text);
background-color: var(--accent2);
}
h1 {
text-orientation: mixed;
writing-mode: vertical-lr;
margin-left: 0px;
margin-right: 0px;
color: var(--background-body);
background-color: var(--accent2);
-webkit-text-stroke: 2px var(--text);
}
.flex {
margin-left: 0px;
padding-left: 0px;
height: inherit;
}
img {
width: 100%;
object-fit: cover;
max-height: 100%;
border-bottom-right-radius: var(--rounding);
}
#wave-text * {
animation: wave 3s infinite;
display: inline-block;
}
}
.flex {
display: flex;
}
@keyframes wave {
0% {
transform: translateX(0);
}
25% {
scale: 120%;
}
50% {
transform: translateX(50px);
}
100% {
transform: translateX(0px);
}
}
@keyframes spinin {
0% {
transform: translateX(-100%) translateY(-100%);
}
100% {
transform: translateX(0px);
}
}
/*
* nav/sidebar
*/
#main-page {
display: flex;
flex-direction: reverse-row;
}
nav {
margin-top: 2em;
width: 7em;
ul {
margin: 0;
padding: 0;
}
li {
color: var(--text) !important;
background-color: var(--background);
border-radius: var(--rounding);
border: #000000 2px dotted;
list-style-type: none;
margin: 0;
margin-top: 1em;
margin-bottom: 1em;
padding: 1em;
width: 6em;
}
a {
color: black;
text-decoration: none;
}
li:hover {
transform: scale(125%);
filter: hue-rotate(60deg);
border: white 2px solid;
background-image: url("/img/astolfos/header.gif");
background-position: 100% 100%;
background-size: 100% 100%;
}
a:hover {
background-color: inherit;
transform: none;
rotate: 0deg;
}
}
/*
* 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;
}
/*
* animations
*/
.spin {
animation: spin 2s infinite linear;
display: inline-block;
color: orange;
}
.hue-change {
animation: hue-change 2s infinite linear;
display: inline-block;
color: orange;
}
.size-big-small {
animation: size-big-small 2s infinite linear;
display: inline-block;
color: orange;
}
@keyframes hue-change {
from {
filter: hue-rotate(0deg);
}
to {
filter: hue-rotate(360deg);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes size-big-small {
from {
transform: scale(1);
}
40% {
transform: scale(2);
}
80% {
transform: scale(0.75);
}
to {
transform: scale(1);
}
}
/*
* responsive webpage
*/
.horizontal-flex {
display: flex;
flex-direction: row;
}
@media (max-width: 1000px) {
header {
height: auto;
}
header h1 {
top: 0.3em;
font-size: 5em;
}
.horizontal-flex {
flex-direction: column;
}
#main-page {
flex-direction: column-reverse;
padding-left: 0px;
}
nav {
width: 100%;
ul {
display: flex;
justify-content: space-evenly;
}
li {
width: fit-content;
}
}
.hide-mobile {
display: none;
}
footer marquee {
width: auto !important;
}
.blog-content {
width: 90vw !important;
}
}