MediaWiki:Common.css: Difference between revisions

From Realm Of Thrones
Jump to navigation Jump to search
SitX (talk | contribs)
No edit summary
SitX (talk | contribs)
No edit summary
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
#mw-panel {
#mw-panel {
     width: 150px;  
     background: none;
     padding: 2px;
    border-radius: 8px;
     padding: 10px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 4px;
     gap: 12px;
}
}


#mw-panel .mw-portlet {
#mw-panel .mw-portlet {
     width: 100%;
     border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(to bottom, #111 0%, #222 100%);
     background: rgba(30, 30, 30, 0.9);  
     border: 1px solid rgba(255, 215, 0, 0.3);  
     border-radius: 10px;
     border-radius: 6px;
     padding: 5px;
     padding: 2px;
    margin-bottom: 4px;
}
}


#mw-panel .mw-portlet .vector-menu-heading {
#mw-panel .mw-portlet .vector-menu-heading {
     font-family: 'Cinzel', serif;
     font-family: 'Cinzel', serif;  
     font-size: 13px;
     font-size: 18px;
     font-weight: bold;
     font-weight: 700;
     text-transform: uppercase;
     text-transform: uppercase;
    color: #C0A080;
     background: rgba(20, 20, 20, 1);
     background: rgba(15, 15, 15, 0.9);
    color: #C0A080;  
     padding: 4px;
     padding: 8px;
     border-radius: 6px 6px 0 0;
     border-radius: 8px 8px 0 0;
     text-align: center;
     display: flex;
     letter-spacing: 1px;
    justify-content: left;
     line-height: 12px;  
    align-items: center;
     cursor: default;
}
 
/* Remove the arrow */
#mw-panel .mw-portlet .vector-menu-heading::after {
    content: "";
     display: none;
}
}


/* Sidebar Links */
#mw-panel .mw-portlet .body a {
#mw-panel .mw-portlet .body a {
    display: block;
     font-family: 'Cinzel', serif;
     font-family: 'Cinzel', serif;
     font-size: 12px;  
     font-size: 16px;
     color: #bbb;
     color: #ddd;
     text-decoration: none;
     text-decoration: none;
     padding: 3px 5px;
     padding: 6px 12px;
     display: block;
     border-radius: 4px;
    transition: all 0.3s ease;
}
}


#mw-panel .mw-portlet .body a:hover {
#mw-panel .mw-portlet .body a:hover {
    color: #FFD700; /* Royal Gold Hover */
     background: rgba(255, 255, 255, 0.15);
     background: rgba(255, 255, 255, 0.1);
     color: #C0A080;
     border-radius: 2px;
}
}


/* Remove collapsible functionality */
#mw-panel .mw-portlet .body {
#mw-panel .mw-portlet .body {
     padding: 2px;
     display: block !important;
}
}
 
#mw-panel .mw-portlet .body a:hover {
#mw-panel .mw-portlet {
     background: rgba(255, 255, 255, 0.1);
     margin-bottom: 3px;
}
}


 
/* Collapse Button (Dropdown Icon) */
#floating-toc {
#mw-panel .mw-portlet .vector-menu-heading::after {
    position: fixed;
     content: "▼";
    bottom: 20px;
     font-size: 12px;
    right: 20px;
     color: white;
    width: 250px;
    background: linear-gradient(to bottom, #111 0%, #222 100%);
    border: 2px solid rgba(255, 215, 0, 0.5); /* Goldish border */
    border-radius: 10px;
     padding: 10px;
     font-size: 14px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease-in-out;
     z-index: 1000;
}
}


/* Collapsed State */
/* Collapsed Sidebar Sections */
#floating-toc.collapsed {
#mw-panel .mw-portlet.collapsed .body {
    width: 150px;
     display: none;
    height: 30px;
    overflow: hidden;
    padding: 5px;
    text-align: center;
    cursor: pointer;
}
 
/* Header Style */
#floating-toc h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #C0A080; /* Gold */
    text-align: center;
    margin: 0;
    padding: 5px;
}
 
/* ToC Links */
#floating-toc ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}
 
#floating-toc li {
     padding: 4px;
}
 
#floating-toc a {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: #bbb;
    text-decoration: none;
    display: block;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
 
#floating-toc a:hover {
    color: #FFD700; /* Gold Hover */
    background: rgba(255, 255, 255, 0.1);
}
}


/* Collapsed Text */
#mw-panel .mw-portlet.collapsed .vector-menu-heading::after {
#floating-toc.collapsed::after {
     content: "";
     content: "Contents ▼";
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #C0A080;
    display: block;
    text-align: center;
    padding: 5px;
}
}

Revision as of 02:33, 25 March 2025

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
#mw-panel {
    background: none; 
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


#mw-panel .mw-portlet {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.9); 
    border-radius: 10px;
    padding: 5px;
}


#mw-panel .mw-portlet .vector-menu-heading {
    font-family: 'Cinzel', serif; 
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(20, 20, 20, 1);
    color: #C0A080; 
    padding: 8px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: left;
    align-items: center;
    cursor: default; 
}

/* Remove the arrow */
#mw-panel .mw-portlet .vector-menu-heading::after {
    content: "";
    display: none;
}

/* Sidebar Links */
#mw-panel .mw-portlet .body a {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: #ddd;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
}

#mw-panel .mw-portlet .body a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #C0A080;
}

/* Remove collapsible functionality */
#mw-panel .mw-portlet .body {
    display: block !important;
}
#mw-panel .mw-portlet .body a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Collapse Button (Dropdown Icon) */
#mw-panel .mw-portlet .vector-menu-heading::after {
    content: "▼";
    font-size: 12px;
    color: white;
}

/* Collapsed Sidebar Sections */
#mw-panel .mw-portlet.collapsed .body {
    display: none;
}

#mw-panel .mw-portlet.collapsed .vector-menu-heading::after {
    content: "▶";
}