MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
SitX (talk | contribs)
No edit summary
SitX (talk | contribs)
No edit summary
Line 57: Line 57:
}
}


#toc {
 
     width: 60%;
.toc, .toc * {
     margin: 10px auto;
     box-sizing: border-box;
     background: rgba(30, 30, 30, 0.9);
}
     border: 2px solid rgba(255, 215, 0, 0.4);
 
    padding: 10px;
.toc {
     width: 250px; /* Adjust width */
     background: linear-gradient(to bottom, #111 0%, #222 100%);
     border: 2px solid rgba(255, 215, 0, 0.4); /* Gold border */
     border-radius: 10px;
     border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.7);
}
.toc .toctitle {
    position: relative;
    overflow: hidden;
     text-align: left;
     text-align: left;
     box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
     padding-bottom: 8px;
}
}


#toc h2 {
.toc .toctitle h2 {
    font-family: 'Cinzel', serif; /* GoT Font */
     font-size: 16px;
     font-size: 16px;
     text-transform: uppercase;
     text-transform: uppercase;
     color: #C0A080; /* Golden Color */
     color: #C0A080; /* Gold */
     text-align: center;
     padding: 0 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.toc ul {
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 10px;
}
 
.toc ul li {
    list-style: none; /* Remove bullets */
    margin: 0;
}
 
.toc a {
    font-family: 'Cinzel', serif;
    display: block;
    padding: 4px 10px;
    color: #bbb;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
 
.toc a:hover {
    color: #FFD700; /* Golden Hover */
    background: rgba(255, 255, 255, 0.1);
}
 
.mw-content-ltr .toc ul ul,
.mw-content-rtl .toc ul ul {
    margin-left: 15px;
}
 
.toc .toctogglelabel, .toc .toctogglelabel::before, .toc .toctogglespan::before, .toc .toctogglespan::after {
    display: none !important;
}
}