a.stupid.cat/css/index.css

712 lines
12 KiB
CSS

/* ==========================================
!! Stylesheet guide: !!
1. UNIVERSIAL CONTENT
2. /Coffee
3. /dev-info
4. /hardwa-reinfo
5. /cv
6. /guestbook
============================================= */
/* IMPORTS */
@import url(fonts.css);
@import url(picker.css);
@import url(discord.css);
@import url(theme-switcher.css);
@import url(themes/frappe.css);
@import url(themes/latte.css);
@import url(themes/macchiato.css);
@import url(themes/mocha.css);
/* ==========================================
1. UNIVERSIAL CONTENT
============================================= */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
height: 100%;
background: linear-gradient(135deg, var(--base) 0%, var(--mantle) 60%, var(--crust) 100%);
}
body {
margin: 0;
min-height: 100vh;
width: 100%;
max-width: 100vw;
overflow-x: hidden;
font-family: 'Comic Code', sans-serif;
background: linear-gradient(135deg, var(--base) 0%, var(--mantle) 60%, var(--crust) 100%);
color: var(--text);
/* top-anchored, horizontally centered, scrollable */
display: flex;
flex-direction: column;
align-items: center;
padding: clamp(2.5rem, 9vh, 6rem) 1.25rem 5rem;
}
/* main content column */
main.intro,
.hub {
width: 100%;
max-width: 480px;
z-index: 1;
}
.pfp {
width: 96px;
height: 96px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--mauve);
box-shadow: 0 4px 18px rgba(245, 194, 231, 0.25);
margin-bottom: 0.75rem;
}
.hub-header {
text-align: center;
margin-bottom: 2.25rem;
}
.hub-header h1 {
margin: 0;
font-size: 2rem;
font-weight: 700;
transition: color 0.6s ease;
}
.hey {
color: #ffffff;
}
.name {
color: rgb(var(--accent-rgb));
}
.name::before {
content: " ";
}
.tagline {
margin: 0.35rem 0 0;
color: var(--subtext-0);
font-size: 0.95rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.pronouns {
margin: 0.35rem 0 0;
color: var(--mauve);
font-size: 0.95rem;
letter-spacing: 0.04em;
text-transform: lowercase;
}
body::before {
content: "";
position: fixed;
inset: 0;
background: url(/assets/theme/peakpx.jpg) center / cover no-repeat;
filter: invert(86%) sepia(8%) saturate(900%) hue-rotate(190deg) brightness(105%);
opacity: 0.05;
pointer-events: none;
z-index: 0;
}
/* Teto chibi tucked into the bottom-right corner */
body::after {
content: "";
position: fixed;
right: 0.5rem;
bottom: 0.5rem;
width: clamp(96px, 14vw, 168px);
aspect-ratio: 564 / 547;
background: url(/assets/theme/teto.png) center / contain no-repeat;
opacity: 0.18;
pointer-events: none;
z-index: 0;
}
.badges {
position: fixed;
right: 1rem;
bottom: 1rem;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.4rem;
pointer-events: none;
z-index: 5;
}
.badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.6rem;
border-radius: 999px;
background: var(--surface-0);
border: 1px solid rgba(var(--accent-rgb), 0.45);
color: var(--subtext-1);
font-size: 0.75rem;
white-space: nowrap;
transition:
border-color 0.6s ease,
box-shadow 0.6s ease;
}
.badge:hover {
border-color: rgb(var(--accent-rgb));
box-shadow: 0 4px 14px -6px rgba(var(--accent-rgb), 0.5);
}
.badge-icon {
width: 15px;
height: 15px;
filter: invert(78%) sepia(36%) saturate(640%) hue-rotate(280deg) brightness(105%);
}
@media (max-width: 600px) {
.intro {
color: var(--text);
text-align: center;
padding: 0;
}
.intro-text {
margin-top: 0.75rem;
padding: 0 0.25rem;
}
.hub-header h1 {
font-size: 1.7rem;
}
html,
body {
overflow-x: hidden;
overflow-y: hidden;
width: 100%;
height: 0100dvh;
}
}
@media (min-width: 768px) {
.desktop-break {
display: block;
}
.intro-text {
margin-top: 1vh;
}
}
.intro-text {
max-width: 42ch;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
color: var(--subtext-1);
font-size: 0.98rem;
}
.gitgay-link {
background-color: var(--mauve);
border: none;
color: black;
padding: 0.85rem 1.5rem;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1rem;
font-weight: 600;
margin: 4px 2px;
cursor: pointer;
border-radius: 14px;
font-family: "Comic Code";
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), 0.7);
}
.links-socials {
width: 60vw;
display: flex;
flex-direction: column;
gap: 8px;
max-width: 800px;
}
.gitgay-link {
display: block;
text-align: center;
width: 100%;
}
/* Normal desktop */
#discord,
.links-socials {
width: 60vw;
max-width: 800px;
}
.gitgay-link,
.presence-stage .presence-card {
width: 100%;
max-width: 100%;
}
/* Wide screens (16:9 and wider) */
@media (min-aspect-ratio: 16/9) {
#discord,
.links-socials {
width: 40vw;
max-width: 600px;
}
}
/* Mobile */
@media (max-width: 768px) {
#discord,
.links-socials {
width: 90vw;
}
}
.gitgay-link:hover {
transform: translateY(-2px);
filter: brightness(1.05);
box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), 0.8);
}
.gitgay-link:active {
transform: translateY(0);
}
.hub-header,
.pfp,
.hey,
.pronouns,
.intro-text,
.gitgay-link {
margin-top: 10px;
margin-bottom: 10px;
}
/* ---- 88x31 button wall (always visible on desktop) ---- */
.button-wall {
position: fixed;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 5;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
max-width: min(90vw, 480px);
}
/* hide on mobile */
@media (max-width: 768px) {
.button-wall {
display: none;
}
}
.button-wall a {
display: block;
line-height: 0;
}
.button-wall img {
width: 88px;
height: 31px;
image-rendering: pixelated;
border: 1px solid var(--surface-1);
border-radius: 2px;
transition: transform 0.12s ease, border-color 0.12s ease;
}
.button-wall a:hover img {
transform: translateY(-2px);
border-color: rgb(var(--accent-rgb));
}
/* Nav bar */
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 2000;
top: 0;
left: 0;
background-color: var(--base);
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: var(--subtext-0);
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: var(--text);
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
@media screen and (max-height: 450px) {
.sidenav {
padding-top: 15px;
}
.sidenav a {
font-size: 18px;
}
}
.hamburger {
position: fixed;
top: 1rem;
left: 1rem;
font-size: 30px;
cursor: pointer;
z-index: 1000;
}
.sidenav a.active {
color: var(--lavender);
}
/* ==========================================
2. /coffee
============================================= */
.teapot {
font-size: 6vh;
}
body.message-page {
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
.message-card {
background: var(--surface-0);
padding: 2.5rem;
border-radius: 12px;
max-width: 520px;
width: 100%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
text-align: center;
line-height: 1.6;
color: var(--text);
border: 1px solid var(--surface-1);
}
.message-card h1 {
margin-top: 0;
color: var(--pink);
letter-spacing: -0.01em;
}
.message-card p {
color: var(--subtext-1);
}
.message-card .ok {
color: var(--green);
}
.message-card .err {
color: var(--red);
}
.message-card .warn {
color: var(--yellow);
}
.message-card .muted {
color: var(--overlay-1);
font-size: 0.9rem;
margin-top: 1.5rem;
}
.message-card code {
background: var(--mantle);
color: var(--rosewater);
padding: 0.1rem 0.4rem;
border-radius: 6px;
font-size: 0.85em;
}
.message-card a.home-link {
display: inline-block;
margin-top: 1.5rem;
color: var(--pink);
transition: color 0.15s ease;
}
.message-card a.home-link:hover {
color: var(--flamingo);
text-decoration: underline;
}
.message-card .glyph {
font-size: 2.75rem;
line-height: 1;
margin-bottom: 0.5rem;
}
@media (max-width: 540px) {
.message-card {
padding: 1.75rem 1.5rem;
}
}
.yuri-card {
background: var(--surface-0);
padding: 2.5rem;
border-radius: 12px;
max-width: 900px;
width: 100%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
text-align: center;
line-height: 1.6;
color: var(--text);
border: 1px solid var(--surface-1);
}
/* ============================================================
3. /dev-info - https://git.gay/doughmination/clove-is-a-dev/src/branch/main/css/main.css
============================================================ */
/* Let only the dev-info page scroll; link hub stays locked */
html:has(.dev-info),
body:has(.dev-info) {
height: auto;
min-height: 100dvh;
overflow-y: auto;
}
body:has(.dev-info) .hub {
max-width: 860px;
}
.dev-info {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
margin: 0 auto;
padding-bottom: 4.5rem;
}
/* Simple Icons rendered via CSS mask so colour is theme-driven.
Markup: <span class="tech-icon pink" style="--si:url('https://cdn.simpleicons.org/SLUG')"></span> */
.tech-icon {
position: relative;
width: 30px;
height: 30px;
display: inline-block;
transition: transform 0.15s ease, filter 0.15s ease;
}
/* The icon shape — masked so the label (::after) stays visible */
.tech-icon::before {
content: "";
position: absolute;
inset: 0;
background-color: currentColor;
-webkit-mask: var(--si) center / contain no-repeat;
mask: var(--si) center / contain no-repeat;
}
.tech-icon:hover {
transform: translateY(-2px) scale(1.12);
filter: drop-shadow(0 4px 8px currentColor);
}
/* Hover label — pulls text from aria-label, tinted to match the icon */
.tech-icon::after {
content: attr(aria-label);
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
padding: 0.25rem 0.5rem;
border-radius: 6px;
background: var(--crust);
border: 1px solid currentColor;
color: var(--text);
font-size: 0.72rem;
line-height: 1;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease, transform 0.15s ease;
z-index: 10;
}
.tech-icon:hover::after {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* Catppuccin accent classes — pull from the active flavour's vars */
.tech-icon.rosewater {
color: var(--rosewater);
}
.tech-icon.pink {
color: var(--pink);
}
.tech-icon.mauve {
color: var(--mauve);
}
.tech-icon.red {
color: var(--red);
}
.tech-icon.maroon {
color: var(--maroon);
}
.tech-icon.peach {
color: var(--peach);
}
.tech-icon.yellow {
color: var(--yellow);
}
.tech-icon.green {
color: var(--green);
}
.tech-icon.teal {
color: var(--teal);
}
.tech-icon.sky {
color: var(--sky);
}
.tech-icon.sapphire {
color: var(--saphire);
}
.tech-icon.blue {
color: var(--blue);
}
.tech-icon.lavender {
color: var(--lavender);
}
.hardware-list {
text-align: left;
}
/* ============================================================
4. /hardware-info
============================================================ */
.pcpp-part-list {
width: 100%;
.pcpp-part-list {
max-width: 700px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 14px;
/* THIS is your “bigger gap between entries” */
}
.pcpp-row {
display: grid;
grid-template-columns: 160px 1fr;
align-items: center;
column-gap: 24px;
}
.pcpp-type {
text-align: right;
font-weight: 600;
color: var(--subtext-1);
white-space: nowrap;
}
.pcpp-item {
text-align: left;
word-break: keep-all;
}
.pcpp-item a {
text-decoration: none;
color: var(--text);
}
.pcpp-item a:hover {
text-decoration: underline;
}
}
/* ============================================================
5. /cv
============================================================ */
.cursor::after {
content: '';
display: inline-block;
width: 10px;
height: 1em;
background: #00ff88;
animation: blink 1s step-end infinite;
vertical-align: bottom;
margin-left: 5px;
}
@keyframes blink {
50% {
opacity: 0;
}
}
/* ============================================================
6. /guestbook
============================================================ */
.clove {
opacity: 50%;
color: var(--subtext-1);
}