MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 627: | Line 627: | ||
} | } | ||
/* ========================================= | /* ========================================================= | ||
OOO FAQ SYSTEM – Industrial Accordion | |||
========================================= */ | ========================================================= */ | ||
/* Remove table | .ooo-faq { | ||
margin: 40px 0; | |||
} | |||
/* Remove default table look */ | |||
.ooo-faq__item { | .ooo-faq__item { | ||
border: none !important; | border: none !important; | ||
background: none !important; | background: none !important; | ||
margin-bottom: | margin-bottom: 16px; | ||
} | } | ||
/* Remove table | /* Remove default table cell styles */ | ||
.ooo-faq__item th, | .ooo-faq__item th, | ||
.ooo-faq__item td { | .ooo-faq__item td { | ||
border: none !important; | border: none !important; | ||
background: none !important; | |||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
/* | /* Question block */ | ||
.ooo-faq__question { | .ooo-faq__question { | ||
position: relative; | |||
display: block; | |||
font-weight: 700; | font-weight: 700; | ||
padding: | padding: 16px 18px 16px 22px; | ||
cursor: pointer; | cursor: pointer; | ||
border-radius: 8px; | |||
border: 1px solid rgba(245,196,0,0.25); | |||
background: rgba(245,196,0,0.05); | |||
transition: background 0.2s ease; | transition: background 0.2s ease, border 0.2s ease; | ||
} | } | ||
/* Left accent bar */ | |||
background: | .ooo-faq__question::before { | ||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
bottom: 0; | |||
width: 4px; | |||
background: var(--ooo-accent); | |||
border-top-left-radius: 8px; | |||
border-bottom-left-radius: 8px; | |||
} | } | ||
/* | /* Hover */ | ||
.ooo-faq__question:hover { | .ooo-faq__question:hover { | ||
background: rgba(0,0,0,0. | background: rgba(245,196,0,0.08); | ||
border-color: rgba(245,196,0,0.5); | |||
} | |||
/* Dark theme adjustments */ | |||
.skin-theme-clientpref-night .ooo-faq__question { | |||
background: rgba(245,196,0,0.08); | |||
border-color: rgba(245,196,0,0.35); | |||
} | } | ||
.skin-theme-clientpref-night .ooo-faq__question:hover { | .skin-theme-clientpref-night .ooo-faq__question:hover { | ||
background: rgba( | background: rgba(245,196,0,0.12); | ||
} | } | ||
/* | /* Hide default MW toggle */ | ||
.ooo-faq__item .mw-collapsible-toggle { | .ooo-faq__item .mw-collapsible-toggle { | ||
display: none !important; | |||
} | } | ||
/* Custom arrow | /* Custom arrow */ | ||
.ooo- | .ooo-faq__question::after { | ||
content: "▸"; | content: "▸"; | ||
font-size: | position: absolute; | ||
right: 16px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
font-size: 18px; | |||
color: var(--ooo-accent); | color: var(--ooo-accent); | ||
transition: transform 0.25s ease; | |||
transition: transform 0. | |||
} | } | ||
/* Rotate arrow when | /* Rotate arrow when expanded */ | ||
.ooo-faq__item:not(.mw-collapsed) . | .ooo-faq__item:not(.mw-collapsed) .ooo-faq__question::after { | ||
transform: rotate(90deg); | transform: translateY(-50%) rotate(90deg); | ||
} | } | ||
/* Answer | /* Answer block */ | ||
.ooo-faq__item td { | .ooo-faq__item td { | ||
padding: | padding: 16px 22px !important; | ||
line-height: 1.7; | line-height: 1.7; | ||
opacity: 0 | border-left: 4px solid rgba(245,196,0,0.4); | ||
margin-top: 6px; | |||
animation: fadeSlide 0.25s ease; | |||
} | |||
/* Smooth open animation */ | |||
@keyframes fadeSlide { | |||
from { | |||
opacity: 0; | |||
transform: translateY(-4px); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translateY(0); | |||
} | |||
} | } | ||