MediaWiki:Portal.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
.portal-header { | .portal-header { | ||
background: var( -- | background: var( --border-color-base ); | ||
clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) ); | clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) ); | ||
padding: | padding: 1px; | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
} | |||
/* All direct children of header get the card background */ | |||
.portal-header-top, | |||
.portal-stats-bar { | |||
background: var( --background2 ); | |||
margin: 0; | |||
} | |||
/* First child gets top padding, last gets bottom */ | |||
.portal-header-top { | |||
padding: 13px 17px 0; | |||
} | |||
.portal-stats-bar { | |||
padding: 10px 17px 13px; | |||
} | } | ||
| Line 191: | Line 206: | ||
.portal-widget { | .portal-widget { | ||
background: var( -- | /* Gold border effect: outer clip-path is gold, inner content sits on --background2. | ||
1px gap between outer polygon and inner content creates the border illusion. */ | |||
background: var( --border-color-base ); | |||
clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) ); | clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) ); | ||
overflow: visible; | overflow: visible; | ||
padding: 1px; | |||
} | |||
.portal-widget > * { | |||
/* Reset background on direct children so the gold wrapper shows as border */ | |||
position: relative; | |||
z-index: 0; | |||
} | |||
/* Inner background layer that fills the widget minus the 1px gold edge */ | |||
.portal-widget-head { | |||
/* Already has its own background — override to use dark header color */ | |||
background: var( --color-surface-2--active ); | |||
margin: 0; | |||
} | |||
.portal-widget-body, | |||
.portal-widget-foot { | |||
background: var( --background2 ); | |||
} | } | ||
| Line 360: | Line 395: | ||
.portal-related-tile { | .portal-related-tile { | ||
background: var( -- | /* Gold border: tile background is gold, the <a> inside fills with dark bg */ | ||
background: var( --border-color-base ); | |||
clip-path: polygon( 0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px) ); | clip-path: polygon( 0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px) ); | ||
padding: | padding: 1px; | ||
font-size: 0.8em; | font-size: 0.8em; | ||
min-height: 60px; | min-height: 60px; | ||
transition: background 0.15s; | |||
} | |||
/* The Lua module wraps tile content in an <a> — fill it with dark background */ | |||
.portal-related-tile a, | |||
.portal-related-tile > div { | |||
display: block; | |||
background: var( --background3 ); | |||
padding: 7px 9px; | |||
min-height: 58px; | |||
text-decoration: none; | |||
} | |||
.portal-related-tile:hover { | |||
background: var( --color-primary ); | |||
} | |||
.portal-related-tile:hover a, | |||
.portal-related-tile:hover > div { | |||
background: var( --color-surface-2--hover ); | |||
} | } | ||
| Line 809: | Line 863: | ||
display: block; | display: block; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
/* Gold border via background layering — outer is gold, inner fills with card bg */ | |||
background: var( --border-color-base ); | |||
clip-path: polygon( 0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px) ); | clip-path: polygon( 0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px) ); | ||
padding: 1px; | |||
overflow: visible; | overflow: visible; | ||
transition: background 0.15s, transform 0.15s; | |||
transition: | |||
} | } | ||
.portal-char-card a:hover { | .portal-char-card a:hover { | ||
background: var( --color-primary--hover ); | |||
transform: translateY( -2px ); | transform: translateY( -2px ); | ||
} | } | ||
Revision as of 02:16, 16 April 2026
/*
* MediaWiki:Portal.css — BattlestarWiki
*
* Portal-specific components that extend the base portal styles in
* MediaWiki:Common.css. Uses the same design tokens and aesthetic as
* MediaWiki:Citizen.css (bsw- classes) — clip-path corners, background
* layering (--background3/2/1), yellow primary, gold borders.
*
* Loaded via MediaWiki:Common.js → mw.loader.load()
*/
/* ── Clip-path shorthand (matches bsw-card pattern) ─────────────── */
/* Used throughout — same polygon as .bsw-card, .bsw-portal, etc. */
/* ─────────────────────────────────────────────────────────────
PAGE SHELL
───────────────────────────────────────────────────────────── */
.portal-page {
max-width: 1100px;
margin: 0 auto;
background: var( --background3 );
color: var( --color-base );
}
/* ─────────────────────────────────────────────────────────────
HEADER (title · badge · breadcrumb · stats bar)
───────────────────────────────────────────────────────────── */
.portal-header {
background: var( --border-color-base );
clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) );
padding: 1px;
margin-bottom: 12px;
}
/* All direct children of header get the card background */
.portal-header-top,
.portal-stats-bar {
background: var( --background2 );
margin: 0;
}
/* First child gets top padding, last gets bottom */
.portal-header-top {
padding: 13px 17px 0;
}
.portal-stats-bar {
padding: 10px 17px 13px;
}
.portal-header-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
}
.portal-title {
font-size: 1.3em;
font-weight: 600;
line-height: 1.3;
color: var( --color-primary );
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.portal-badge {
font-size: 0.65em;
font-weight: 500;
padding: 2px 9px;
border-radius: 999px;
border: 1px solid var( --border-color-base--lighter );
color: var( --color-base--subtle );
background: var( --background3 );
vertical-align: middle;
}
.portal-breadcrumb {
font-size: 0.8em;
color: var( --color-base--subtle );
margin-top: 3px;
}
.portal-header-links {
font-size: 0.8em;
color: var( --color-link );
white-space: nowrap;
padding-top: 4px;
}
/* Stats bar */
.portal-stats-bar {
display: flex;
gap: 20px;
flex-wrap: wrap;
border-top: 1px solid var( --border-color-base );
padding-top: 10px;
}
.portal-stat {
text-align: center;
min-width: 50px;
}
.portal-stat-num {
font-size: 1.25em;
font-weight: 600;
line-height: 1.2;
color: var( --color-primary );
}
.portal-stat-label {
font-size: 0.72em;
color: var( --color-base--subtle );
margin-top: 1px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ─────────────────────────────────────────────────────────────
SERIES NAVIGATION PILLS
───────────────────────────────────────────────────────────── */
.portal-series-nav {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-bottom: 12px;
align-items: center;
}
.portal-series-pill {
display: inline-block;
font-size: 0.78em;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid var( --border-color-base--lighter );
color: var( --color-base--subtle );
background: var( --background3 );
cursor: pointer;
text-decoration: none !important;
white-space: nowrap;
transition: background 0.15s, border-color 0.15s;
}
.portal-series-pill:hover {
border-color: var( --border-color-base );
background: var( --background-color-quiet--hover );
color: var( --color-base );
}
.portal-series-pill--active {
border-color: var( --border-color-base );
background: var( --background-color-quiet--hover );
color: var( --color-primary );
font-weight: 600;
cursor: default;
}
.portal-series-pill--jump {
border-style: dashed;
}
.portal-series-pill-sep {
flex: 0 0 8px;
}
.portal-series-nav a {
color: inherit;
text-decoration: none;
}
/* ─────────────────────────────────────────────────────────────
MAIN TWO-COLUMN GRID
───────────────────────────────────────────────────────────── */
.portal-main-grid {
display: grid;
grid-template-columns: 1fr 270px;
gap: 12px;
align-items: start;
}
@media screen and ( max-width: 800px ) {
.portal-main-grid {
grid-template-columns: 1fr;
}
}
.portal-main-col,
.portal-sidebar {
display: flex;
flex-direction: column;
gap: 12px;
}
/* ─────────────────────────────────────────────────────────────
WIDGET CARD (matches bsw-card pattern)
───────────────────────────────────────────────────────────── */
.portal-widget {
/* Gold border effect: outer clip-path is gold, inner content sits on --background2.
1px gap between outer polygon and inner content creates the border illusion. */
background: var( --border-color-base );
clip-path: polygon( 0 10px, 10px 0, calc(100% - 8px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px) );
overflow: visible;
padding: 1px;
}
.portal-widget > * {
/* Reset background on direct children so the gold wrapper shows as border */
position: relative;
z-index: 0;
}
/* Inner background layer that fills the widget minus the 1px gold edge */
.portal-widget-head {
/* Already has its own background — override to use dark header color */
background: var( --color-surface-2--active );
margin: 0;
}
.portal-widget-body,
.portal-widget-foot {
background: var( --background2 );
}
/* Widget head — matches bsw-card-hd exactly */
.portal-widget-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 12px;
border-bottom: 1px solid var( --border-color-base );
background: var( --color-surface-2--active );
gap: 8px;
flex-wrap: wrap;
}
.portal-widget-title {
font-size: 0.6875rem;
font-weight: 600;
color: var( --color-primary );
text-transform: uppercase;
letter-spacing: 0.08em;
}
.portal-widget-meta {
font-size: 0.6875rem;
color: var( --color-base--subtle );
flex: 1;
text-align: right;
}
.portal-widget-edit {
font-size: 0.6875rem;
color: var( --color-link );
white-space: nowrap;
font-weight: 400;
text-transform: none;
letter-spacing: 0;
}
.portal-widget-edit a {
color: var( --color-link );
text-decoration: none;
}
.portal-widget-edit a:hover {
color: var( --color-link--hover );
}
.portal-widget-foot {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 12px;
border-top: 1px solid var( --border-color-base );
font-size: 0.6875rem;
color: var( --color-base--subtle );
gap: 8px;
flex-wrap: wrap;
background: var( --background3 );
}
.portal-widget-foot a {
color: var( --color-link );
text-decoration: none;
}
.portal-widget-foot a:hover {
color: var( --color-link--hover );
}
.portal-widget-body {
padding: 10px 12px;
}
/* ─────────────────────────────────────────────────────────────
NEWEST ARTICLE (matches bsw-fa-* pattern from Main Page)
───────────────────────────────────────────────────────────── */
.portal-newest-inner {
display: flex;
gap: 0.75rem;
align-items: flex-start;
}
.portal-newest-title {
font-size: 0.9375rem;
font-weight: 600;
color: var( --color-base );
margin-bottom: 0.25rem;
line-height: 1.3;
}
.portal-newest-title a {
color: var( --color-link );
text-decoration: none;
}
.portal-newest-title a:hover {
color: var( --color-link--hover );
}
.portal-newest-meta {
font-size: 0.6875rem;
color: var( --color-base--subtle );
margin-bottom: 0.25rem;
}
/* ─────────────────────────────────────────────────────────────
COLONIAL CALENDAR
───────────────────────────────────────────────────────────── */
.portal-calendar-date {
font-size: 1.6em;
font-weight: 700;
line-height: 1.2;
color: var( --color-primary );
}
.portal-calendar-sub {
font-size: 0.75em;
color: var( --color-base--subtle );
margin-bottom: 10px;
}
.portal-calendar-events {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
}
.portal-calendar-event {
font-size: 0.82em;
color: var( --color-base );
padding: 6px 0;
border-bottom: 1px solid var( --border-color-base );
line-height: 1.5;
}
.portal-calendar-event:last-child {
border-bottom: none;
}
.portal-calendar-year {
font-weight: 600;
color: var( --color-primary );
margin-right: 2px;
}
.portal-calendar-none {
font-size: 0.82em;
color: var( --color-base--subtle );
}
/* ─────────────────────────────────────────────────────────────
RELATED PORTALS GRID (matches bsw-portal pattern)
───────────────────────────────────────────────────────────── */
.portal-related-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.portal-related-tile {
/* Gold border: tile background is gold, the <a> inside fills with dark bg */
background: var( --border-color-base );
clip-path: polygon( 0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px) );
padding: 1px;
font-size: 0.8em;
min-height: 60px;
transition: background 0.15s;
}
/* The Lua module wraps tile content in an <a> — fill it with dark background */
.portal-related-tile a,
.portal-related-tile > div {
display: block;
background: var( --background3 );
padding: 7px 9px;
min-height: 58px;
text-decoration: none;
}
.portal-related-tile:hover {
background: var( --color-primary );
}
.portal-related-tile:hover a,
.portal-related-tile:hover > div {
background: var( --color-surface-2--hover );
}
.portal-related-tile:hover {
background: var( --color-surface-2--hover );
}
.portal-related-title {
font-weight: 600;
font-size: 1em;
}
.portal-related-title a {
color: var( --color-link );
text-decoration: none;
}
.portal-related-title a:hover {
color: var( --color-link--hover );
}
.portal-related-sub {
font-size: 0.85em;
color: var( --color-base--subtle );
margin-top: 1px;
}
/* ─────────────────────────────────────────────────────────────
DYK
───────────────────────────────────────────────────────────── */
.portal-dyk-body li,
.portal-dyk-body p {
font-size: 0.8125em;
line-height: 1.65;
padding: 6px 0;
border-bottom: 1px solid var( --border-color-base );
margin: 0;
color: var( --color-base--subtle );
}
.portal-dyk-body li:last-child,
.portal-dyk-body p:last-child {
border-bottom: none;
}
/* ─────────────────────────────────────────────────────────────
ORPHANED ARTICLES
───────────────────────────────────────────────────────────── */
.portal-orphan-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.portal-orphan-chip {
font-size: 0.75em;
padding: 2px 8px;
border-radius: 999px;
border: 1px solid var( --border-color-base );
color: var( --color-primary );
background: var( --background3 );
white-space: nowrap;
clip-path: none;
}
/* ─────────────────────────────────────────────────────────────
BROWSE BY TOPIC BAR
───────────────────────────────────────────────────────────── */
.portal-browse-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 2px 0;
}
.portal-browse-topic {
display: inline-block;
}
.portal-browse-topic a {
display: inline-block;
font-size: 0.8125rem;
font-weight: 500;
padding: 3px 10px;
border-radius: 999px;
border: 1px solid var( --border-color-base--lighter );
color: var( --color-base ) !important;
background: var( --background3 );
text-decoration: none !important;
transition: background 0.15s, border-color 0.15s, color 0.15s;
white-space: nowrap;
}
.portal-browse-topic a:hover {
background: var( --background-color-quiet--hover );
border-color: var( --border-color-base );
color: var( --color-primary ) !important;
}
/* ─────────────────────────────────────────────────────────────
PODCAST TEASER
───────────────────────────────────────────────────────────── */
.portal-podcast-teaser {
font-size: 0.8125rem;
color: var( --color-base--subtle );
line-height: 1.5;
}
.portal-podcast-teaser a {
display: inline-block;
margin-top: 6px;
font-weight: 500;
color: var( --color-link );
}
.portal-podcast-teaser a:hover {
color: var( --color-link--hover );
}
/* ─────────────────────────────────────────────────────────────
SUBPORTALS
───────────────────────────────────────────────────────────── */
.portal-subportals {
display: grid;
grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
gap: 12px;
}
.portal-subportals-heading {
font-size: 0.6875rem;
font-weight: 600;
color: var( --color-primary );
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 6px;
border-bottom: 1px solid var( --border-color-base );
padding-bottom: 4px;
}
.portal-subportals-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 4px;
font-size: 0.8125em;
}
.portal-subportals-list li {
position: relative;
padding-left: 12px;
}
.portal-subportals-list li::before {
content: '›';
position: absolute;
left: 0;
color: var( --color-primary );
}
.portal-subportals-list a {
color: var( --color-link );
text-decoration: none;
}
.portal-subportals-list a:hover {
color: var( --color-link--hover );
}
/* ─────────────────────────────────────────────────────────────
LOADING SPINNER (matches bsw-loading / bsw-spinner exactly)
───────────────────────────────────────────────────────────── */
.portal-loading {
padding: 1.5rem 1rem;
text-align: center;
color: var( --color-base--subtle );
font-size: 0.8125rem;
}
.portal-spinner {
width: 22px;
height: 22px;
border: 2px solid var( --border-color-base--lighter );
border-top-color: var( --color-primary );
border-radius: 50%;
animation: portal-spin 0.8s linear infinite;
margin: 0 auto 0.75rem;
}
@keyframes portal-spin {
to { transform: rotate( 360deg ); }
}
/* ─────────────────────────────────────────────────────────────
PORTAL HERO SLIDER — mirrors bsw-hero / bsw-slide from Main Page
───────────────────────────────────────────────────────────── */
.portal-hero {
position: relative;
height: 420px;
overflow: hidden;
background: var( --background3 );
border-bottom: 1px solid var( --border-color-base );
margin-bottom: 12px;
}
/* Individual slide — same as bsw-slide */
.portal-slide {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.8s ease;
display: flex;
align-items: flex-end;
}
.portal-slide.portal-active {
opacity: 1;
}
/* Background container — same as bsw-slide-bg */
.portal-slide-bg {
position: absolute;
inset: 0;
overflow: hidden;
}
/* Blurred fill — same as bsw-slide-bg-blur */
.portal-slide-bg-blur {
position: absolute;
inset: -20px;
width: calc( 100% + 40px );
height: calc( 100% + 40px );
object-fit: cover;
object-position: center center;
filter: blur( 24px ) brightness( 0.45 ) saturate( 1.4 );
display: block;
clip-path: none !important;
transform: scale( 1.05 );
}
/* Sharp foreground — same as bsw-slide-bg-img */
.portal-slide-bg-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center center;
display: block;
clip-path: none !important;
}
/* Gradient overlay — same as bsw-slide-overlay */
.portal-slide-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to top,
var( --background3 ) 0%,
rgba( 0, 0, 0, 0.35 ) 55%,
transparent 100%
);
z-index: 1;
}
/* Content — same as bsw-slide-content */
.portal-slide-content {
position: relative;
z-index: 2;
padding: 1rem 1.25rem;
width: 100%;
}
/* Badge — same as bsw-slide-badge */
.portal-slide-badge {
display: inline-flex;
align-items: center;
gap: 5px;
background: var( --background-color-quiet--hover );
border: 1px solid var( --border-color-base--lighter );
border-radius: 12px;
padding: 2px 9px;
margin-bottom: 0.375rem;
}
.portal-slide-badge-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var( --color-primary );
flex-shrink: 0;
}
.portal-slide-badge span {
font-size: 0.6875rem;
color: var( --color-primary--hover );
text-transform: uppercase;
letter-spacing: 0.08em;
}
/* Title — same as bsw-slide-title */
.portal-slide-title {
font-size: 1.375rem;
font-weight: 600;
color: var( --color-base );
margin-bottom: 0.25rem;
line-height: 1.2;
}
.portal-slide-title a {
color: var( --color-base );
text-decoration: none;
}
.portal-slide-title a:hover {
color: var( --color-primary--hover );
}
/* Description — same as bsw-slide-desc */
.portal-slide-desc {
font-size: 0.8125rem;
color: var( --color-base--subtle );
max-width: 560px;
line-height: 1.55;
}
/* Dots — same as bsw-hero-dots */
.portal-hero-dots {
position: absolute;
top: 0.75rem;
right: 0.75rem;
display: flex;
gap: 5px;
z-index: 10;
}
.portal-hero-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var( --background-color-icon );
cursor: pointer;
transition: background 0.2s;
display: inline-block;
}
.portal-hero-dot.is-active {
background: var( --color-primary );
}
/* Nav buttons — same as bsw-hero-nav / bsw-hero-btn */
.portal-hero-nav {
position: absolute;
bottom: 0.75rem;
right: 0.75rem;
display: flex;
gap: 5px;
z-index: 10;
}
.portal-hero-btn {
width: 24px;
height: 24px;
border-radius: 50%;
background: var( --background-color-quiet--hover );
border: 1px solid var( --border-color-base--lighter );
color: var( --color-primary );
font-size: 0.8125rem;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
transition: background 0.15s;
user-select: none;
}
.portal-hero-btn:hover {
background: var( --background-color-quiet--active );
color: var( --color-primary--hover );
}
/* Browse gallery link — top-right */
.portal-hero-footer {
position: absolute;
top: 10px;
right: 12px;
z-index: 11;
display: flex;
gap: 8px;
align-items: center;
font-size: 0.72rem;
}
.portal-hero-footer a {
color: var( --color-primary ) !important;
text-decoration: none !important;
background: var( --background-color-quiet--hover );
padding: 3px 9px;
border-radius: 999px;
border: 1px solid var( --border-color-base--lighter );
transition: color 0.15s, background 0.15s;
}
.portal-hero-footer a:hover {
color: var( --color-primary--hover ) !important;
background: var( --background-color-quiet--active );
}
@media screen and ( max-width: 600px ) {
.portal-hero { height: 280px; }
.portal-slide-title { font-size: 1rem; }
.portal-slide-desc { font-size: 0.75rem; }
}
/* ─────────────────────────────────────────────────────────────
CHARACTER GRID
───────────────────────────────────────────────────────────── */
.portal-char-grid {
display: grid;
grid-template-columns: repeat( auto-fill, minmax( 90px, 1fr ) );
gap: 8px;
align-items: start;
}
.portal-char-card {
/* MW wraps [[Link|...]] in <a>, so we style the card container */
}
.portal-char-card a {
display: block;
text-decoration: none !important;
/* Gold border via background layering — outer is gold, inner fills with card bg */
background: var( --border-color-base );
clip-path: polygon( 0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px) );
padding: 1px;
overflow: visible;
transition: background 0.15s, transform 0.15s;
}
.portal-char-card a:hover {
background: var( --color-primary--hover );
transform: translateY( -2px );
}
/* frameless File: MW wraps in <span typeof="mw:File/Frameless"><a class="mw-file-description"><img></a></span>
Target all layers to enforce fixed equal height */
.portal-char-card span[typeof~="mw:File/Frameless"] {
display: block;
width: 100%;
height: 130px;
overflow: hidden;
line-height: 0;
}
.portal-char-card .mw-file-description {
display: block;
width: 100%;
height: 130px;
overflow: hidden;
background: var( --color-surface-2 );
line-height: 0;
}
.portal-char-card .mw-file-element {
width: 100% !important;
height: 130px !important;
object-fit: cover !important;
object-position: top center !important;
display: block !important;
float: none !important;
margin: 0 !important;
}
.portal-char-name {
font-size: var( --font-size-x-small, 0.72em );
color: var( --color-base );
text-align: center;
padding: 4px 4px 5px;
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ─────────────────────────────────────────────────────────────
FEATURED EPISODE SLIDER NAV (in widget head)
───────────────────────────────────────────────────────────── */
.portal-featured-nav {
display: flex;
align-items: center;
gap: 5px;
}
.portal-featured-prev,
.portal-featured-next {
cursor: pointer;
font-size: 1em;
color: var( --color-base );
padding: 0 3px;
user-select: none;
opacity: 0.7;
transition: opacity 0.15s;
}
.portal-featured-prev:hover,
.portal-featured-next:hover {
opacity: 1;
}
.portal-featured-dots {
display: flex;
gap: 4px;
align-items: center;
}
.portal-featured-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var( --border-color-base );
cursor: pointer;
transition: background 0.2s, transform 0.2s;
}
.portal-featured-dot.is-active {
background: var( --color-progressive, #3366cc );
transform: scale( 1.3 );
}
/* ─────────────────────────────────────────────────────────────
BROWSE BY TOPIC BAR
───────────────────────────────────────────────────────────── */
.portal-browse-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 2px 0;
}
.portal-browse-topic {
display: inline-block;
}
.portal-browse-topic a {
display: inline-block;
font-size: var( --font-size-small, 0.8125rem );
font-weight: 500;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid var( --border-color-base );
color: var( --color-base ) !important;
background: var( --color-surface-2 );
text-decoration: none !important;
transition: background 0.15s, border-color 0.15s, color 0.15s;
white-space: nowrap;
}
.portal-browse-topic a:hover {
background: var( --color-surface-3 );
border-color: var( --border-color-interactive );
color: var( --color-emphasized ) !important;
}
/* ─────────────────────────────────────────────────────────────
PODCAST TEASER
───────────────────────────────────────────────────────────── */
.portal-podcast-teaser {
font-size: var( --font-size-small, 0.8125rem );
color: var( --color-base--subtle );
line-height: 1.5;
}
.portal-podcast-teaser a {
display: inline-block;
margin-top: 6px;
font-weight: 500;
}