1f195a16de
Blog can now pull live gaming data and surface a curated gamer profile. - DB: integrations config table (single JSON row, holds secrets, excluded from export), integration_cache table (lazy TTL cache), posts.links column - Platform fetchers: Steam (official Web API), PSN (NPSSO->token->trophies), Xbox (OpenXBL). All degrade gracefully; cache keeps last-good payload on fetch failure so pages never blank - Admin /integrations: profile/bio, social links, consoles, favorites, per-platform creds (blank keeps stored secret), cache TTL, live status table with refresh - Public /bio page: avatar, bio, recent games, achievements, favorites, consoles. Gated behind hasIntegrations() so a vanilla blog stays clean - About page bio teaser, Shell "now playing" tray widget + Bio nav link - Per-post "shared on" social links (editable in PostForm, shown on post page) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
454 lines
7.4 KiB
CSS
454 lines
7.4 KiB
CSS
/* ============================================================
|
|
RetroBlog — globals
|
|
Shared, theme-agnostic skeleton. Visual identity lives in the
|
|
per-theme files imported below, each scoped to
|
|
[data-theme="..."]. This file only handles reset + layout
|
|
structure that every skin reuses.
|
|
============================================================ */
|
|
|
|
@import "../themes/xp.css";
|
|
@import "../themes/ninex.css";
|
|
@import "../themes/ps2.css";
|
|
@import "../themes/ps1.css";
|
|
@import "../themes/ps3.css";
|
|
@import "../themes/wii.css";
|
|
@import "../themes/nds.css";
|
|
@import "../themes/dreamcast.css";
|
|
@import "../themes/jv2002.css";
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* ---- structural layout (positioning only; themes paint) ---- */
|
|
|
|
.rb-desktop {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 0 40px; /* room for the fixed taskbar */
|
|
}
|
|
|
|
/* Opt-in decorative background field (themes enable it). */
|
|
.rb-bg {
|
|
display: none;
|
|
}
|
|
|
|
.rb-window {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
margin: 24px auto;
|
|
width: min(920px, calc(100% - 32px));
|
|
}
|
|
|
|
.rb-titlebar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 0 auto;
|
|
user-select: none;
|
|
}
|
|
|
|
.rb-titlebar-text {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rb-titlebar-buttons {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.rb-menubar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.rb-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.rb-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.rb-statusbar {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.rb-status-grow {
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
/* taskbar pinned to viewport bottom */
|
|
.rb-taskbar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0 6px;
|
|
z-index: 50;
|
|
}
|
|
|
|
.rb-tasks {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rb-tray {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ---- post list ---- */
|
|
|
|
.rb-post-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.rb-post-card-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rb-post-card-title {
|
|
margin: 0;
|
|
}
|
|
|
|
.rb-post-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rb-post-tags {
|
|
display: inline-flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rb-readmore {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.rb-article-meta {
|
|
display: flex;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rb-switcher {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
Integrations: bio page, social links, game/achievement cards, tray widget.
|
|
Theme-agnostic base styling — themes may override these rb- classes, but
|
|
these defaults keep everything legible under any skin.
|
|
--------------------------------------------------------------------------- */
|
|
|
|
/* social links row */
|
|
.rb-social {
|
|
list-style: none;
|
|
margin: 10px 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
.rb-social-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border: 1px solid currentColor;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
}
|
|
.rb-social-link:hover {
|
|
filter: brightness(0.95);
|
|
}
|
|
.rb-social-icon {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
/* per-post share footer */
|
|
.rb-article-share {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-top: 24px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
|
}
|
|
.rb-article-share-label {
|
|
font-weight: bold;
|
|
opacity: 0.8;
|
|
}
|
|
.rb-article-share .rb-social {
|
|
margin: 0;
|
|
}
|
|
|
|
/* bio page layout */
|
|
.rb-bio {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 26px;
|
|
}
|
|
.rb-bio-header {
|
|
display: flex;
|
|
gap: 18px;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rb-bio-avatar {
|
|
width: 96px;
|
|
height: 96px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
flex: 0 0 auto;
|
|
}
|
|
.rb-bio-head-text {
|
|
flex: 1 1 260px;
|
|
min-width: 0;
|
|
}
|
|
.rb-bio-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.rb-bio-h2 {
|
|
margin: 0;
|
|
font-size: 1.15em;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
|
padding-bottom: 4px;
|
|
}
|
|
.rb-bio-cols {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 26px;
|
|
}
|
|
.rb-bio-note {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* game cards */
|
|
.rb-game-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.rb-game-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
background: rgba(255, 255, 255, 0.35);
|
|
}
|
|
.rb-game-card:hover {
|
|
filter: brightness(1.03);
|
|
}
|
|
.rb-game-art {
|
|
width: 100%;
|
|
aspect-ratio: 460 / 215;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
.rb-game-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 8px 10px;
|
|
}
|
|
.rb-game-name {
|
|
font-weight: bold;
|
|
line-height: 1.2;
|
|
}
|
|
.rb-game-sub {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.8em;
|
|
opacity: 0.85;
|
|
}
|
|
.rb-badge {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
border: 1px solid currentColor;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* achievements */
|
|
.rb-ach-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.rb-ach {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
.rb-ach-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
object-fit: cover;
|
|
border-radius: 4px;
|
|
flex: 0 0 auto;
|
|
}
|
|
.rb-ach-icon-empty {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
}
|
|
.rb-ach-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
.rb-ach-name {
|
|
font-weight: bold;
|
|
}
|
|
.rb-ach-meta {
|
|
font-size: 0.8em;
|
|
opacity: 0.75;
|
|
}
|
|
.rb-ach-desc {
|
|
font-size: 0.85em;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* favorites + consoles lists */
|
|
.rb-fav-list,
|
|
.rb-console-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.rb-fav,
|
|
.rb-console {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 6px 10px;
|
|
border-left: 3px solid currentColor;
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
.rb-fav-name,
|
|
.rb-console-name {
|
|
font-weight: bold;
|
|
}
|
|
.rb-fav-note,
|
|
.rb-console-note {
|
|
font-size: 0.85em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.rb-about-bio {
|
|
margin-top: 22px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* now-playing tray widget */
|
|
.rb-nowplaying {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
text-decoration: none;
|
|
font-size: 0.8em;
|
|
padding: 2px 8px;
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.rb-nowplaying-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.rb-nowplaying-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #36c436;
|
|
box-shadow: 0 0 4px #36c436;
|
|
flex: 0 0 auto;
|
|
animation: rb-pulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes rb-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|