MediaWiki:Gadget-VivahxTheme.css: Difference between revisions

From Hotline Wiki

No edit summary
No edit summary
 
Line 1: Line 1:
/**
/**
  * Vivahx Retro Theme - Vector Skin Compatibility Fix
  * Vivahx Retro Theme - Final Vector Layout Fix
  */
  */


/* 1. Global Setup */
:root {
:root {
     --vhx-bg: #FDF5C6;
     --vhx-bg: #FDF5C6;
Line 15: Line 14:
}
}


/* 1. Global Setup */
body {
body {
     background-color: var(--vhx-bg) !important;
     background-color: var(--vhx-bg) !important;
     font-family: Verdana, Tahoma, sans-serif !important;
     font-family: Verdana, Tahoma, sans-serif !important;
     display: flex;
     font-size: 12px !important;
    justify-content: center;
}
 
/* 2. Main Wrapper Box[cite: 1] */
#mw-content-container,
#content,
#mw-page-base,
#mw-head-base {
    background: none !important;
}
 
#content {
    margin: 0 !important;
    border: none !important;
    padding: 25px !important;
}
}


/* Force the 808px Container[cite: 1] */
/* 2. The Main Box */
#container, #mw-wrapper, .mw-body {
#content, #mw-content-block, #footer {
     width: var(--vhx-width) !important;
     width: var(--vhx-width) !important;
    max-width: var(--vhx-width) !important;
     margin: 0 auto !important;
     margin: 30px auto !important;
     box-sizing: border-box !important;
     background-color: var(--vhx-white) !important;
    border: 1px solid var(--vhx-border) !important;
    display: grid;
    grid-template-columns: 1fr 200px; /* Content left, Sidebar right */
    grid-template-areas:
        "header header"
        "toolbar toolbar"
        "main sidebar";
}
}


/* 3. Header Area */
/* 3. Header and Logo[cite: 1, 7] */
#p-logo {
#p-logo {
    grid-area: header;
     position: relative !important;
     position: relative !important;
     display: block !important;
     width: var(--vhx-width) !important;
    width: 100% !important;
     height: 100px !important;
     height: 100px !important;
    margin: 30px auto 0 auto !important;
     background: var(--vhx-logo-url) no-repeat left center #FAFDF6 !important;
     background: var(--vhx-logo-url) no-repeat left center #FAFDF6 !important;
     border-bottom: 1px solid var(--vhx-border);
     border: 1px solid var(--vhx-border);
     margin: 0 !important;
     border-bottom: none;
    z-index: 100;
}
}
#p-logo a { background-image: none !important; width: 100%; height: 100%; }
#p-logo a { display: block; width: 100%; height: 100%; background-image: none !important; }


/* 4. Top Wiki Toolbar (Action Bar)[cite: 7] */
/* 4. The Green Navigation Bar[cite: 1, 7] */
#p-cactions, #left-navigation, #right-navigation {
#mw-head {
     grid-area: toolbar;
    position: relative !important;
    width: var(--vhx-width) !important;
    height: auto !important;
     margin: 0 auto !important;
     background-color: var(--vhx-accent-green) !important;
     background-color: var(--vhx-accent-green) !important;
     padding: 5px 0 !important;
    border: 1px solid var(--vhx-border);
     border-bottom: 1px solid var(--vhx-border);
    border-top: none;
    z-index: 99;
}
 
/* Styling tabs to look like the 2006 toolbar */
.vectorTabs, #p-cactions {
    background: none !important;
    display: flex !important;
    justify-content: center !important;
}
.vectorTabs li { background: none !important; border: none !important; }
.vectorTabs li a {
    color: #333366 !important;
    font-weight: bold !important;
     padding: 10px 15px !important;
}
 
/* 5. Content Layout (Flex to prevent overlap) */
#mw-wrapper, .mw-body {
    width: var(--vhx-width) !important;
    margin: 0 auto !important;
    background: var(--vhx-white) !important;
     border: 1px solid var(--vhx-border);
     display: flex !important;
     display: flex !important;
     justify-content: center;
     flex-direction: row !important;
    position: static !important;
}
}


/* 5. Main Content Area[cite: 1] */
#content {
#content {
     grid-area: main;
     flex: 1 !important;
     z-index: 1;
    margin: 0 !important;
    border: none !important;
    padding: 25px !important;
     order: 1 !important;
}
}


/* 6. Sidebar (Right Dock)[cite: 1, 7] */
/* 6. Sidebar Styled as the "Dock"[cite: 1, 7] */
#mw-panel {
#mw-panel {
    grid-area: sidebar;
     position: static !important; /* This stops the overlap */
     position: static !important; /* Disables the float that blocks clicks */
     width: 200px !important;
     width: 100% !important;
     background-color: var(--vhx-sidebar-bg) !important;
     background-color: var(--vhx-sidebar-bg) !important;
     border-left: 1px solid #CCC;
     border-left: 1px solid #CCC;
     padding: 15px !important;
     padding: 15px !important;
     box-sizing: border-box;
     order: 2 !important; /* Moves sidebar to the right */
}
}


