MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
Line 628: Line 628:


/* =========================================================
/* =========================================================
   OOO FAQ SYSTEM Industrial Accordion
   OOO FAQ – Clean Native Accordion
   ========================================================= */
   ========================================================= */


Line 635: Line 635:
}
}


/* Remove default table look */
/* FAQ item */
.ooo-faq__item {
.ooo-faq__item {
  border: none !important;
  background: none !important;
   margin-bottom: 16px;
   margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(245,196,0,0.25);
  background: rgba(245,196,0,0.04);
  transition: background 0.2s ease, border 0.2s ease;
}
}


/* Remove default table cell styles */
/* Question */
.ooo-faq__item th,
.ooo-faq__item td {
  border: none !important;
  background: none !important;
  padding: 0 !important;
}
 
/* Question block */
.ooo-faq__question {
.ooo-faq__question {
   position: relative;
   position: relative;
   display: block;
   display: block;
  padding: 16px 22px;
   font-weight: 700;
   font-weight: 700;
  padding: 16px 18px 16px 22px;
   cursor: pointer;
   cursor: pointer;
   border-radius: 8px;
   list-style: none;
  border: 1px solid rgba(245,196,0,0.25);
  background: rgba(245,196,0,0.05);
  transition: background 0.2s ease, border 0.2s ease;
}
}


/* Left accent bar */
/* Remove default marker */
.ooo-faq__question::before {
.ooo-faq__question::-webkit-details-marker {
  content: "";
   display: none;
  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 {
  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 {
  background: rgba(245,196,0,0.12);
}
 
/* Hide default MW toggle */
.ooo-faq__item .mw-collapsible-toggle {
   display: none !important;
}
}


Line 701: Line 664:
   content: "▸";
   content: "▸";
   position: absolute;
   position: absolute;
   right: 16px;
   right: 20px;
   top: 50%;
   top: 50%;
   transform: translateY(-50%);
   transform: translateY(-50%);
Line 709: Line 672:
}
}


/* Rotate arrow when expanded */
/* Rotate arrow when open */
.ooo-faq__item:not(.mw-collapsed) .ooo-faq__question::after {
.ooo-faq__item[open] .ooo-faq__question::after {
   transform: translateY(-50%) rotate(90deg);
   transform: translateY(-50%) rotate(90deg);
}
}


/* Answer block */
/* Left accent bar */
.ooo-faq__item td {
.ooo-faq__question::before {
   padding: 16px 22px !important;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ooo-accent);
}
 
/* Answer */
.ooo-faq__item > *:not(summary) {
   padding: 16px 22px;
   line-height: 1.7;
   line-height: 1.7;
  border-left: 4px solid rgba(245,196,0,0.4);
  margin-top: 6px;
   animation: fadeSlide 0.25s ease;
   animation: fadeSlide 0.25s ease;
}
}


/* Smooth open animation */
/* Smooth animation */
@keyframes fadeSlide {
@keyframes fadeSlide {
   from {
   from { opacity: 0; transform: translateY(-4px); }
    opacity: 0;
   to { opacity: 1; transform: translateY(0); }
    transform: translateY(-4px);
}
  }
 
   to {
/* Dark theme adjustments */
    opacity: 1;
.skin-theme-clientpref-night .ooo-faq__item {
    transform: translateY(0);
   background: rgba(245,196,0,0.08);
   }
  border-color: rgba(245,196,0,0.35);
}
}