MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
SitX (talk | contribs)
mNo edit summary
SitX (talk | contribs)
mNo edit summary
Line 61: Line 61:
}
}


/* TOC Container */
#toc {
#toc {
    font-family: 'Cinzel', serif;
     background: linear-gradient(to bottom, #111, #1a1a1a);
     background: linear-gradient(to bottom, #111, #1a1a1a);
     border: 1px solid rgba(255, 215, 0, 0.2);
     border: 1px solid rgba(255, 215, 0, 0.2);
     border-radius: 6px;
     border-radius: 6px;
     padding: 10px;
     padding: 10px;
     margin: 15px 0;
     font-family: 'Cinzel', serif;
     width: fit-content;
    font-size: 13px;
     max-width: 320px;
     color: #bbb;
     color: #ddd;
     max-width: 300px;
     box-shadow: 0 0 5px rgba(255, 215, 0, 0.05);
     margin: 20px 0;
     box-shadow: 0 0 6px rgba(255, 215, 0, 0.05);
}
}


/* TOC Title Bar */
#toc .toctitle {
#toc .toctitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
     font-weight: bold;
     font-weight: bold;
     color: #FFD700;
     color: #C0A080;
    font-size: 14px;
     text-transform: uppercase;
     text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 4px;
     margin-bottom: 6px;
     margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 6px;
}
#toc .toctitle::before {
    content: "☰";
    font-size: 16px;
    color: #FFD700;
    margin-right: 6px;
}
}


/* Hide the toggle label text */
#toc .toctogglelabel {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
#toc .toctogglelabel:hover {
    color: #FFD700;
}
/* Numbering System */
#toc ul {
#toc ul {
     list-style: none;
     list-style: none;
     padding-left: 0;
     padding: 0;
    counter-reset: toc;
     margin: 0;
     margin: 0;
}
}


#toc li {
#toc li {
    counter-increment: toc;
     margin: 4px 0;
     margin: 4px 0;
     margin-left: 10px;
     font-size: 13px;
     font-size: 12px;
     font-weight: 500;
}
}


#toc li::before {
#toc li li {
    content: counters(toc, ".") ". ";
     font-size: 12px;
    color: #FFD700;
     margin-left: 10px;
     font-weight: bold;
    margin-right: 5px;
}
 
#toc ul ul {
    counter-reset: toc;
     margin-left: 15px;
}
}


/* TOC Links */
#toc a {
#toc a {
     color: #bbb;
     color: #bbb;
     text-decoration: none;
     text-decoration: none;
    display: block;
    padding: 2px 5px;
    border-radius: 3px;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
}
}
Line 145: Line 115:
#toc a:hover {
#toc a:hover {
     color: #FFD700;
     color: #FFD700;
     text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
     text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}
}


/* Remove unnecessary toggle border styles */
/* TOC Toggle Label Styling (e.g. [HIDE]) */
#toc .toctoggle {
#toc .toctogglelabel {
     border: none;
     font-family: 'Cinzel', serif;
     margin-left: auto;
    font-size: 12px;
    color: #FFD700;
    cursor: pointer;
    text-transform: uppercase;
     letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding-left: 10px;
}
 
#toc .toctogglelabel:hover {
    color: #fff8dc;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}
 
#toc .toctogglelabel::after {
    content: " ▾";
    font-size: 12px;
    color: #FFD700;
}
}


body {
body {