Files
infinifi/web/style.css

231 lines
3.6 KiB
CSS
Raw Normal View History

2024-07-20 21:18:41 +01:00
:root {
font-family: monospace;
2024-07-20 21:36:31 +01:00
--text: #4c4f69;
2024-07-21 00:22:05 +01:00
--surface1: #bcc0cc;
2024-07-20 21:36:31 +01:00
--base: #eff1f5;
2024-07-21 21:39:29 +01:00
--lavender: #7287fd;
2024-07-21 21:45:18 +01:00
--maroon: #e64553;
2024-07-21 21:39:29 +01:00
--range-height: 12px;
2024-07-21 21:45:18 +01:00
--range-accent: var(--lavender);
2024-07-20 21:18:41 +01:00
}
2024-07-20 21:36:31 +01:00
@media (prefers-color-scheme: dark) {
:root {
--text: #cdd6f4;
2024-07-21 00:22:05 +01:00
--surface1: #45475a;
2024-07-20 21:36:31 +01:00
--base: #1e1e2e;
2024-07-21 21:39:29 +01:00
--lavender: #b4befe;
2024-07-21 21:45:18 +01:00
--maroon: #eba0ac;
--range-accent: var(--maroon);
2024-07-20 21:36:31 +01:00
}
}
2024-07-20 21:18:41 +01:00
html,
body {
width: 100%;
}
body {
2024-07-21 21:39:29 +01:00
width: calc(100% - 4rem - 2px);
height: calc(100vh - 4rem - 2px);
2024-07-21 00:22:05 +01:00
padding: 2rem;
2024-07-20 21:18:41 +01:00
margin: 0;
2024-07-21 00:22:05 +01:00
background-color: var(--base);
2024-07-20 21:36:31 +01:00
}
2024-07-20 21:18:41 +01:00
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: 400;
2024-07-21 21:39:29 +01:00
color: var(--text);
2024-07-20 21:18:41 +01:00
}
2024-07-21 00:22:05 +01:00
main {
display: flex;
flex-direction: column;
align-items: start;
2024-07-21 00:31:02 +01:00
margin: 2rem;
}
2024-07-21 17:33:57 +01:00
@media (min-width: 768px) {
2024-07-21 00:31:02 +01:00
main {
margin: 4rem;
}
2024-07-21 00:22:05 +01:00
}
#bg {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -10;
}
2024-07-21 00:22:05 +01:00
.container {
position: relative;
height: 100%;
width: 100%;
display: flex;
align-items: end;
justify-content: start;
2024-07-21 21:39:29 +01:00
border: 2px solid var(--text);
2024-07-21 00:22:05 +01:00
border-radius: 2px;
}
2024-07-20 21:18:41 +01:00
.header {
font-weight: 800;
margin-bottom: 1rem;
}
2024-07-21 00:22:05 +01:00
.cat {
position: absolute;
bottom: 0px;
2024-07-21 00:31:02 +01:00
right: 2rem;
2024-07-21 00:22:05 +01:00
image-rendering: pixelated;
height: 30px;
}
2024-07-21 00:31:02 +01:00
@media (min-width: 1024px) {
.cat {
right: 4rem;
}
}
2024-07-21 00:22:05 +01:00
.eeping-cat {
position: absolute;
image-rendering: pixelated;
top: -16px;
right: 50%;
height: 15px;
2024-07-20 21:18:41 +01:00
}
2024-07-20 23:09:01 +01:00
@media (min-width: 768px) {
2024-07-21 00:22:05 +01:00
main {
2024-07-20 23:09:01 +01:00
width: 80%;
}
}
@media (min-width: 1024px) {
2024-07-21 00:22:05 +01:00
main {
2024-07-20 23:09:01 +01:00
width: 50%;
}
}
2024-07-20 21:18:41 +01:00
.button-container {
margin-top: 2rem;
display: flex;
}
2024-07-21 21:39:29 +01:00
.volume-slider-container {
position: absolute;
top: 0;
right: 0;
padding: 0.5rem 1rem;
margin: 1rem;
display: flex;
justify-content: start;
align-items: center;
}
.volume-slider-container > output {
color: var(--text);
margin-right: 1rem;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
input[type="range"] {
overflow: hidden;
-webkit-appearance: none;
border: 2px solid var(--text);
background-color: var(--base);
}
input[type="range"]::-webkit-slider-runnable-track {
height: var(--range-height);
-webkit-appearance: none;
color: #13bba4;
margin-top: -1px;
}
input[type="range"]::-webkit-slider-thumb {
width: var(--range-height);
height: var(--range-height);
-webkit-appearance: none;
background: var(--text);
2024-07-21 21:45:18 +01:00
box-shadow: -80px 0 0 80px var(--range-accent);
2024-07-21 21:39:29 +01:00
}
}
2024-07-20 21:18:41 +01:00
.button {
2024-07-20 21:36:31 +01:00
border: 2px solid var(--text);
background: var(--base);
2024-07-20 21:18:41 +01:00
position: relative;
font-family: monospace;
font-weight: 800;
padding: 0.5rem 1rem;
2024-07-20 21:36:31 +01:00
color: var(--text);
2024-07-20 21:18:41 +01:00
}
.button:hover {
2024-07-21 19:11:52 +01:00
background-color: var(--surface1);
2024-07-20 21:18:41 +01:00
background-size: 10px 10px;
background-image: repeating-linear-gradient(
45deg,
2024-07-21 19:11:52 +01:00
var(--surface1) 0,
var(--surface1) 1px,
var(--base) 0,
var(--base) 50%
2024-07-20 21:18:41 +01:00
);
}
2024-07-20 21:36:31 +01:00
@media (prefers-color-scheme: dark) {
.button:hover {
background-color: #1e1e2e;
opacity: 1;
background-size: 10px 10px;
background-image: repeating-linear-gradient(
45deg,
#585b70 0,
#585b70 1px,
#1e1e2e 0,
#1e1e2e 50%
);
}
}
2024-07-20 21:18:41 +01:00
.button:active {
2024-07-20 21:36:31 +01:00
background: var(--text) !important;
color: var(--base);
2024-07-20 23:09:01 +01:00
transform: translate(4px, 4px);
2024-07-20 21:18:41 +01:00
}
.button:active::after {
content: none;
}
.button:after {
display: block;
position: absolute;
margin: -2px;
width: inherit;
top: 1px;
left: 1px;
right: -1px;
bottom: -1px;
padding: 0.5rem 1rem;
content: "";
2024-07-20 21:36:31 +01:00
background-color: var(--text);
2024-07-20 21:18:41 +01:00
z-index: -1;
transform: translate(2px, 2px);
}
2024-07-20 21:36:31 +01:00
@media (prefers-color-scheme: dark) {
.button:after {
opacity: 0.5;
}
}