Difference between revisions of "MediaWiki:Common.css"

From Fortnite Action Figure Archive
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 15: Line 15:
   margin: .25em 0;
   margin: .25em 0;
   font-weight: bold;
   font-weight: bold;
font-style: Arial;
background: #f3f3f3;
background: #f3f3f3;
   padding: .5em;
   padding: .5em;
Line 21: Line 22:


.mw-collapsible-toggle::after{
.mw-collapsible-toggle::after{
   content: "] <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="m480-340 180-180-57-56-123 123-123-123-57 56 180 180Zm0 260q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg> "; /* arrow closed */
   content: "] ℹ️"; /* arrow closed */
}
}
.mw-collapsible-open .mw-collapsible-toggle::after{
.mw-collapsible-open .mw-collapsible-toggle::after{
   content: "] ▼ "; /* arrow open */
   content: "] ℹ️"; /* arrow open */
}
/* Button style for collapsible links */
.button-toggle {
  display: inline-block;
  padding: 0.4em 0.8em;
  background-color: #007bff;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5em;
}
 
/* === Collapsible Headings Sitewide === */
 
/* Hide the default expand/collapse toggle link */
.mw-collapsible-toggle {
    display: none !important;
}
 
/* Style all headings inside collapsible sections */
.mw-collapsible > h2,
.mw-collapsible > h3,
.mw-collapsible > h4,
.mw-collapsible > h5,
.mw-collapsible > h6 {
    cursor: pointer;              /* Show clickable hand cursor */
    background-color: #f3f3f3;    /* Light gray background */
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: bold;
    margin: 4px 0;
    transition: background-color 0.2s ease-in-out;
}
 
/* Hover effect to reinforce interactivity */
.mw-collapsible > h2:hover,
.mw-collapsible > h3:hover,
.mw-collapsible > h4:hover,
.mw-collapsible > h5:hover,
.mw-collapsible > h6:hover {
    background-color: #e2e2e2;
}
 
/* Collapsed state arrow */
.mw-collapsible.mw-collapsed > h2::after,
.mw-collapsible.mw-collapsed > h3::after,
.mw-collapsible.mw-collapsed > h4::after,
.mw-collapsible.mw-collapsed > h5::after,
.mw-collapsible.mw-collapsed > h6::after {
    content: " ℹ️";
    float: right;
    font-weight: normal;
}
 
/* Expanded state arrow */
.mw-collapsible:not(.mw-collapsed) > h2::after,
.mw-collapsible:not(.mw-collapsed) > h3::after,
.mw-collapsible:not(.mw-collapsed) > h4::after,
.mw-collapsible:not(.mw-collapsed) > h5::after,
.mw-collapsible:not(.mw-collapsed) > h6::after {
    content: " ℹ️";
    float: right;
    font-weight: normal;
}
}

Latest revision as of 17:58, 17 August 2025

/* CSS placed here will be applied to all skins */
@font-face {
  font-family: 'BurbankSmall';
    src: local("BurbankSmall"),
       url(https://fortnite.gg/fonts/burbanksmall-bold.woff2);
}

/* Center the mw-collapsible toggle site-wide */
.mw-collapsible .mw-collapsible-toggle,
.mw-collapsible-toggle {
  float: none !important;     /* cancel the default float:right */
  display: block;             /* put it on its own line */
  width: 250px%;                /* let text-align work across the row */
  text-align: center;         /* center the link/text */
  margin: .25em 0;
  font-weight: bold;
font-style: Arial;
background: #f3f3f3;
  padding: .5em;
  border-radius: 6px;
}

.mw-collapsible-toggle::after{
  content: "] ℹ️"; /* arrow closed */
}
.mw-collapsible-open .mw-collapsible-toggle::after{
  content: "] ℹ️"; /* arrow open */
}
/* Button style for collapsible links */
.button-toggle {
  display: inline-block;
  padding: 0.4em 0.8em;
  background-color: #007bff;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5em;
}

/* === Collapsible Headings Sitewide === */

/* Hide the default expand/collapse toggle link */
.mw-collapsible-toggle {
    display: none !important;
}

/* Style all headings inside collapsible sections */
.mw-collapsible > h2,
.mw-collapsible > h3,
.mw-collapsible > h4,
.mw-collapsible > h5,
.mw-collapsible > h6 {
    cursor: pointer;              /* Show clickable hand cursor */
    background-color: #f3f3f3;    /* Light gray background */
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: bold;
    margin: 4px 0;
    transition: background-color 0.2s ease-in-out;
}

/* Hover effect to reinforce interactivity */
.mw-collapsible > h2:hover,
.mw-collapsible > h3:hover,
.mw-collapsible > h4:hover,
.mw-collapsible > h5:hover,
.mw-collapsible > h6:hover {
    background-color: #e2e2e2;
}

/* Collapsed state arrow */
.mw-collapsible.mw-collapsed > h2::after,
.mw-collapsible.mw-collapsed > h3::after,
.mw-collapsible.mw-collapsed > h4::after,
.mw-collapsible.mw-collapsed > h5::after,
.mw-collapsible.mw-collapsed > h6::after {
    content: " ℹ️";
    float: right;
    font-weight: normal;
}

/* Expanded state arrow */
.mw-collapsible:not(.mw-collapsed) > h2::after,
.mw-collapsible:not(.mw-collapsed) > h3::after,
.mw-collapsible:not(.mw-collapsed) > h4::after,
.mw-collapsible:not(.mw-collapsed) > h5::after,
.mw-collapsible:not(.mw-collapsed) > h6::after {
    content: " ℹ️";
    float: right;
    font-weight: normal;
}