jillo-bot/static/style.css

80 lines
1.4 KiB
CSS

:root {
--accent-color: #f17d10;
}
body {
padding: 0px;
margin: 0px;
overflow-x: hidden;
color: var(--text-color);
background-color: var(--background-color);
font-family: 'Balsamiq Sans', sans-serif;
font-weight: 300;
width: 100%;
min-height: 100vh;
text-underline-offset: 3px;
font-size: 16px;
color-scheme: dark;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
:root {
--text-color: #111;
--background-color: #fefefd;
}
@media (prefers-color-scheme: dark) {
:root {
--text-color: #eee;
--background-color: #111110;
}
}
a {
text-decoration: none;
color: var(--accent-color);
}
a:hover {
text-decoration: underline;
}
#main {
display: flex;
text-align: center;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
#main img {
display: block;
height: 18rem;
width: auto;
animation: 1s popup;
animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
transition: transform 0.15s, opacity 0.1s;
}
#main img:active {
transform: scale(0.97);
opacity: 0.9;
}
#main :not(img) {
animation: 0.8s fadein;
}
#main h1 {
font-size: 4rem;
margin-top: 0.5rem;
margin-bottom: 1rem;
}
@keyframes fadein {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes popup {
0% { transform: scale(0) rotate(40deg) }
100% { transform: scale(1) rotate(0deg) }
}