MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 536: | Line 536: | ||
} | } | ||
} | } | ||
/* ===================================================================== | /* ===================================================================== | ||
10. MINECRAFT STATUS CARD | 10. MINECRAFT STATUS CARD — ULTRA COMPACT / NEUTRAL | ||
===================================================================== */ | ===================================================================== */ | ||
.mc-status { | .mc-status { | ||
--mc-pad: | --mc-pad: 12px; | ||
--ink: # | --ink: #262626; | ||
--muted: # | --muted: #737373; | ||
--line: #e5e5e5; | |||
--surface: #ffffff; | |||
--surface-soft: #f7f7f7; | |||
--green: #25834a; | |||
--red: #c83d43; | |||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 48px minmax(0, 1fr); | ||
grid-template-areas: | grid-template-areas: | ||
"icon | "icon info" | ||
"icon | "icon main"; | ||
align-items: center; | align-items: center; | ||
justify-items: | justify-items: stretch; | ||
column-gap: | column-gap: 10px; | ||
row-gap: | row-gap: 5px; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: 540px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: | margin: 12px auto; | ||
padding: var(--mc-pad) | padding: var(--mc-pad) 42px var(--mc-pad) var(--mc-pad); | ||
background: | background: var(--surface); | ||
color: var(--ink); | color: var(--ink); | ||
border: 1px solid | border: 1px solid var(--line); | ||
border-radius: | border-radius: 12px; | ||
box-shadow: 0 2px | box-shadow: 0 2px 6px rgb(0 0 0 / 4%); | ||
font-family: var(--fedo-font); | font-family: var(--fedo-font); | ||
| Line 574: | Line 580: | ||
} | } | ||
/* Preserve the existing wrapper */ | |||
.mc-side { | .mc-side { | ||
display: contents; | display: contents; | ||
} | } | ||
/* Compact information layout */ | |||
.mc-head { | .mc-head { | ||
grid-area: | grid-area: info; | ||
justify-self: start; | |||
} | |||
.mc-players { | |||
grid-area: players; | |||
} | } | ||
.mc-icon { | .mc-icon { | ||
grid-area: icon; | grid-area: icon; | ||
} | } | ||
| Line 596: | Line 605: | ||
} | } | ||
/* Status and player | /* Status and player indicators */ | ||
.mc-head, | .mc-head, | ||
.mc-players { | .mc-players { | ||
| Line 603: | Line 611: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 5px; | ||
width: fit-content; | |||
border- | max-width: 100%; | ||
box-sizing: border-box; | |||
padding: 5px 8px; | |||
border: | border-radius: 6px; | ||
font-size: . | background: var(--surface-soft); | ||
border: 1px solid var(--line); | |||
font-size: .75rem; | |||
font-weight: 600; | font-weight: 600; | ||
line-height: 1; | line-height: 1.2; | ||
white-space: nowrap; | white-space: nowrap; | ||
cursor: default; | cursor: default; | ||
| Line 619: | Line 631: | ||
.mc-dot { | .mc-dot { | ||
width: | width: 7px; | ||
height: | height: 7px; | ||
flex | flex: 0 0 7px; | ||
border-radius: 50%; | border-radius: 50%; | ||
background: # | background: #999999; | ||
} | } | ||
.mc-status.is-online .mc-dot { | .mc-status.is-online .mc-dot { | ||
background: | background: var(--green); | ||
animation: mcpulse 2s infinite; | animation: mcpulse 2s infinite; | ||
} | } | ||
.mc-status.is-offline .mc-dot { | .mc-status.is-offline .mc-dot { | ||
background: | background: var(--red); | ||
animation: none; | |||
} | } | ||
.mc-status.is-online .mc-head { | .mc-status.is-online .mc-head { | ||
background: # | color: var(--green); | ||
border-color: # | background: #f4f8f5; | ||
border-color: #dce9df; | |||
} | } | ||
.mc-status.is-offline .mc-head { | .mc-status.is-offline .mc-head { | ||
background: # | color: var(--red); | ||
border-color: # | background: #fcf5f5; | ||
border-color: #eedddd; | |||
} | } | ||
| Line 651: | Line 666: | ||
.mc-players::after { | .mc-players::after { | ||
content: " players"; | content: " players"; | ||
color: var(--muted); | color: var(--muted); | ||
font-weight: 400; | |||
} | } | ||
/* Status pulse */ | |||
@keyframes mcpulse { | @keyframes mcpulse { | ||
0% { | 0% { | ||
box-shadow: 0 0 0 0 | box-shadow: 0 0 0 0 rgb(37 131 74 / 30%); | ||
} | } | ||
100% { | 100% { | ||
box-shadow: 0 0 0 | box-shadow: 0 0 0 6px rgb(37 131 74 / 0%); | ||
} | } | ||
} | } | ||
/* | /* Small square server logo */ | ||
.mc-icon { | .mc-icon { | ||
width: | width: 48px; | ||
height: | height: 48px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
font-size: | |||
background: var(--surface-soft); | |||
border: 1px solid var(--line); | |||
border-radius: 9px; | |||
font-size: 1.5rem; | |||
} | } | ||
.mc-icon img { | .mc-icon img { | ||
display: block; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
/* Server address | /* Server address */ | ||
.mc-main { | .mc-main { | ||
min-width: 0; | min-width: 0; | ||
| Line 701: | Line 716: | ||
-webkit-tap-highlight-color: transparent; | -webkit-tap-highlight-color: transparent; | ||
border-radius: | border-radius: 5px; | ||
outline-offset: 4px; | outline-offset: 4px; | ||
} | } | ||
| Line 707: | Line 722: | ||
.mc-addr { | .mc-addr { | ||
font-family: var(--fedo-font); | font-family: var(--fedo-font); | ||
font-weight: | font-size: clamp(1rem, 4.5cqw, 1.5rem); | ||
font-weight: 750; | |||
line-height: 1.2; | |||
letter-spacing: -.025em; | letter-spacing: -.025em; | ||
color: var(--ink); | color: var(--ink); | ||
overflow-wrap: anywhere; | |||
white-space: normal; | |||
transition: color .15s | transition: color .15s ease; | ||
} | } | ||
.mc-main:hover .mc-addr { | .mc-main:hover .mc-addr { | ||
color: # | color: #555555; | ||
} | } | ||
.mc-main:active .mc-addr { | .mc-main:active .mc-addr { | ||
opacity: .8; | |||
} | } | ||
.mc-main:focus-visible { | .mc-main:focus-visible { | ||
outline: 2px solid # | outline: 2px solid #737373; | ||
} | } | ||
/* Message of the day */ | |||
.mc-motd { | .mc-motd { | ||
margin-top: | margin-top: 3px; | ||
color: var(--muted); | color: var(--muted); | ||
font-size: .78rem; | |||
line-height: 1.4; | |||
white-space: pre-line; | white-space: pre-line; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| Line 744: | Line 760: | ||
} | } | ||
/* External link | /* External link button */ | ||
.mc-open { | .mc-open { | ||
position: absolute; | position: absolute; | ||
top: | top: 8px; | ||
right: | right: 8px; | ||
z-index: 2; | z-index: 2; | ||
} | } | ||
| Line 758: | Line 773: | ||
justify-content: center; | justify-content: center; | ||
width: | width: 26px; | ||
height: | height: 26px; | ||
border-radius: | box-sizing: border-box; | ||
border-radius: 7px; | |||
color: var(--muted); | color: var(--muted); | ||
background: transparent; | |||
border: 1px solid transparent; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
-webkit-tap-highlight-color: transparent; | |||
transition: background .15s, color .15s | transition: background .15s ease, color .15s ease; | ||
} | } | ||
.mc-open a:hover, | .mc-open a:hover, | ||
.mc-open a:focus-visible { | .mc-open a:focus-visible { | ||
background: | color: var(--ink); | ||
color: # | background: var(--surface-soft); | ||
border-color: var(--line); | |||
} | |||
.mc-open a:focus-visible { | |||
outline: 2px solid #737373; | |||
outline-offset: 2px; | |||
} | } | ||
.mc-open-icon { | .mc-open-icon { | ||
display: block; | display: block; | ||
width: | width: 14px; | ||
height: | height: 14px; | ||
background-color: currentColor; | background-color: currentColor; | ||
| Line 790: | Line 813: | ||
/* Mobile layout */ | /* Mobile layout */ | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.mc-status { | .mc-status { | ||
--mc-pad: | --mc-pad: 10px; | ||
grid-template-columns: | grid-template-columns: 42px minmax(0, 1fr); | ||
grid-template-areas: | grid-template-areas: | ||
"icon | "icon info" | ||
"icon | "icon main"; | ||
column-gap: | column-gap: 9px; | ||
row-gap: | row-gap: 4px; | ||
margin: | max-width: 100%; | ||
padding-right: | margin: 10px auto; | ||
border-radius: | padding-right: 38px; | ||
border-radius: 10px; | |||
} | } | ||
.mc-icon { | .mc-icon { | ||
width: | width: 42px; | ||
height: | height: 42px; | ||
border-radius: | border-radius: 8px; | ||
} | } | ||
.mc-head, | .mc-head, | ||
.mc-players { | .mc-players { | ||
padding: | padding: 4px 7px; | ||
font-size: . | font-size: .7rem; | ||
} | } | ||
.mc-main { | .mc-main { | ||
margin-top: | margin-top: 0; | ||
} | } | ||
.mc-addr { | .mc-addr { | ||
font-size: clamp( | font-size: clamp(1rem, 5cqw, 1.35rem); | ||
} | } | ||
.mc-motd { | .mc-motd { | ||
margin-top: | margin-top: 2px; | ||
font-size: . | font-size: .74rem; | ||
} | } | ||
.mc-open { | .mc-open { | ||
top: | top: 6px; | ||
right: | right: 6px; | ||
} | } | ||
.mc-open a { | .mc-open a { | ||
width: | width: 24px; | ||
height: | height: 24px; | ||
} | } | ||
/* Preserve existing behavior | /* Preserve existing phone visibility behavior */ | ||
.mc-status:not(.is-offline) { | .mc-status:not(.is-offline) { | ||
display: none; | display: none; | ||
| Line 853: | Line 873: | ||
/* Reduced motion */ | /* Reduced motion */ | ||
@media (prefers-reduced-motion: reduce) { | @media (prefers-reduced-motion: reduce) { | ||
.mc-dot { | .mc-dot { | ||
| Line 864: | Line 883: | ||
} | } | ||
} | } | ||
Revision as of 17:02, 23 October 2026
/* CSS placed here will be applied to all skins */
html,
body,
#content,
.mw-page-container,
.mw-body,
.mw-body-content,
.vector-body,
.vector-toc,
.vector-toc *,
.infobox,
.portable-infobox,
.cdx-search-input,
.cdx-text-input__input,
.cdx-menu,
.cdx-menu-item,
.mw-heading,
.mw-body :is(h2, h3, h4, h5, h6),
.mw-body-content :is(h2, h3, h4, h5, h6),
button,
input,
select,
textarea {
font-family: var(--fedo-font) !important;
}
/* Page title keeps the classic serif look */
h1.firstHeading,
.mw-first-heading {
font-family: 'Times New Roman', Times, 'Liberation Serif', serif !important;
}
/* =====================================================================
1. UI CLEANUP & READ-ONLY HIDING
===================================================================== */
/* Unify background & fix viewport height */
html,
body,
.mw-page-container,
.mw-header,
.mw-content-container {
background-color: #ffffff !important;
}
html,
body {
min-height: 100% !important;
}
.mw-page-container {
min-height: 100vh !important;
box-sizing: border-box !important;
border: none !important;
box-shadow: none !important;
}
/* Footers: privacy, disclaimers, powered by */
#footer-places,
#footer-icons,
.mw-footer-container {
display: none !important;
}
/* Sidebar & navigation controls */
#mw-sidebar-button,
#vector-main-menu-dropdown {
display: none !important;
}
/* User account / log in links */
#p-personal,
#pt-login,
#pt-login-2,
#p-vector-user-menu-overflow,
.vector-user-links,
.user-links-collapsible-item {
display: none !important;
}
/* Page tabs & toolbars (namespaces, views, actions) */
.vector-page-toolbar,
.mw-article-toolbar,
#p-namespaces,
#p-views,
#p-cactions,
#vector-page-tools-dropdown {
display: none !important;
}
/* Spacing left behind by removed tabs */
.mw-body-header {
border-bottom: none !important;
margin-bottom: 0 !important;
}
/* Watch page elements (forms & VisualEditor) */
#wpWatchthis,
.page-mw-watchthis,
.mw-editWatchlist,
.mw-widget-checkDef-watchthis,
label[for="wpWatchthis"],
.oo-ui-fieldLayout:has(#wpWatchthis),
.oo-ui-fieldLayout:has([name="wpWatchthis"]) {
display: none !important;
}
/* Right sidebar / column tools / appearance column */
.vector-column-end,
.no-font-mode-scale.vector-column-end {
display: none !important;
}
/* Category links */
#catlinks {
display: none;
}
/* Hide the 'home' page from the search suggestions dropdown */
li.cdx-menu-item[title="home"] {
display: none !important;
}
/* =====================================================================
2. HEADER ALIGNMENT & INSTANT SEARCH POSITIONING
===================================================================== */
/* Remove gap between header items */
.mw-header .vector-header-start {
gap: 0 !important;
}
/* Eliminate search shift, margin delays and animation latency */
#p-search,
.vector-search-box,
.vector-typeahead-search-container,
.cdx-typeahead-search,
.vector-typeahead-search {
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 0 !important;
transition: none !important;
}
.cdx-typeahead-search__input-wrapper,
.cdx-search-input {
margin-left: 0 !important;
transition: none !important;
}
/* =====================================================================
3. TABLE OF CONTENTS
===================================================================== */
#vector-toc,
.vector-toc {
margin-top: 0 !important;
}
ul#mw-panel-toc-list.vector-toc-contents {
margin-left: 6px !important;
}
/* Hide TOC header & unpin button */
.vector-pinnable-header-pinned.vector-toc-pinnable-header.vector-pinnable-header,
.vector-pinnable-header-toggle-button.vector-pinnable-header-unpin-button {
display: none !important;
}
/* =====================================================================
4. BRANDING & MEDIA
===================================================================== */
/* Neutralize any legacy container inversion */
.mw-logo-container.skin-invert {
filter: none !important;
}
/* Wordmark typography & light mode colour */
.mw-logo-wordmark,
.mw-logo-wordmark * {
color: #202122 !important;
font-family: "Mountains of Christmas", cursive, serif !important;
font-weight: 700 !important;
}
/* Modern infobox images */
.portable-infobox .pi-image img,
.infobox img {
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* =====================================================================
5. MATERIAL FLOATING SEARCH BAR
===================================================================== */
/* Hide search buttons & dropdown filler */
#searchButton,
.cdx-search-input__end-button,
.cdx-menu-item--search-for {
display: none !important;
}
/* Search container & layout stability */
.vector-typeahead-search-container {
max-width: none !important;
margin: 0 !important;
transform: none !important;
}
.cdx-search-input {
border-radius: 8px !important;
border: 1px solid transparent !important;
background-color: #f1f3f4 !important;
transition: background-color 0.2s, box-shadow 0.2s, border 0.2s;
}
.cdx-search-input:focus-within {
background-color: #ffffff !important;
box-shadow: 0 4px 6px rgba(32, 33, 36, 0.2) !important;
border: 1px solid #dfe1e5 !important;
border-radius: 8px !important;
}
/* Search inputs */
.cdx-text-input,
.cdx-text-input:focus-within,
.cdx-text-input.cdx-text-input--status-default {
border: none !important;
box-shadow: none !important;
outline: none !important;
background: transparent !important;
}
.cdx-text-input__input {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding-right: 32px !important;
transition: none !important;
}
/* Search dropdown results */
.cdx-menu {
border-radius: 8px !important;
box-shadow: 0 6px 12px rgba(32, 33, 36, 0.15) !important;
border: 1px solid #dfe1e5 !important;
margin-top: 8px !important;
background-color: #ffffff !important;
overflow: hidden !important;
padding: 0 !important;
}
.cdx-menu-item:hover,
.cdx-menu-item[aria-selected="true"] {
background-color: #eeeeee !important;
}
/* =====================================================================
6. MOBILE FIXES (LOGO, SEARCH & INFOBOX)
===================================================================== */
/* Mobile search toggle button spacing */
.search-toggle {
margin-right: 8px !important;
}
/* Restore the logo icon on mobile using inline alignment */
.mw-logo-icon {
display: inline-block !important;
vertical-align: middle !important;
margin-right: 6px !important;
}
.mw-logo-container {
display: inline-block !important;
vertical-align: middle !important;
}
/* Unfloat infobox only on narrow viewports (<= 500px) */
@media (max-width: 500px) {
.portable-infobox,
.infobox {
float: none !important;
clear: both !important;
margin: 1em auto !important;
max-width: 100% !important;
}
}
/* Centre the table-style infobox on phones */
@media screen and (max-width: 639px) {
table.infobox {
display: table;
width: 100%;
max-width: 22em;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
}
}
/* =====================================================================
7. MAIN PAGE / FEDOVERSE_WIKI PAGE
===================================================================== */
/* Remove Vector default top padding on Main Page */
.page-Main_Page #content,
.page-Main_Page .mw-body,
.page-Main_Page .vector-body,
.page-Main_Page #bodyContent {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Hide Vector titlebar on Main Page */
.page-Main_Page .no-font-mode-scale.vector-page-titlebar.mw-body-header {
display: none !important;
}
/* Hide elements only on Fedoverse_Wiki */
body.page-Fedoverse_Wiki .vector-sitenotice-container,
body.page-Fedoverse_Wiki .vector-column-start {
display: none !important;
}
/* =====================================================================
8. BUTTONS
===================================================================== */
.btn {
display: inline-block;
position: relative;
border: 2px solid #000;
border-radius: 6px;
padding: 8px 18px;
font-family: var(--fedo-font);
font-size: 0.9rem;
font-weight: 500;
line-height: 1.4;
text-align: center;
text-decoration: none !important;
white-space: nowrap;
vertical-align: middle;
color: #fff !important;
background-color: var(--btn-bg, #3ed63e);
}
/* Button colors */
.btn-green {
--btn-bg: #3ed63e;
}
.btn-blue {
--btn-bg: #646afc;
}
.btn-red {
--btn-bg: #f42447;
font-size: 1.2rem;
padding: 8px 22px;
}
/* Clean link styling */
.plainlinks a,
.plainlinks a:hover {
text-decoration: none !important;
}
.plainlinks a .btn {
color: #fff !important;
}
/* =====================================================================
9. INFOBOX SHOWCASE & AUDIO PLAYER
===================================================================== */
.infobox-showcase {
text-align: center;
padding: 0.1em 0.1em 0.1em;
}
.infobox-showcase pre {
all: unset;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.1em;
}
.infobox-showcase img {
margin: 0 1px;
}
.featured-song-label {
font-weight: bold;
font-size: 14px;
line-height: 1.4em;
margin-bottom: 4px;
}
.infobox-audio {
padding-top: 0;
margin: 0;
}
.infobox-audio-title {
font-size: 14px;
font-style: italic;
line-height: 1.3em;
margin: 0 0 6px 0;
padding: 0;
}
.infobox-audio audio {
width: 100%;
display: block;
border-radius: 8px;
}
.custom-audio-player {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
height: 34px;
box-sizing: border-box;
padding: 0 12px;
background: #F5F5F5;
border-radius: 10px;
color: white;
}
.custom-audio-player button {
border: none;
background: none;
color: #1F1F1F;
cursor: pointer;
padding: 0;
font-size: 16px;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
}
.custom-audio-player button:hover {
opacity: 0.75;
}
.audio-play {
font-size: 18px !important;
}
.audio-progress-container {
flex: 1 1 auto;
min-width: 48px;
display: flex;
align-items: center;
}
/* The input itself is just a transparent hit area; the visible bar is the track below */
.audio-progress {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 14px;
margin: 0;
padding: 0;
background: transparent;
cursor: pointer;
}
/* Track (separate rules: a browser drops the whole rule if it dislikes one selector) */
.audio-progress::-webkit-slider-runnable-track {
height: 5px;
border-radius: 5px;
background: #4F4F4F;
}
.audio-progress::-moz-range-track {
height: 5px;
border-radius: 5px;
background: #4F4F4F;
}
/* Thumb: same colour in both browsers */
.audio-progress::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
margin-top: -4.5px; /* centres the 14px thumb on the 5px track in Chromium */
border: none;
border-radius: 50%;
background: #A89797;
cursor: pointer;
}
.audio-progress::-moz-range-thumb {
width: 14px;
height: 14px;
border: none;
border-radius: 50%;
background: #A89797;
cursor: pointer;
}
.audio-time {
font-size: 13px;
white-space: nowrap;
color: #4F4F4F;
}
.audio-volume {
font-size: 16px !important;
}
/* Small screens: keep the progress bar, just tighten the spacing */
@media (max-width: 600px) {
.custom-audio-player {
gap: 8px;
padding: 0 10px;
}
.audio-time {
font-size: 12px;
}
}
/* =====================================================================
10. MINECRAFT STATUS CARD — ULTRA COMPACT / NEUTRAL
===================================================================== */
.mc-status {
--mc-pad: 12px;
--ink: #262626;
--muted: #737373;
--line: #e5e5e5;
--surface: #ffffff;
--surface-soft: #f7f7f7;
--green: #25834a;
--red: #c83d43;
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
grid-template-areas:
"icon info"
"icon main";
align-items: center;
justify-items: stretch;
column-gap: 10px;
row-gap: 5px;
width: 100%;
max-width: 540px;
box-sizing: border-box;
margin: 12px auto;
padding: var(--mc-pad) 42px var(--mc-pad) var(--mc-pad);
background: var(--surface);
color: var(--ink);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 2px 6px rgb(0 0 0 / 4%);
font-family: var(--fedo-font);
position: relative;
}
/* Preserve the existing wrapper */
.mc-side {
display: contents;
}
/* Compact information layout */
.mc-head {
grid-area: info;
justify-self: start;
}
.mc-players {
grid-area: players;
}
.mc-icon {
grid-area: icon;
}
.mc-main {
grid-area: main;
justify-self: stretch;
align-self: center;
}
/* Status and player indicators */
.mc-head,
.mc-players {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
width: fit-content;
max-width: 100%;
box-sizing: border-box;
padding: 5px 8px;
border-radius: 6px;
background: var(--surface-soft);
border: 1px solid var(--line);
font-size: .75rem;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
cursor: default;
}
.mc-dot {
width: 7px;
height: 7px;
flex: 0 0 7px;
border-radius: 50%;
background: #999999;
}
.mc-status.is-online .mc-dot {
background: var(--green);
animation: mcpulse 2s infinite;
}
.mc-status.is-offline .mc-dot {
background: var(--red);
animation: none;
}
.mc-status.is-online .mc-head {
color: var(--green);
background: #f4f8f5;
border-color: #dce9df;
}
.mc-status.is-offline .mc-head {
color: var(--red);
background: #fcf5f5;
border-color: #eedddd;
}
.mc-players {
font-weight: 700;
}
.mc-players::after {
content: " players";
color: var(--muted);
font-weight: 400;
}
/* Status pulse */
@keyframes mcpulse {
0% {
box-shadow: 0 0 0 0 rgb(37 131 74 / 30%);
}
100% {
box-shadow: 0 0 0 6px rgb(37 131 74 / 0%);
}
}
/* Small square server logo */
.mc-icon {
width: 48px;
height: 48px;
box-sizing: border-box;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-soft);
border: 1px solid var(--line);
border-radius: 9px;
font-size: 1.5rem;
}
.mc-icon img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
image-rendering: pixelated;
}
/* Server address */
.mc-main {
min-width: 0;
container-type: inline-size;
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
border-radius: 5px;
outline-offset: 4px;
}
.mc-addr {
font-family: var(--fedo-font);
font-size: clamp(1rem, 4.5cqw, 1.5rem);
font-weight: 750;
line-height: 1.2;
letter-spacing: -.025em;
color: var(--ink);
overflow-wrap: anywhere;
white-space: normal;
transition: color .15s ease;
}
.mc-main:hover .mc-addr {
color: #555555;
}
.mc-main:active .mc-addr {
opacity: .8;
}
.mc-main:focus-visible {
outline: 2px solid #737373;
}
/* Message of the day */
.mc-motd {
margin-top: 3px;
color: var(--muted);
font-size: .78rem;
line-height: 1.4;
white-space: pre-line;
overflow-wrap: anywhere;
}
.mc-motd:empty {
display: none;
}
/* External link button */
.mc-open {
position: absolute;
top: 8px;
right: 8px;
z-index: 2;
}
.mc-open a {
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
box-sizing: border-box;
border-radius: 7px;
color: var(--muted);
background: transparent;
border: 1px solid transparent;
text-decoration: none !important;
-webkit-tap-highlight-color: transparent;
transition: background .15s ease, color .15s ease;
}
.mc-open a:hover,
.mc-open a:focus-visible {
color: var(--ink);
background: var(--surface-soft);
border-color: var(--line);
}
.mc-open a:focus-visible {
outline: 2px solid #737373;
outline-offset: 2px;
}
.mc-open-icon {
display: block;
width: 14px;
height: 14px;
background-color: currentColor;
-webkit-mask: var(--mc-ext) center / contain no-repeat;
mask: var(--mc-ext) center / contain no-repeat;
--mc-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}
/* Mobile layout */
@media (max-width: 640px) {
.mc-status {
--mc-pad: 10px;
grid-template-columns: 42px minmax(0, 1fr);
grid-template-areas:
"icon info"
"icon main";
column-gap: 9px;
row-gap: 4px;
max-width: 100%;
margin: 10px auto;
padding-right: 38px;
border-radius: 10px;
}
.mc-icon {
width: 42px;
height: 42px;
border-radius: 8px;
}
.mc-head,
.mc-players {
padding: 4px 7px;
font-size: .7rem;
}
.mc-main {
margin-top: 0;
}
.mc-addr {
font-size: clamp(1rem, 5cqw, 1.35rem);
}
.mc-motd {
margin-top: 2px;
font-size: .74rem;
}
.mc-open {
top: 6px;
right: 6px;
}
.mc-open a {
width: 24px;
height: 24px;
}
/* Preserve existing phone visibility behavior */
.mc-status:not(.is-offline) {
display: none;
}
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
.mc-dot {
animation: none !important;
}
.mc-addr,
.mc-open a {
transition: none !important;
}
}
/* =====================================================================
11. PODCAST CAROUSEL
===================================================================== */
.pc-podcast{
--ink:#26231f;
--muted:#6f6a62;
width:calc(100% - 24px);
max-width:740px;
box-sizing:border-box;
margin:24px auto;
color:var(--ink);
font-family:var(--fedo-font);
}
.pc-deck{
display:grid;
padding-bottom:30px;
touch-action:pan-y;
}
.pc-deck:empty{
min-height:180px;
background:linear-gradient(160deg,#f1efea,#e6e3dd);
border:1px solid #d8d4cc;
border-radius:24px;
box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
}
.pc-card{
grid-area:1/1;
position:relative;
box-sizing:border-box;
min-width:0;
display:grid;
grid-template-columns:auto minmax(0,1fr);
align-items:center;
gap:24px;
padding:28px;
background:linear-gradient(160deg,#f1efea,#e6e3dd);
border:1px solid #d8d4cc;
border-radius:24px;
box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
transform-origin:50% 100%;
will-change:transform;
transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .45s;
}
.pc-ghost{
pointer-events:none;
}
.pc-card[data-pos="0"]{z-index:3}
.pc-card[data-pos="1"]{z-index:2;transform:translateY(14px) scale(.95);filter:brightness(.975)}
.pc-card[data-pos="2"]{z-index:1;transform:translateY(28px) scale(.9);filter:brightness(.95)}
.pc-cover{
width:120px;
height:120px;
border-radius:22px;
overflow:hidden;
background:#ddd9d2;
border:1px solid #cfcac2;
box-shadow:0 4px 12px rgba(40,30,20,.12);
display:flex;
align-items:center;
justify-content:center;
font-size:2.2rem;
}
.pc-cover img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}
.pc-body{
min-width:0;
padding-right:32px;
display:flex;
flex-direction:column;
align-items:flex-start;
gap:10px;
}
.pc-meta{
display:flex;
flex-wrap:wrap;
gap:8px;
}
.pc-pill{
display:inline-flex;
align-items:center;
padding:6px 12px;
border-radius:999px;
background:rgba(255,255,255,.6);
border:1px solid #dad6ce;
font-size:.8rem;
font-weight:600;
line-height:1;
color:var(--muted);
white-space:nowrap;
}
.pc-pill-strong{
color:var(--ink);
font-weight:700;
}
.pc-title{
font-weight:800;
font-size:clamp(1.15rem,3.4vw,1.6rem);
line-height:1.15;
letter-spacing:-.01em;
overflow-wrap:anywhere;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.pc-title a{
color:inherit!important;
text-decoration:none!important;
transition:color .15s;
}
.pc-title a:hover{
color:#3f7a35!important;
}
.pc-desc{
margin:0;
font-size:.92rem;
line-height:1.4;
color:var(--muted);
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.pc-desc:empty{
display:none;
}
/* arrows + dots */
.pc-nav{
display:flex;
justify-content:center;
align-items:center;
gap:14px;
}
.pc-nav:empty{
display:none;
}
.pc-btn{
width:36px;
height:36px;
padding:0;
border-radius:50%;
border:1px solid #dad6ce;
background:rgba(255,255,255,.6);
color:var(--muted);
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:background .15s,color .15s;
-webkit-tap-highlight-color:transparent;
}
.pc-btn:hover,
.pc-btn:focus-visible{
background:#fff;
color:#3f7a35;
}
.pc-btn svg{
width:18px;
height:18px;
}
.pc-dots{
display:flex;
align-items:center;
gap:7px;
}
.pc-dot{
width:8px;
height:8px;
padding:0;
border:0;
border-radius:99px;
background:#cbc6bd;
cursor:pointer;
transition:width .25s,background .25s;
}
.pc-dot[aria-current="true"]{
width:22px;
background:var(--ink);
}
@media(max-width:640px){
.pc-podcast{margin:16px auto}
.pc-card{gap:14px;padding:18px;border-radius:20px}
.pc-cover{width:84px;height:84px;border-radius:18px;font-size:1.8rem}
.pc-body{padding-right:34px;gap:8px}
.pc-title{font-size:1.05rem}
.pc-desc{font-size:.85rem}
.pc-meta{display:none}
}