web/assets/styles.css
2025-11-01 23:46:32 -03:00

549 lines
8.4 KiB
CSS

@font-face {
font-family: "Jersey 15";
src: url("/fonts/jersey15.ttf") format("truetype");
}
:root {
--theme-bg: #16191c;
--theme-bg-secondary: #252a2e;
--theme-bg-tertiary: #1b1f22;
--theme-fg: #a3aaaf;
--theme-fg-alt-rgb: 106, 111, 121;
--theme-fg-alt: rgb(var(--theme-fg-alt-rgb));
--theme-accent-rgb: 163, 170, 175; /* 147, 184, 217; */
--theme-accent: rgb(var(--theme-accent-rgb));
--theme-accent-alt: #2c3237; /* #2a353e; */
--theme-accent-third: rgb(140, 155, 189); /* #2a353e; */
--theme-accent-title-rgb: var(--theme-accent-rgb);
--theme-accent-title: rgb(var(--theme-accent-title-rgb));
--theme-border-rgb: 56, 60, 66;
--theme-border: rgb(var(--theme-border-rgb));
}
html {
line-height: 1.5;
font-family: "Jersey 15", sans-serif, monospace;
font-size: 22px;
-webkit-font-smoothing: none;
font-smooth: never;
scroll-behavior: smooth;
}
body {
padding: 16px;
margin: auto;
background-color: var(--theme-bg);
color: var(--theme-fg);
}
.section {
display: flex;
flex-direction: column;
padding: 2.4rem;
overflow-wrap: break-word;
clip-path: polygon(
0px calc(100% - 8px),
8px calc(100% - 8px),
8px 100%,
calc(100% - 8px) 100%,
calc(100% - 8px) calc(100% - 8px),
100% calc(100% - 8px),
100% 8px,
calc(100% - 8px) 8px,
calc(100% - 8px) 0px,
8px 0px,
8px 8px,
0px 8px
);
box-sizing: border-box;
background-color: var(--theme-bg-secondary);
gap: 1rem;
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.section,
#header {
max-width: 36rem;
width: 100%;
}
.alt {
color: var(--theme-fg-alt);
}
/* .alt-font { */
/* font-size: 16px; */
/* font-family: "Gamja Flower", monospace; */
/* font-weight: 700; */
/* letter-spacing: 0.05em; */
/* } */
.section p {
margin: 0;
}
p {
-webkit-hyphens: auto;
hyphens: auto;
}
.centered {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
gap: 1em;
}
.title {
color: var(--theme-accent-title);
padding-bottom: 0.25em;
border-bottom: 2px solid var(--theme-border);
text-align: center;
justify-content: center;
margin: 0px;
padding-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.25em;
}
.title-1 {
font-size: 1.25rem;
}
.title-2 {
color: var(--theme-fg-alt);
padding-bottom: 0.16rem;
border-bottom: none;
font-size: 0.9rem;
}
.title.title-2::after {
background-image: linear-gradient(
90deg,
rgba(var(--theme-border-rgb), 0) 0,
rgba(var(--theme-fg-alt-rgb), 255)
);
}
.title::after {
background-image: linear-gradient(
90deg,
rgba(var(--theme-accent-title-rgb), 0) 0,
rgba(var(--theme-accent-title-rgb), 255)
);
content: "";
display: block;
flex: 1;
margin-left: 0.5ch;
height: 0.3rem;
border-radius: 3px;
}
.title .icon {
height: 24px;
width: 24px;
shape-rendering: crispEdges;
}
.box {
background-color: var(--theme-accent-alt);
color: var(--theme-accent);
padding: 0.5rem 1rem;
line-height: 1;
box-sizing: border-box;
width: fit-content;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
clip-path: polygon(
0px calc(100% - 6px),
6px calc(100% - 6px),
6px 100%,
calc(100% - 6px) 100%,
calc(100% - 6px) calc(100% - 6px),
100% calc(100% - 6px),
100% 6px,
calc(100% - 6px) 6px,
calc(100% - 6px) 0px,
6px 0px,
6px 6px,
0px 6px
);
display: flex;
align-items: center;
gap: 0.35rem;
transition: filter 0.2s ease;
}
.box:hover {
filter: brightness(120%);
}
.box svg {
flex-shrink: 0;
}
a,
a:visited,
a:active {
color: var(--theme-accent-third);
text-decoration: none;
}
a:hover {
text-decoration: 2px underline;
text-underline-offset: 3px;
}
#header {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
z-index: 1;
}
#header,
#header #left,
#header #links {
flex-wrap: wrap;
}
#header #left,
#header #links {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
margin: 0;
padding: 0;
}
#header img {
width: auto;
height: 1.5em;
}
nav .module {
clip-path: polygon(
0px calc(100% - 6px),
6px calc(100% - 6px),
6px 100%,
calc(100% - 6px) 100%,
calc(100% - 6px) calc(100% - 6px),
100% calc(100% - 6px),
100% 6px,
calc(100% - 6px) 6px,
calc(100% - 6px) 0px,
6px 0px,
6px 6px,
0px 6px
);
padding: 0.5em 1.25em;
box-sizing: border-box;
background-color: var(--theme-bg-secondary);
}
#logo {
display: flex;
align-items: center;
padding: 0.5em;
}
.labeled-icons {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.35rem;
margin-top: 0.25rem;
}
.labeled-icons.full {
flex-direction: column;
& > * {
flex-grow: 1;
}
& .box {
width: 100%;
}
}
.labeled-icons.b88x31 {
gap: 0.35rem;
}
.labeled-icons.b88x31 a {
display: flex;
width: 88px;
height: 31px;
background: var(--theme-bg-tertiary);
color: var(--theme-fg-alt);
justify-content: center;
}
.labeled-icons.b88x31 a,
#muxiepuff {
clip-path: polygon(
0px calc(100% - 3px),
3px calc(100% - 3px),
3px 100%,
calc(100% - 3px) 100%,
calc(100% - 3px) calc(100% - 3px),
100% calc(100% - 3px),
100% 3px,
calc(100% - 3px) 3px,
calc(100% - 3px) 0px,
3px 0px,
3px 3px,
0px 3px
);
}
.labeled-icons.b88x31 li {
transition: filter 0.2s ease;
}
.labeled-icons.b88x31 li:hover {
filter: brightness(0.5);
}
.labeled-icons.b88x31 img {
image-rendering: pixelated;
}
.labeled-icons.b88x31 img {
image-rendering: pixelated;
}
#extra {
display: flex;
list-style: none;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 0;
}
#extra svg {
width: 15rem;
max-width: 100%;
height: 15rem;
}
@media (max-width: 768px) {
html {
font-size: 18px;
}
.section {
padding: 1.5rem;
}
#extra {
justify-content: center;
gap: 1rem;
}
#extra svg {
width: 8rem;
height: 8rem;
}
}
@media (max-width: 480px) {
html {
font-size: 16px;
}
body {
padding: 8px;
}
.section {
padding: 1rem;
}
.box {
padding: 0.4rem 0.8rem;
font-size: 0.9em;
}
.box svg {
width: 20px;
height: 20px;
}
.title {
font-size: 1.1rem;
}
#extra svg {
width: 6rem;
height: 6rem;
}
.alt-font {
font-size: 14px;
}
}
#muxiepuff {
display: flex;
padding: 0;
background: none;
outline: none;
border: none;
cursor: pointer;
}
.name-scroller {
display: inline-block;
position: relative;
vertical-align: middle;
margin-top: -3px;
overflow: hidden;
}
.name-wrapper {
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
transform: translateY(0);
opacity: 1;
}
.name-wrapper.animating {
transform: translateY(-100%);
opacity: 0;
}
.name-wrapper:not(.animating) {
transform: translateY(0);
opacity: 1;
}
.name-text {
position: relative;
display: inline-block;
}
.name-underline {
position: absolute;
bottom: 2px;
left: 0;
width: 100%;
height: 2px;
background: currentColor;
box-shadow: 0 0 8px currentColor;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.inline-code {
font-family: monospace, "Jersey 15", sans-serif;
font-size: 0.75em;
background-color: var(--theme-border);
padding: 1px;
display: inline-block;
clip-path: polygon(
0px calc(100% - 2px),
2px calc(100% - 2px),
2px 100%,
calc(100% - 2px) 100%,
calc(100% - 2px) calc(100% - 2px),
100% calc(100% - 2px),
100% 2px,
calc(100% - 2px) 2px,
calc(100% - 2px) 0px,
2px 0px,
2px 2px,
0px 2px
);
line-height: 1.6;
vertical-align: middle;
cursor: pointer;
outline: none;
border: none;
}
.inline-code > span {
display: block;
background-color: var(--theme-bg-tertiary);
color: var(--theme-fg);
padding: 0.15em 0.4em;
clip-path: polygon(
0px calc(100% - 2px),
2px calc(100% - 2px),
2px 100%,
calc(100% - 2px) 100%,
calc(100% - 2px) calc(100% - 2px),
100% calc(100% - 2px),
100% 2px,
calc(100% - 2px) 2px,
calc(100% - 2px) 0px,
2px 0px,
2px 2px,
0px 2px
);
font-weight: 500;
}
p,
.title {
transform: translateZ(0px);
-webkit-transform: translateZ(0px);
will-change: transform;
}
hr {
width: 100%;
border: none;
border-top: 2px solid var(--theme-border);
}
footer.section {
display: flex;
align-items: center;
justify-content: center;
gap: 1ch;
}
footer p {
text-align: center;
gap: 1ch;
margin: 0;
padding: 0;
}
footer a {
overflow-wrap: anywhere;
word-break: break-word;
}
footer #f-heart {
color: var(--theme-accent-third);
vertical-align: middle;
}