Line 97: Line 99:
     border: 1px solid var(--vhx-border) !important;
     border: 1px solid var(--vhx-border) !important;
     margin-bottom: 15px !important;
     margin-bottom: 15px !important;
    width: 170px !important;
}
}
.portal h3, .mw-portlet h3 {
.portal h3, .mw-portlet h3 {
     background: var(--vhx-title-bg) repeat-x !important;
     background: var(--vhx-title-bg) repeat-x !important;
Line 108: Line 110:
     padding-left: 10px !important;
     padding-left: 10px !important;
     border-bottom: 1px solid var(--vhx-border);
     border-bottom: 1px solid var(--vhx-border);
    text-transform: none !important;
}
}


/* Clean up Vector specific tabs/bars */
/* 7. Retro Cleanup[cite: 1] */
#mw-head, #mw-panel-base { display: none !important; }
#mw-page-base, #mw-head-base, #mw-panel-base, .mw-jump-link { display: none !important; }
#p-search { margin-top: 10px; }
h1.firstHeading { color: #333366; border-bottom: 1px solid var(--vhx-accent-green); }
 
/* Sidebar arrow bullet points[cite: 7] */
#mw-panel li { list-style: none !important; margin: 0 !important; padding: 2px 0 !important; }
#mw-panel li a::before { content: "» "; font-weight: bold; }

Latest revision as of 19:38, 8 March 2026

/**
 * Vivahx Retro Theme - Final Vector Layout Fix
 */

:root {
    --vhx-bg: #FDF5C6;
    --vhx-white: #FFFFFF;
    --vhx-sidebar-bg: #F2F2F2;
    --vhx-accent-green: #9ADA92;
    --vhx-border: #999999;
    --vhx-width: 808px;
    --vhx-logo-url: url("https://web.archive.org/web/20060825120444im_/http://www.vivahx.com/images/logo.jpg");
    --vhx-title-bg: url("https://web.archive.org/web/20060825120444im_/http://www.vivahx.com/images/fond_titre.jpg");
}

/* 1. Global Setup */
body {
    background-color: var(--vhx-bg) !important;
    font-family: Verdana, Tahoma, sans-serif !important;
    font-size: 12px !important;
}

/* 2. The Main Box */
#content, #mw-content-block, #footer {
    width: var(--vhx-width) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 3. Header and Logo[cite: 1, 7] */
#p-logo {
    position: relative !important;
    width: var(--vhx-width) !important;
    height: 100px !important;
    margin: 30px auto 0 auto !important;
    background: var(--vhx-logo-url) no-repeat left center #FAFDF6 !important;
    border: 1px solid var(--vhx-border);
    border-bottom: none;
    z-index: 100;
}
#p-logo a { display: block; width: 100%; height: 100%; background-image: none !important; }

/* 4. The Green Navigation Bar[cite: 1, 7] */
#mw-head {
    position: relative !important;
    width: var(--vhx-width) !important;
    height: auto !important;
    margin: 0 auto !important;
    background-color: var(--vhx-accent-green) !important;
    border: 1px solid var(--vhx-border);
    border-top: none;
    z-index: 99;
}

/* Styling tabs to look like the 2006 toolbar */
.vectorTabs, #p-cactions {
    background: none !important;
    display: flex !important;
    justify-content: center !important;
}
.vectorTabs li { background: none !important; border: none !important; }
.vectorTabs li a { 
    color: #333366 !important; 
    font-weight: bold !important; 
    padding: 10px 15px !important;
}

/* 5. Content Layout (Flex to prevent overlap) */
#mw-wrapper, .mw-body {
    width: var(--vhx-width) !important;
    margin: 0 auto !important;
    background: var(--vhx-white) !important;
    border: 1px solid var(--vhx-border);
    display: flex !important;
    flex-direction: row !important;
}

#content {
    flex: 1 !important;
    margin: 0 !important;
    border: none !important;
    padding: 25px !important;
    order: 1 !important;
}

/* 6. Sidebar Styled as the "Dock"[cite: 1, 7] */
#mw-panel {
    position: static !important; /* This stops the overlap */
    width: 200px !important;
    background-color: var(--vhx-sidebar-bg) !important;
    border-left: 1px solid #CCC;
    padding: 15px !important;
    order: 2 !important; /* Moves sidebar to the right */
}

/* Sidebar Box Styling[cite: 1] */
.portal, .mw-portlet {
    background: var(--vhx-white) !important;
    border: 1px solid var(--vhx-border) !important;
    margin-bottom: 15px !important;
    width: 170px !important;
}
.portal h3, .mw-portlet h3 {
    background: var(--vhx-title-bg) repeat-x !important;
    color: #000 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    height: 25px !important;
    line-height: 25px !important;
    padding-left: 10px !important;
    border-bottom: 1px solid var(--vhx-border);
    text-transform: none !important;
}

/* 7. Retro Cleanup[cite: 1] */
#mw-page-base, #mw-head-base, #mw-panel-base, .mw-jump-link { display: none !important; }
h1.firstHeading { color: #333366; border-bottom: 1px solid var(--vhx-accent-green); }

/* Sidebar arrow bullet points[cite: 7] */
#mw-panel li { list-style: none !important; margin: 0 !important; padding: 2px 0 !important; }
#mw-panel li a::before { content: "» "; font-weight: bold; }