532 lines
9.9 KiB
CSS
532 lines
9.9 KiB
CSS
/* ============================================================
|
|
dev-info.css — the /dev-info page: tech-stack icons, hardware
|
|
list, and the WakaTime stats cards.
|
|
============================================================ */
|
|
|
|
/* ============================================================
|
|
8. dev-info PAGE
|
|
============================================================ */
|
|
/* 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) {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
|
|
/* ============================================================
|
|
12. dev-info / Dev Info PAGE
|
|
============================================================ */
|
|
/* Let the coding-stats page scroll; link hub stays locked */
|
|
html:has(.waka),
|
|
body:has(.waka) {
|
|
height: auto;
|
|
min-height: 100dvh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
body:has(.waka) {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.waka {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
padding-bottom: 4.5rem;
|
|
}
|
|
|
|
.waka .hub-header {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.waka-meta {
|
|
margin: 0.5rem 0 0;
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.03em;
|
|
color: var(--subtext-0);
|
|
}
|
|
|
|
.waka-section {
|
|
background: var(--surface-0);
|
|
border: 1px solid var(--surface-1);
|
|
border-radius: 16px;
|
|
padding: 0.85rem 1.25rem 0.95rem;
|
|
margin-bottom: 0.7rem;
|
|
}
|
|
|
|
.waka-section .section-title {
|
|
text-align: left;
|
|
font-size: 0.82rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* ---- headline total + weekly chart ---- */
|
|
.waka-total {
|
|
text-align: center;
|
|
}
|
|
|
|
.waka-total-num {
|
|
font-size: 2.1rem;
|
|
font-weight: 700;
|
|
color: rgb(var(--accent-rgb));
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.waka-total-sub {
|
|
font-size: 0.78rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--subtext-0);
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
.waka-week {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
height: 120px;
|
|
}
|
|
|
|
.waka-day {
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
height: 100%;
|
|
}
|
|
|
|
.waka-day-track {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 34px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
background: var(--surface-1);
|
|
border-radius: 7px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.waka-day-fill {
|
|
width: 100%;
|
|
min-height: 3px;
|
|
background: rgb(var(--accent-rgb));
|
|
border-radius: 7px 7px 0 0;
|
|
transition: height 0.5s ease;
|
|
}
|
|
|
|
.waka-day-label {
|
|
font-size: 0.66rem;
|
|
color: var(--subtext-0);
|
|
}
|
|
|
|
/* ---- ranked horizontal bars (languages / projects / editors / os) ---- */
|
|
.waka-bars {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.waka-bar-row {
|
|
display: grid;
|
|
grid-template-columns: 7.5rem 1fr auto;
|
|
align-items: center;
|
|
gap: 0.7rem;
|
|
}
|
|
|
|
.waka-bar-name {
|
|
font-size: 0.82rem;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.waka-bar-track {
|
|
height: 9px;
|
|
background: var(--surface-1);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.waka-bar-fill {
|
|
display: block;
|
|
height: 100%;
|
|
width: 0;
|
|
background: rgb(var(--accent-rgb));
|
|
border-radius: 999px;
|
|
transition: width 0.6s ease;
|
|
}
|
|
|
|
.waka-bar-val {
|
|
font-size: 0.74rem;
|
|
color: var(--subtext-0);
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ---- two-up grid for editors + OS on wider screens ---- */
|
|
.waka-grid2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.1rem;
|
|
}
|
|
|
|
.waka-grid2 .waka-section {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.waka-grid2 {
|
|
grid-template-columns: 1fr;
|
|
gap: 0;
|
|
}
|
|
|
|
.waka-grid2 .waka-section {
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
.waka-bar-row {
|
|
grid-template-columns: 5.5rem 1fr auto;
|
|
}
|
|
}
|
|
|
|
/* ---- empty / setup state ---- */
|
|
.waka-empty {
|
|
font-size: 0.85rem;
|
|
color: var(--subtext-0);
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
|
|
.waka-setup {
|
|
background: var(--surface-0);
|
|
border: 1px solid var(--surface-1);
|
|
border-radius: 16px;
|
|
padding: 1.25rem 1.4rem 1.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.waka-steps {
|
|
margin: 0.9rem 0 1.2rem;
|
|
padding-left: 1.2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
line-height: 1.45;
|
|
color: var(--text);
|
|
}
|
|
|
|
.waka-steps code {
|
|
background: var(--surface-1);
|
|
padding: 0.05rem 0.35rem;
|
|
border-radius: 6px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.waka-steps a,
|
|
.waka-empty a,
|
|
.waka-credit a {
|
|
color: rgb(var(--accent-rgb));
|
|
text-decoration: none;
|
|
}
|
|
|
|
.waka-steps a:hover,
|
|
.waka-empty a:hover,
|
|
.waka-credit a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.waka-setup-btn {
|
|
display: inline-block;
|
|
padding: 0.45rem 1rem;
|
|
border-radius: 999px;
|
|
background: rgb(var(--accent-rgb));
|
|
color: var(--crust);
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: transform 0.15s ease, filter 0.15s ease;
|
|
}
|
|
|
|
.waka-setup-btn:hover {
|
|
transform: translateY(-1px);
|
|
filter: brightness(1.05);
|
|
}
|
|
|
|
.waka-credit {
|
|
text-align: center;
|
|
font-size: 0.72rem;
|
|
color: var(--subtext-0);
|
|
margin: 1.4rem 0 0;
|
|
}
|
|
|
|
/* ---- collapsible dropdown sections (details/summary) ---- */
|
|
details.waka-section {
|
|
/* keep the card padding tight when collapsed; expands via [open] below */
|
|
padding-bottom: 0.85rem;
|
|
transition: padding-bottom 0.15s ease;
|
|
}
|
|
|
|
details.waka-section[open] {
|
|
padding-bottom: 1.15rem;
|
|
}
|
|
|
|
/* The clickable header row */
|
|
summary.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
cursor: url('../assets/cursor/pointer_0.png'), pointer;
|
|
list-style: none;
|
|
user-select: none;
|
|
margin-bottom: 0;
|
|
transition: margin-bottom 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
/* Hide the native disclosure triangle (both engines) */
|
|
summary.section-title::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
summary.section-title::marker {
|
|
content: "";
|
|
}
|
|
|
|
summary.section-title:hover {
|
|
color: rgb(var(--accent-rgb));
|
|
}
|
|
|
|
summary.section-title:focus-visible {
|
|
outline: 2px solid rgb(var(--accent-rgb));
|
|
outline-offset: 3px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Custom chevron that flips when the section is open */
|
|
summary.section-title::after {
|
|
content: "";
|
|
flex: none;
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
margin-right: 0.15rem;
|
|
border-right: 2px solid currentColor;
|
|
border-bottom: 2px solid currentColor;
|
|
transform: rotate(45deg);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
details.waka-section[open]>summary.section-title {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
details.waka-section[open]>summary.section-title::after {
|
|
transform: rotate(-135deg);
|
|
}
|
|
|
|
/* Tech-stack icons sit inside a collapsible card now: drop the big
|
|
page-bottom padding the standalone .dev-info block used. */
|
|
.tech-stack .dev-info {
|
|
padding-bottom: 0;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* ---- about / setup + badges section ---- */
|
|
.about-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* The .badge chips are reused here in normal page flow (the fixed-position
|
|
.badges container is gone); make sure they stay interactive + visible. */
|
|
.about-badges .badge {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.about-list {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* hidden pokéball now lives inside the dev-info Setup section */
|
|
.about-setup #pokeball-secret {
|
|
display: block;
|
|
margin: 0.9rem auto 0;
|
|
}
|
|
|
|
/* ---- hardware spec list ---- */
|
|
.hw-item {
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
}
|
|
|
|
.hw-intro {
|
|
margin: 0 0 0.9rem;
|
|
font-size: 0.8rem;
|
|
color: var(--subtext-0);
|
|
}
|
|
|
|
.hw-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.55rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.hw-row {
|
|
display: grid;
|
|
grid-template-columns: 8rem 1fr;
|
|
gap: 0.7rem;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.hw-row dt {
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--subtext-0);
|
|
}
|
|
|
|
.hw-row dd {
|
|
margin: 0;
|
|
font-size: 0.88rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.hw-row {
|
|
grid-template-columns: 6rem 1fr;
|
|
}
|
|
}
|
|
|
|
|