MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (126 intermediate revisions by the same user not shown) | |||
| Line 167: | Line 167: | ||
.ooo-infobox-tabwrap .tabber__header { | .ooo-infobox-tabwrap .tabber__header { | ||
border-bottom: 0 !important; | border-bottom:0 !important; | ||
box-shadow: none !important; | box-shadow:none !important; | ||
margin-bottom:10px; | |||
} | } | ||
.ooo-infobox-tabwrap .tabber__tabs | .ooo-infobox-tabwrap .tabber__tabs { | ||
margin-bottom: 12px !important; | |||
} | } | ||
.ooo-infobox-tabwrap .tabber__tab--active { | .ooo-infobox-tabwrap .tabber__tab--active { | ||
box-shadow: none !important; | box-shadow:none !important; | ||
margin-bottom: 0 !important; | margin-bottom:0 !important; | ||
border-color:rgba(245,196,0,0.8); | |||
background:rgba(245,196,0,0.10); | |||
} | } | ||
.ooo-infobox-tabwrap .tabber__tabs { | .ooo-infobox-tabwrap .tabber__tabs { | ||
margin-bottom: | display:flex; | ||
gap:8px; | |||
margin-bottom:14px !important; | |||
} | } | ||
| Line 419: | Line 424: | ||
rgba(255,196,0,0.3) | rgba(255,196,0,0.3) | ||
); | ); | ||
} | |||
/* ========================================================= | |||
OOO CARD MOBILE TEXT | |||
========================================================= */ | |||
@media (max-width: 700px) { | |||
.ooo-card { | |||
padding: 16px; | |||
} | |||
.ooo-card h2 { | |||
font-size: 1.35rem; | |||
line-height: 1.25; | |||
} | |||
.ooo-card h3 { | |||
font-size: 1.15rem; | |||
line-height: 1.25; | |||
} | |||
.ooo-card p, | |||
.ooo-card li { | |||
font-size: 0.95rem; | |||
line-height: 1.45; | |||
} | |||
/* prevent text overflow */ | |||
.ooo-card { | |||
word-break: break-word; | |||
overflow-wrap: anywhere; | |||
} | |||
} | } | ||
| Line 438: | Line 477: | ||
/* Brand color, but theme-safe */ | /* Brand color, but theme-safe */ | ||
color: var(--ooo-accent); | color: var(--ooo-accent); | ||
clear: both; | |||
} | } | ||
| Line 593: | Line 634: | ||
/* ========================================================= | /* ========================================================= | ||
OOO INTRO ( | OOO INTRO (Neutral, Theme-Safe) | ||
========================================================= */ | ========================================================= */ | ||
.ooo-intro { | .ooo-intro { | ||
margin: 30px 0 40px 0; | margin: 30px 0 40px 0; | ||
/* Explicitly remove any inherited background */ | |||
background: none !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | } | ||
| Line 607: | Line 653: | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
color: var(--ooo-accent) !important; | color: var(--ooo-accent) !important; | ||
} | } | ||
| Line 615: | Line 660: | ||
font-size: 1.05rem; | font-size: 1.05rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
margin-bottom: | margin-bottom: 18px; | ||
opacity: 0.95; | opacity: 0.95; | ||
} | } | ||
/* Divider | /* Divider */ | ||
.ooo-intro__divider { | .ooo-intro__divider { | ||
height: 3px; | height: 3px; | ||
width: 100%; | width: 100%; | ||
background: var(--ooo-accent) | background: linear-gradient( | ||
to right, | |||
var(--ooo-accent), | |||
rgba(245,196,0,0.2) | |||
); | |||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
OOO FAQ SYSTEM (Stable | OOO FAQ SYSTEM – Clean Industrial (Stable) | ||
========================================================= */ | ========================================================= */ | ||
.ooo-faq { | .ooo-faq { | ||
margin: | margin: 50px 0; | ||
} | } | ||
/* | /* ========================================================= | ||
FAQ CARD – Balanced Light & Dark | |||
========================================================= */ | |||
.ooo-faq__item { | .ooo-faq__item { | ||
display: | position: relative; | ||
border-bottom: 1px solid var(--ooo-border); | border-radius: 10px; | ||
padding: 14px 0; | margin-bottom: 18px; | ||
overflow: hidden; | |||
transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease; | |||
/* Light theme */ | |||
border: 1px solid rgba(0,0,0,0.08); | |||
background: linear-gradient( | |||
to bottom, | |||
rgba(245,196,0,0.04), | |||
rgba(245,196,0,0.015) | |||
); | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.04); | |||
} | |||
/* Light theme hover */ | |||
.ooo-faq__item:hover { | |||
border-color: rgba(245,196,0,0.35); | |||
box-shadow: 0 3px 8px rgba(0,0,0,0.06); | |||
} | |||
/* Dark theme */ | |||
.skin-theme-clientpref-night .ooo-faq__item { | |||
background: linear-gradient( | |||
to bottom, | |||
rgba(245,196,0,0.10), | |||
rgba(245,196,0,0.05) | |||
); | |||
border-color: rgba(245,196,0,0.30); | |||
box-shadow: none; | |||
} | |||
/* ========================================================= | |||
QUESTION | |||
========================================================= */ | |||
.ooo-faq__question { | |||
position: relative; | |||
padding: 20px 70px 20px 22px; | |||
font-weight: 800; | |||
font-size: 1.15rem; | |||
cursor: pointer; | |||
color: var(--ooo-accent); | |||
transition: background 0.2s ease; | |||
} | |||
/* Left accent bar */ | |||
.ooo-faq__question::before { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
bottom: 0; | |||
width: 5px; | |||
background: var(--ooo-accent); | |||
} | |||
/* + / − toggle */ | |||
.ooo-faq__question::after { | |||
content: "+"; | |||
position: absolute; | |||
right: 22px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
font-size: 26px; | |||
font-weight: 900; | |||
color: var(--ooo-accent); | |||
transition: 0.2s ease; | |||
} | |||
/* When expanded */ | |||
.ooo-faq__item:not(.mw-collapsed) .ooo-faq__question::after { | |||
content: "−"; | |||
} | |||
/* Hover */ | |||
.ooo-faq__question:hover { | |||
background: rgba(0,0,0,0.03); | |||
} | |||
.skin-theme-clientpref-night .ooo-faq__question:hover { | |||
background: rgba(245,196,0,0.08); | |||
} | |||
/* ========================================================= | |||
ANSWER | |||
========================================================= */ | |||
.ooo-faq__answer { | |||
padding: 20px 22px; | |||
line-height: 1.7; | |||
font-size: 0.98rem; | |||
border-top: 1px solid rgba(0,0,0,0.06); | |||
} | |||
/* Dark theme answer border */ | |||
.skin-theme-clientpref-night .ooo-faq__answer { | |||
border-top: 1px solid rgba(245,196,0,0.2); | |||
} | |||
/* ========================================================= | |||
HIDE DEFAULT MW TOGGLE TEXT | |||
========================================================= */ | |||
.ooo-faq__item .mw-collapsible-toggle { | |||
position: absolute; | |||
inset: 0; | |||
opacity: 0; | |||
z-index: 5; | |||
cursor: pointer; | |||
} | |||
/* ========================================================= | |||
Fix FAQ styling inside Template namespace (documentation) | |||
========================================================= */ | |||
.ns-10 .ooo-faq__item { | |||
background: linear-gradient( | |||
to bottom, | |||
rgba(245,196,0,0.04), | |||
rgba(245,196,0,0.015) | |||
) !important; | |||
border: 1px solid rgba(0,0,0,0.08) !important; | |||
} | |||
.skin-theme-clientpref-night .ns-10 .ooo-faq__item { | |||
background: linear-gradient( | |||
to bottom, | |||
rgba(245,196,0,0.10), | |||
rgba(245,196,0,0.05) | |||
) !important; | |||
border-color: rgba(245,196,0,0.30) !important; | |||
} | |||
/* ========================================================= | |||
OOO TIP (Subtle Inline Callout) | |||
========================================================= */ | |||
.ooo-tip { | |||
margin: 18px 0; | |||
padding: 10px 14px; | |||
border-left: 4px solid var(--ooo-accent); | |||
border-radius: 6px; | |||
background: linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.06), | |||
transparent | |||
); | |||
font-size: 0.98rem; | |||
line-height: 1.6; | |||
} | |||
/* Tip title */ | |||
.ooo-tip strong { | |||
color: var(--ooo-accent); | |||
font-weight: 700; | |||
} | |||
/* Dark theme tuning */ | |||
.skin-theme-clientpref-night .ooo-tip { | |||
background: linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.14), | |||
transparent | |||
); | |||
} | |||
/* Prevent wiki paragraph backgrounds inside */ | |||
.ooo-tip p { | |||
margin: 0; | |||
background: transparent !important; | |||
} | |||
/* ========================================================= | |||
OOO STEP (Guide / Tutorial Step Block) | |||
========================================================= */ | |||
.ooo-step { | |||
margin: 26px 0; | |||
padding: 16px 18px; | |||
border-left: 5px solid var(--ooo-accent); | |||
border-radius: 6px; | |||
background: linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.06), | |||
transparent | |||
); | |||
} | |||
/* Header */ | |||
.ooo-step__title { | |||
font-weight: 800; | |||
font-size: 1.05rem; | |||
margin-bottom: 10px; | |||
color: var(--ooo-accent); | |||
} | |||
/* Step number */ | |||
.ooo-step__number { | |||
font-weight: 900; | |||
margin-right: 6px; | |||
} | |||
/* Layout container */ | |||
.ooo-step__body { | |||
display: flex; | |||
gap: 14px; | |||
align-items: flex-start; | |||
overflow: visible; | |||
} | |||
/* ========================================================= | |||
STEP IMAGE | |||
========================================================= */ | |||
.ooo-step__image { | |||
position: relative; | |||
flex-shrink: 0; | |||
} | |||
/* Thumbnail */ | |||
.ooo-step__image img { | |||
max-width: 140px; | |||
height: auto; | |||
border-radius: 4px; | |||
border: 1px solid rgba(0,0,0,0.15); | |||
cursor: zoom-in; | |||
transition: | |||
transform 0.2s ease, | |||
box-shadow 0.2s ease; | |||
} | |||
/* Hover zoom preview */ | |||
.ooo-step__image:hover img { | |||
transform: scale(2.2); | |||
position: relative; | |||
z-index: 50; | |||
box-shadow: 0 10px 24px rgba(0,0,0,0.35); | |||
} | |||
/* ========================================================= | |||
STEP TEXT | |||
========================================================= */ | |||
.ooo-step__content { | |||
line-height: 1.65; | |||
font-size: 0.98rem; | |||
} | |||
/* ========================================================= | |||
DARK MODE | |||
========================================================= */ | |||
.skin-theme-clientpref-night .ooo-step { | |||
background: linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.12), | |||
transparent | |||
); | |||
} | |||
.skin-theme-clientpref-night .ooo-step__image img { | |||
border-color: rgba(255,255,255,0.2); | |||
} | |||
/* ========================================================= | |||
MOBILE | |||
========================================================= */ | |||
@media (max-width: 700px) { | |||
.ooo-step__body { | |||
flex-direction: column; | |||
} | |||
.ooo-step__image img { | |||
max-width: 100%; | |||
} | |||
} | |||
/* ========================================================= | |||
OOO BUILD BOX (Category Infobox) | |||
========================================================= */ | |||
.ooo-buildbox { | |||
margin: 30px 0; | |||
padding: 0; | |||
border: none; | |||
background: none; | |||
} | |||
/* Title */ | |||
.ooo-buildbox__title { | |||
font-size: 1.25rem; | |||
font-weight: 800; | |||
margin-bottom: 10px; | |||
color: var(--ooo-accent); | |||
} | |||
/* Description */ | |||
.ooo-buildbox__desc { | |||
margin-bottom: 18px; | |||
line-height: 1.6; | |||
opacity: 0.9; | |||
} | |||
/* Tab spacing */ | |||
.ooo-buildbox .tabber { | |||
margin-top: 10px; | |||
} | |||
/* Remove extra tab borders */ | |||
.tabber__header { | |||
border-bottom:1px solid var(--ooo-border); | |||
margin-bottom:10px; | |||
} | |||
/* ========================================================= | |||
OOO MINI INFO CARD (Item preview) | |||
========================================================= */ | |||
.ooo-itemcard { | |||
border: 1px solid var(--ooo-border); | |||
border-radius: 8px; | |||
padding: 12px 14px; | |||
margin: 10px 0; | |||
background: var(--ooo-bg-block); | |||
display: flex; | |||
gap: 14px; | |||
align-items: center; | |||
} | |||
/* icon */ | |||
.ooo-itemcard__img img { | |||
width: 48px; | |||
height: 48px; | |||
object-fit: contain; | |||
} | |||
/* name */ | |||
.ooo-itemcard__name { | |||
font-weight: 700; | |||
color: var(--ooo-accent); | |||
} | |||
/* info text */ | |||
.ooo-itemcard__meta { | |||
font-size: 0.9rem; | |||
opacity: 0.85; | |||
} | |||
/* ========================================================= | |||
OOO BROWSER (Reusable left-list + right-details panel) | |||
Works for Buildings / Vehicles / Factory, etc. | |||
========================================================= */ | |||
.ooo-browser { | |||
display: flex; | |||
gap: 16px; /* smaller spacing between list and panel */ | |||
align-items: flex-start; | |||
margin-top: 14px; | |||
flex-wrap: wrap; /* allows responsive stacking */ | |||
} | |||
/* Left side list */ | |||
.ooo-browser__list { | |||
width: 240px; | |||
flex-shrink: 0; | |||
} | } | ||
/* | /* Item button */ | ||
.ooo- | .ooo-browser__item { | ||
display: block; | display: block; | ||
width: 100%; | |||
text-align: left; | |||
padding: 10px 12px; | |||
margin: 6px 0; | |||
border-radius: 10px; | |||
border: 1px solid var(--ooo-border); | |||
background: rgba(245,196,0,0.04); | |||
cursor: pointer; | cursor: pointer; | ||
font: inherit; | |||
font-weight: 700; | font-weight: 700; | ||
transition: 0.15s ease; | |||
position: relative; | position: relative; | ||
} | } | ||
/* | .ooo-browser__item:hover { | ||
.ooo- | border-color: rgba(245,196,0,0.55); | ||
background: rgba(245,196,0,0.07); | |||
} | |||
.ooo-browser__item.is-active { | |||
border-color: rgba(245,196,0,0.80); | |||
background: rgba(245,196,0,0.10); | |||
} | |||
/* Arrow indicator for active item */ | |||
.ooo-browser__item.is-active::after { | |||
content: "▶"; | |||
position: absolute; | |||
right: 10px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
font-size: 14px; | |||
color: var(--ooo-accent); | |||
} | |||
/* Optional small subtitle under item label */ | |||
.ooo-browser__item small { | |||
display: block; | |||
margin-top: 2px; | |||
font-weight: 600; | |||
opacity: 0.75; | |||
} | |||
/* Right side panel */ | |||
.ooo-browser__panel { | |||
flex: 1; | |||
border-left: 1px solid var(--ooo-border); | |||
padding-left: 24px; | |||
margin-left: 24px; | |||
box-sizing: border-box; | |||
} | |||
.ooo-browser__panel .ooo-extra, | |||
.ooo-browser__panel .ooo-extra2 { | |||
max-width: 420px; | |||
} | |||
.ooo-browser__panel .ooo-infobox { | |||
flex-shrink: 0; | |||
width: 300px; | |||
margin: 0; | |||
float: none; | |||
} | |||
/* Panels (each item content) */ | |||
.ooo-browser__info { | |||
display: none; | display: none; | ||
} | } | ||
/* | .ooo-browser__info.is-active { | ||
.ooo- | display: block; | ||
content: " | } | ||
/* Mobile: stack */ | |||
@media (max-width: 900px) { | |||
.ooo-browser { | |||
flex-direction: column; | |||
gap: 16px; | |||
} | |||
.ooo-browser__panel { | |||
border-left: none; | |||
padding-left: 0; | |||
border-top: 1px solid var(--ooo-border); | |||
padding-top: 16px; | |||
} | |||
} | |||
/* ========================================================= | |||
OOO BUILDING TABS | |||
========================================================= */ | |||
.tabber__tabs{ | |||
display:flex; | |||
gap:8px; | |||
margin-bottom:14px; | |||
} | |||
/* base tab */ | |||
.tabber__tab{ | |||
border:1px solid var(--ooo-border); | |||
background:rgba(245,196,0,0.04); | |||
transition:all .15s ease; | |||
} | |||
/* clickable element */ | |||
.tabber__tab a{ | |||
display:block; | |||
padding:8px 14px; | |||
font-weight:700; | |||
color:var(--color-base) !important; | |||
text-decoration:none !important; | |||
border-bottom:none !important; | |||
} | |||
/* remove wiki link colors */ | |||
.tabber__tab a:link, | |||
.tabber__tab a:visited, | |||
.tabber__tab a:hover, | |||
.tabber__tab a:active{ | |||
color:var(--color-base) !important; | |||
text-decoration:none !important; | |||
} | |||
/* hover */ | |||
.tabber__tab:hover{ | |||
border:2px solid rgba(245,196,0,0.75); | |||
background:rgba(245,196,0,0.12); | |||
} | |||
.tabber__tab:hover a{ | |||
padding:7px 13px; | |||
} | |||
/* active tab */ | |||
.tabber__tab[aria-selected="true"]{ | |||
border:2px solid rgba(245,196,0,0.95); | |||
background:rgba(245,196,0,0.18); | |||
} | |||
.tabber__tab[aria-selected="true"] a{ | |||
padding:7px 13px; | |||
} | |||
/* remove tabber blue indicator line */ | |||
.tabber__tab:after, | |||
.tabber__tab::after{ | |||
display:none !important; | |||
} | |||
/* ========================================================= | |||
FORCE STYLE TABBER TABS (override TabberNeue) | |||
========================================================= */ | |||
.tabber__header a, | |||
.tabber__header a:link, | |||
.tabber__header a:visited, | |||
.tabber__header a:hover, | |||
.tabber__header a:active{ | |||
color: var(--color-base) !important; | |||
text-decoration: none !important; | |||
} | |||
/* remove default active underline */ | |||
.tabber__header .tabber__tab::after{ | |||
display:none !important; | |||
} | |||
/* remove bottom highlight */ | |||
.tabber__header .tabber__tab{ | |||
border-bottom:none !important; | |||
} | |||
/* active tab */ | |||
.tabber__header .tabber__tab[aria-selected="true"]{ | |||
border:2px solid rgba(245,196,0,0.95) !important; | |||
background:rgba(245,196,0,0.18) !important; | |||
} | |||
/* hover */ | |||
.tabber__header .tabber__tab:hover{ | |||
border:2px solid rgba(245,196,0,0.75) !important; | |||
background:rgba(245,196,0,0.12) !important; | |||
} | |||
/* ========================================================= | |||
OOO INFOBOX VARIANT TABS (square style) | |||
========================================================= */ | |||
.ooo-infobox-tabwrap .tabber__tab{ | |||
border-radius:0 !important; | |||
} | |||
.ooo-infobox-tabwrap .tabber__tab > a{ | |||
border-radius:0 !important; | |||
} | |||
/* remove rounded active outline */ | |||
.ooo-infobox-tabwrap .tabber__tab[aria-selected="true"]{ | |||
border-radius:0 !important; | |||
} | |||
/* ========================================================= | |||
OOO ITEM PANEL LAYOUT (Reusable) | |||
========================================================= */ | |||
/* top row: infobox + description */ | |||
.ooo-item-top{ | |||
display:flex; | |||
gap:20px; /* gap between item list and infobox */ | |||
align-items:flex-start; | |||
} | |||
/* description beside infobox */ | |||
.ooo-item-description{ | |||
flex:1; | |||
max-width:460px; | |||
line-height:1.6; | |||
} | |||
/* bottom content area */ | |||
.ooo-item-body{ | |||
margin-top:20px; | |||
padding-top:18px; | |||
border-top:1px solid var(--ooo-border); | |||
max-width:540px; | |||
line-height:1.65; | |||
} | |||
/* prevent infobox shrinking */ | |||
.ooo-item-top .ooo-infobox{ | |||
flex-shrink:0; | |||
} | |||
/* notes block (optional) */ | |||
.ooo-item-notes{ | |||
margin-bottom:16px; | |||
padding:10px 14px; | |||
border-left:4px solid var(--ooo-accent); | |||
background:rgba(245,196,0,0.08); | |||
border-radius:4px; | |||
font-size:0.95rem; | |||
} | |||
/* ========================================================= | |||
OOO BROWSER STICKY ITEM LIST | |||
========================================================= */ | |||
.ooo-browser__list{ | |||
position: sticky; | |||
top: 80px; | |||
align-self: flex-start; | |||
} | |||
/* ========================================================= | |||
OOO EXTRA CONTENT | |||
========================================================= */ | |||
.ooo-extra { | |||
margin-top: 18px; | |||
font-size: 0.92rem; | |||
line-height: 1.55; | |||
max-width: 720px; | |||
} | |||
/* title */ | |||
.ooo-extra__title { | |||
margin-bottom: 6px; | |||
font-size: 0.85rem; | |||
font-weight: 800; | |||
letter-spacing: 0.3px; | |||
text-transform: uppercase; | |||
color: var(--ooo-accent); | |||
} | |||
/* text */ | |||
.ooo-extra p { | |||
margin: 0 0 0.6em 0; | |||
} | |||
.ooo-extra ul { | |||
margin: 0.3em 0 0.6em 1.2em; | |||
} | |||
/* ========================================================= | |||
OOO EXTRA BLOCK (Secondary Info Panel) | |||
========================================================= */ | |||
.ooo-extra2 { | |||
margin-top: 18px; | |||
padding: 12px 16px; | |||
border-left: 4px solid var(--ooo-accent); | |||
border-radius: 6px; | |||
/* base + gradient like other OOO blocks */ | |||
background: | |||
linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.08), | |||
rgba(245,196,0,0.02) | |||
); | |||
border: 1px solid rgba(245,196,0,0.18); | |||
font-size: 0.95rem; | |||
line-height: 1.6; | |||
max-width: 540px; | |||
} | |||
/* title */ | |||
.ooo-extra2__title { | |||
font-weight: 800; | |||
font-size: 0.9rem; | |||
margin-bottom: 6px; | |||
color: var(--ooo-accent); | |||
letter-spacing: 0.3px; | |||
text-transform: uppercase; | |||
} | |||
/* spacing */ | |||
.ooo-extra2 p { | |||
margin: 0 0 0.6em 0; | |||
} | |||
.ooo-extra2 ul { | |||
margin: 0.3em 0 0.4em 1.2em; | |||
} | |||
/* dark theme tuning */ | |||
.skin-theme-clientpref-night .ooo-extra2 { | |||
background: | |||
linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.18), | |||
rgba(245,196,0,0.06) | |||
); | |||
border-color: rgba(245,196,0,0.35); | |||
} | |||
.ooo-browser__info.is-active{ | |||
display:grid; | |||
grid-template-columns:300px 1fr; | |||
gap:24px; | |||
align-items:start; | |||
} | |||
.ooo-browser__info .ooo-infobox{ | |||
grid-column:1; | |||
float:none; | |||
margin:0; | |||
} | |||
.ooo-browser__info .ooo-extra, | |||
.ooo-browser__info .ooo-extra2{ | |||
grid-column:2; | |||
} | |||
/* ========================================================= | |||
OOO External Link | |||
========================================================= */ | |||
.ooo-extlink a, | |||
.ooo-extlink a.external, | |||
.ooo-extlink a.extiw { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 6px; | |||
text-align: center; | |||
padding: 4px 8px; | |||
border-radius: 4px; | |||
border: 1px solid var(--ooo-border); | |||
background: rgba(245,196,0,0.05); | |||
color: var(--ooo-accent) !important; | |||
text-decoration: none !important; | |||
font-weight: 600; | |||
transition: background 0.15s ease, border-color 0.15s ease; | |||
background-image: none !important; | |||
} | |||
/* hover */ | |||
.ooo-extlink a:hover, | |||
.ooo-extlink a.external:hover, | |||
.ooo-extlink a.extiw:hover { | |||
background: rgba(245,196,0,0.15); | |||
border-color: rgba(245,196,0,0.6); | |||
} | |||
/* custom icon */ | |||
.ooo-extlink a::after, | |||
.ooo-extlink a.external::after, | |||
.ooo-extlink a.extiw::after { | |||
content: ""; | |||
display: inline-block; | |||
width: 12px; | |||
height: 12px; | |||
opacity: 0.8; | |||
flex-shrink: 0; | |||
background-color: currentColor; | |||
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M12 3h5v5h-2V6.4l-6.3 6.3-1.4-1.4L13.6 5H12V3zM5 5h4v2H7v6h6v-2h2v4H5V5z'/></svg>") no-repeat center / contain; | |||
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M12 3h5v5h-2V6.4l-6.3 6.3-1.4-1.4L13.6 5H12V3zM5 5h4v2H7v6h6v-2h2v4H5V5z'/></svg>") no-repeat center / contain; | |||
transition: transform 0.15s ease; | |||
} | |||
.ooo-extlink a:hover::after, | |||
.ooo-extlink a.external:hover::after, | |||
.ooo-extlink a.extiw:hover::after { | |||
transform: translate(1px,-1px); | |||
} | |||
/* ========================================================= | |||
OOO External Link Grid | |||
4 items per column | |||
========================================================= */ | |||
.ooo-extlinks-grid { | |||
display: grid; | |||
grid-auto-flow: column; | |||
grid-template-rows: repeat(4, auto); | |||
justify-content: start; | |||
align-content: start; | |||
column-gap: 10px; | |||
row-gap: 6px; | |||
margin: 8px 0; | |||
} | |||
/* remove MediaWiki paragraph wrappers */ | |||
.ooo-extlinks-grid p { | |||
display: contents; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* remove random line breaks */ | |||
.ooo-extlinks-grid br { | |||
display: none; | |||
} | |||
/* normalize grid items */ | |||
.ooo-extlinks-grid .ooo-extlink { | |||
display: block; | |||
margin: 0; | |||
align-self: start; | |||
} | |||
/* tablet */ | |||
@media (max-width: 900px) { | |||
.ooo-extlinks-grid { | |||
grid-template-rows: repeat(3, auto); | |||
} | |||
} | |||
/* mobile */ | |||
@media (max-width: 600px) { | |||
.ooo-extlinks-grid { | |||
grid-auto-flow: row; | |||
grid-template-columns: 1fr; | |||
grid-template-rows: none; | |||
} | |||
} | |||
.skin-theme-clientpref-day .ooo-extlink a, | |||
.skin-theme-clientpref-day .ooo-extlink a.external, | |||
.skin-theme-clientpref-day .ooo-extlink a.extiw { | |||
background: rgba(245,196,0,0.12); | |||
border-color: rgba(245,196,0,0.55); | |||
color: #9a7a00 !important; | |||
} | |||
.skin-theme-clientpref-day .ooo-extlink a:hover { | |||
background: rgba(245,196,0,0.22); | |||
} | |||
/* ========================================================= | |||
OOO MENU LINK – navigation style | |||
========================================================= */ | |||
.mw-parser-output .ooo-menulink a { | |||
display: block; | |||
position: relative; | |||
padding: 4px 8px 4px 14px; | |||
text-decoration: none !important; | |||
color: inherit; | |||
transition: background 0.18s ease, color 0.18s ease; | |||
} | |||
/* left accent bar (always visible) */ | |||
.mw-parser-output .ooo-menulink a::before { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
top: 2px; | |||
bottom: 2px; | |||
width: 3px; | |||
background: var(--ooo-accent); | |||
opacity: 0.6; | |||
} | |||
/* arrow */ | |||
.mw-parser-output .ooo-menulink a::after { | |||
content: "➜"; | |||
position: absolute; | position: absolute; | ||
right: 0; | right: 6px; | ||
opacity: 0; | |||
transform: translateX(-4px); | |||
color: var(--ooo-accent); | color: var(--ooo-accent); | ||
transition: | font-weight: 700; | ||
transition: 0.18s ease; | |||
} | } | ||
/* | /* hover */ | ||
.ooo- | |||
transform: | .mw-parser-output .ooo-menulink a:hover { | ||
font-weight: 700; | |||
color: var(--ooo-accent) !important; | |||
background: linear-gradient( | |||
to right, | |||
rgba(245,196,0,0.10), | |||
rgba(245,196,0,0.02) | |||
); | |||
} | |||
/* show arrow */ | |||
.mw-parser-output .ooo-menulink a:hover::after { | |||
opacity: 1; | |||
transform: translateX(0); | |||
} | } | ||
/* | /* ========================================================= | ||
.ooo- | OOO MENU LINK – COMING SOON | ||
========================================================= */ | |||
opacity: 0. | .mw-parser-output .ooo-menulink-soon a { | ||
display: block; | |||
position: relative; | |||
padding: 4px 8px 4px 14px; | |||
opacity: 0.55; | |||
text-decoration: none !important; | |||
color: inherit; | |||
cursor: default; | |||
} | |||
/* dashed left indicator */ | |||
.mw-parser-output .ooo-menulink-soon a::before { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
top: 2px; | |||
bottom: 2px; | |||
width: 3px; | |||
background: repeating-linear-gradient( | |||
to bottom, | |||
rgba(245,196,0,0.5), | |||
rgba(245,196,0,0.5) 2px, | |||
transparent 2px, | |||
transparent 4px | |||
); | |||
} | |||
/* auto label */ | |||
.mw-parser-output .ooo-menulink-soon a::after { | |||
content: " (coming soon)"; | |||
font-size: 0.85em; | |||
font-style: italic; | |||
opacity: 0.7; | |||
} | } | ||
/* | /* disable hover effects */ | ||
.ooo- | |||
background: | .mw-parser-output .ooo-menulink-soon a:hover { | ||
background: none; | |||
color: inherit !important; | |||
font-weight: normal; | |||
} | } | ||
. | /* ========================================================= | ||
OOO MENU SUB SECTION | |||
========================================================= */ | |||
.mw-parser-output .ooo-menusub { | |||
margin-top: 14px; | |||
margin-bottom: 6px; | |||
font-weight: 700; | |||
font-size: 0.95rem; | |||
color: var(--ooo-accent); | |||
border-bottom: 1px solid rgba(245,196,0,0.35); | |||
padding-bottom: 3px; | |||
letter-spacing: 0.02em; | |||
} | } | ||