Jump to content

MediaWiki:Common.css: Difference between revisions

From BonziPEDIA
ItzRafaelScout (talk | contribs)
test
ItzRafaelScout (talk | contribs)
test
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Windows XP-inspired MediaWiki Theme */
/* Windows XP MediaWiki Ultimate Theme */
/* Purple Edition - Nostalgic UI Styling */
:root {
    /* Extended Color Palette */
    --xp-blue: #0A246A;
    --xp-light-blue: #A6CAF0;
    --xp-sky-blue: #C6D3E6;
    --xp-gray: #F0F0F0;
    --xp-silver-gray: #E1E1E1;
    --xp-dark-gray: #808080;
    --xp-charcoal: #404040;
    --xp-white: #FFFFFF;
    --xp-text-color: #000000;
    --xp-highlight-blue: #316AC5;
    --xp-selection-blue: #D4D4D4;
   
    /* Typography */
    --xp-font-primary: 'Tahoma', 'Microsoft Sans Serif', Arial, sans-serif;
    --xp-font-size-base: 12px;
}


/* Global Reset and Base Styling */
body {
body {
     font-family: 'Tahoma', 'Arial', sans-serif;
     font-family: var(--xp-font-primary);
     background-color: #E1E4E6;
    font-size: var(--xp-font-size-base);
     color: #000000;
     background-color: var(--xp-gray);
     color: var(--xp-text-color);
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
    line-height: 1.4;
}
}


/* Title Bar Styling */
/* Advanced Navigation Styling */
#top-section {
#p-navigation {
     background-color: #6A5ACD; /* Slate Purple */
     background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue));
     color: #FFFFFF;
     border: 2px solid var(--xp-blue);
    height: 30px;
     border-radius: 4px;
    display: flex;
     box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: space-between;
     padding: 0 10px;
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
}


#title-bar-text {
#p-navigation h3 {
    background-color: var(--xp-blue);
    color: var(--xp-white);
    padding: 4px 8px;
    margin: 0;
     font-weight: bold;
     font-weight: bold;
     font-size: 12px;
     text-transform: uppercase;
    letter-spacing: 1px;
}
}


#title-bar-controls {
#p-navigation ul {
     display: flex;
    list-style-type: none;
     align-items: center;
    padding: 5px;
    margin: 0;
}
 
#p-navigation li a {
    color: var(--xp-text-color);
    text-decoration: none;
     display: block;
    padding: 3px 8px;
    transition: all 0.2s ease;
    border-radius: 2px;
}
 
#p-navigation li a:hover {
    background-color: var(--xp-highlight-blue);
    color: var(--xp-white);
     box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}
}


.title-bar-button {
/* Enhanced Button Styling */
     width: 25px;
.mw-submit-buttons button,
     height: 20px;
input[type="submit"],
     background-color: #8470FF;
input[type="button"] {
     border: 1px solid #5D3FD3;
     background: linear-gradient(to bottom, var(--xp-white), var(--xp-silver-gray));
     margin-left: 5px;
     border: 1px solid var(--xp-dark-gray);
     border-radius: 3px;
     padding: 4px 12px;
    font-family: var(--xp-font-primary);
     box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     cursor: pointer;
     cursor: pointer;
     transition: background-color 0.2s;
    outline: none;
     transition: all 0.2s ease;
}
}


.title-bar-button:hover {
.mw-submit-buttons button:hover,
     background-color: #A084E8;
input[type="submit"]:hover,
input[type="button"]:hover {
     background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue));
    color: var(--xp-white);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
}


/* Navigation Styling */
/* Advanced Input Styling */
#sidebar {
input[type="text"],
     background-color: #F0F0F0;
input[type="password"],
     border-right: 1px solid #A0A0A0;
textarea {
     width: 180px;
    border: 1px solid var(--xp-dark-gray);
     padding: 10px;
    background-color: var(--xp-white);
    padding: 3px 4px;
    font-family: var(--xp-font-primary);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}
 
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--xp-blue);
    outline: 2px solid var(--xp-light-blue);
}
 
/* Advanced Tab Styling */
#p-views {
     background-color: var(--xp-sky-blue);
    padding: 5px;
     border-bottom: 2px solid var(--xp-blue);
}
 
#p-views ul {
    display: flex;
     list-style: none;
     padding: 0;
    margin: 0;
}
 
#p-views li {
    margin-right: 5px;
}
}


#navigation-menu {
#p-views li a {
     background-color: #FFFFFF;
    display: block;
     border: 1px solid #C0C0C0;
    padding: 4px 10px;
     border-radius: 4px;
     background-color: var(--xp-gray);
     border: 1px solid var(--xp-dark-gray);
    border-bottom: none;
     border-radius: 3px 3px 0 0;
    text-decoration: none;
    color: var(--xp-text-color);
    transition: all 0.2s ease;
}
}


.nav-item {
#p-views li.selected a {
     padding: 5px 10px;
     background-color: var(--xp-blue);
     transition: background-color 0.2s;
     color: var(--xp-white);
    font-weight: bold;
}
}


.nav-item:hover {
/* Content Area with XP Styling */
     background-color: #E6F2FF;
#content {
     cursor: pointer;
     background-color: var(--xp-white);
    border: 2px solid var(--xp-blue);
    border-radius: 5px;
    padding: 20px;
    margin: 15px;
     box-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}
}


/* Content Area */
/* Headings with XP Flair */
#content-wrapper {
h1, h2, h3, h4, h5, h6 {
     background-color: #FFFFFF;
     color: var(--xp-blue);
     border: 1px solid #A0A0A0;
     border-bottom: 1px solid var(--xp-light-blue);
    border-radius: 4px;
     padding-bottom: 8px;
     padding: 15px;
     font-family: var(--xp-font-primary);
     margin: 10px;
}
}


/* Button Styling */
/* Advanced Link Styling */
.xp-button {
a {
     background-color: #E1E4E6;
     color: var(--xp-blue);
    border: 1px solid #7F9DB9;
     text-decoration: none;
     color: #000000;
     transition: all 0.2s ease;
    padding: 5px 15px;
    border-radius: 3px;
     transition: background-color 0.2s;
}
}


.xp-button:hover {
a:hover {
     background-color: #C0D9EF;
     color: var(--xp-highlight-blue);
     cursor: pointer;
     text-decoration: underline;
}
}


/* Input Fields */
/* Sidebar with XP Design */
input[type="text"],
#sidebar {
input[type="password"],
    background-color: var(--xp-gray);
textarea {
     border: 1px solid var(--xp-dark-gray);
     border: 1px solid #A0A0A0;
     border-radius: 4px;
     background-color: #FFFFFF;
     padding: 15px;
     padding: 4px;
     box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
     font-family: 'Tahoma', sans-serif;
}
}


/* Scrollbar Styling */
/* Custom Scrollbar */
::-webkit-scrollbar {
::-webkit-scrollbar {
     width: 16px;
     width: 16px;
     background-color: #F0F0F0;
     background-color: var(--xp-gray);
}
}


::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
     background-color: #A0A0A0;
     background-color: var(--xp-blue);
     border: 2px solid #F0F0F0;
     border: 2px solid var(--xp-gray);
     border-radius: 8px;
     border-radius: 8px;
}
}


/* Dropdown Menus */
/* Enhanced Tooltip Styling */
select {
.tooltiptext {
     background-color: #FFFFFF;
     background-color: var(--xp-light-blue);
     border: 1px solid #A0A0A0;
     border: 1px solid var(--xp-blue);
     padding: 4px;
    border-radius: 3px;
     font-family: 'Tahoma', sans-serif;
     padding: 6px;
     font-size: 0.9em;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
}


/* Tooltip Styling */
/* Responsive Design Considerations */
.tooltip {
@media screen and (max-width: 768px) {
     background-color: #FFFFE1;
     #content {
     border: 1px solid #A0A0A0;
        margin: 10px;
     padding: 5px;
        padding: 15px;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
        border-radius: 3px;
     }
    #p-navigation {
        padding: 10px;
     }
    #p-views {
        flex-direction: column;
     }
    #p-views li {
        margin-bottom: 5px;
    }
}
}


/* Modal/Dialog Styling */
/* Additional Styling for Tables */
.dialog-window {
table {
     background-color: #F0F0F0;
     width: 100%;
    border: 2px solid #6A5ACD;
     border-collapse: collapse;
     border-radius: 6px;
     margin: 15px 0;
     box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}
}


.dialog-header {
th, td {
     background-color: #6A5ACD;
     border: 1px solid var(--xp-dark-gray);
    color: #FFFFFF;
     padding: 8px;
     padding: 8px;
     font-weight: bold;
     text-align: left;
}
 
th {
    background-color: var(--xp-blue);
    color: var(--xp-white);
}
 
/* Footer Styling */
#footer {
    background-color: var(--xp-light-blue);
    color: var(--xp-text-color);
    padding: 10px;
    text-align: center;
    border-top: 2px solid var(--xp-blue);
}
 
/* Alert Boxes */
.alert {
    background-color: #FFCC00;
    border: 1px solid #FF9900;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    color: var(--xp-text-color);
}
 
/* Code Blocks */
pre {
    background-color: var(--xp-silver-gray);
    border: 1px solid var(--xp-dark-gray);
    padding: 10px;
    border-radius: 3px;
    overflow: auto;
}
 
/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--xp-dark-gray);
    border-radius: 3px;
}
 
/* Custom Checkbox and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--xp-blue);
}
 
/* Custom List Styles */
ul.custom-list {
    list-style-type: square;
    padding-left: 20px;
}
 
ol.custom-list {
    padding-left: 20px;
}
 
/* Custom Blockquotes */
blockquote {
    border-left: 4px solid var(--xp-blue);
    padding: 10px 15px;
    background-color: var(--xp-light-blue);
    color: var(--xp-text-color);
    margin: 10px 0;
}
 
/* Custom Progress Bar */
.progress {
    width: 100%;
    background-color: var(--xp-silver-gray);
    border-radius: 5px;
}
 
.progress-bar {
    height: 20px;
    background-color: var(--xp-blue);
    width: 0; /* Set width dynamically */
    border-radius: 5px;
}
 
/* Custom Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
}


/* Responsive Adjustments */
.modal-content {
@media screen and (max-width: 768px) {
    background-color: var(--xp-white);
     #sidebar {
    margin: 15% auto; /* 15% from the top and centered */
        width: 100%;
    padding: 20px;
        border-right: none;
    border: 1px solid var(--xp-blue);
    }
     width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 5px;
}
}


/* Additional XP-like Nuances */
/* Custom Close Button for Modal */
.window-shadow {
.close {
     box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
     color: var(--xp-dark-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
}
}


/* Final Decorative Touches */
.close:hover,
.xp-gradient {
.close:focus {
     background: linear-gradient(to bottom, #E1E4E6, #C0C0C0);
     color: var(--xp-blue);
    text-decoration: none;
    cursor: pointer;
}
}

Latest revision as of 23:28, 17 January 2025

/* Windows XP MediaWiki Ultimate Theme */
:root {
    /* Extended Color Palette */
    --xp-blue: #0A246A;
    --xp-light-blue: #A6CAF0;
    --xp-sky-blue: #C6D3E6;
    --xp-gray: #F0F0F0;
    --xp-silver-gray: #E1E1E1;
    --xp-dark-gray: #808080;
    --xp-charcoal: #404040;
    --xp-white: #FFFFFF;
    --xp-text-color: #000000;
    --xp-highlight-blue: #316AC5;
    --xp-selection-blue: #D4D4D4;
    
    /* Typography */
    --xp-font-primary: 'Tahoma', 'Microsoft Sans Serif', Arial, sans-serif;
    --xp-font-size-base: 12px;
}

/* Global Reset and Base Styling */
body {
    font-family: var(--xp-font-primary);
    font-size: var(--xp-font-size-base);
    background-color: var(--xp-gray);
    color: var(--xp-text-color);
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Advanced Navigation Styling */
#p-navigation {
    background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue));
    border: 2px solid var(--xp-blue);
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#p-navigation h3 {
    background-color: var(--xp-blue);
    color: var(--xp-white);
    padding: 4px 8px;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#p-navigation ul {
    list-style-type: none;
    padding: 5px;
    margin: 0;
}

#p-navigation li a {
    color: var(--xp-text-color);
    text-decoration: none;
    display: block;
    padding: 3px 8px;
    transition: all 0.2s ease;
    border-radius: 2px;
}

#p-navigation li a:hover {
    background-color: var(--xp-highlight-blue);
    color: var(--xp-white);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

/* Enhanced Button Styling */
.mw-submit-buttons button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(to bottom, var(--xp-white), var(--xp-silver-gray));
    border: 1px solid var(--xp-dark-gray);
    border-radius: 3px;
    padding: 4px 12px;
    font-family: var(--xp-font-primary);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.mw-submit-buttons button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue));
    color: var(--xp-white);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Advanced Input Styling */
input[type="text"],
input[type="password"],
textarea {
    border: 1px solid var(--xp-dark-gray);
    background-color: var(--xp-white);
    padding: 3px 4px;
    font-family: var(--xp-font-primary);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--xp-blue);
    outline: 2px solid var(--xp-light-blue);
}

/* Advanced Tab Styling */
#p-views {
    background-color: var(--xp-sky-blue);
    padding: 5px;
    border-bottom: 2px solid var(--xp-blue);
}

#p-views ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

#p-views li {
    margin-right: 5px;
}

#p-views li a {
    display: block;
    padding: 4px 10px;
    background-color: var(--xp-gray);
    border: 1px solid var(--xp-dark-gray);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    text-decoration: none;
    color: var(--xp-text-color);
    transition: all 0.2s ease;
}

#p-views li.selected a {
    background-color: var(--xp-blue);
    color: var(--xp-white);
    font-weight: bold;
}

/* Content Area with XP Styling */
#content {
    background-color: var(--xp-white);
    border: 2px solid var(--xp-blue);
    border-radius: 5px;
    padding: 20px;
    margin: 15px;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}

/* Headings with XP Flair */
h1, h2, h3, h4, h5, h6 {
    color: var(--xp-blue);
    border-bottom: 1px solid var(--xp-light-blue);
    padding-bottom: 8px;
    font-family: var(--xp-font-primary);
}

/* Advanced Link Styling */
a {
    color: var(--xp-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--xp-highlight-blue);
    text-decoration: underline;
}

/* Sidebar with XP Design */
#sidebar {
    background-color: var(--xp-gray);
    border: 1px solid var(--xp-dark-gray);
    border-radius: 4px;
    padding: 15px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    background-color: var(--xp-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--xp-blue);
    border: 2px solid var(--xp-gray);
    border-radius: 8px;
}

/* Enhanced Tooltip Styling */
.tooltiptext {
    background-color: var(--xp-light-blue);
    border: 1px solid var(--xp-blue);
    border-radius: 3px;
    padding: 6px;
    font-size: 0.9em;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Responsive Design Considerations */
@media screen and (max-width: 768px) {
    #content {
        margin: 10px;
        padding: 15px;
        border-radius: 3px;
    }
    #p-navigation {
        padding: 10px;
    }
    #p-views {
        flex-direction: column;
    }
    #p-views li {
        margin-bottom: 5px;
    }
}

/* Additional Styling for Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid var(--xp-dark-gray);
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--xp-blue);
    color: var(--xp-white);
}

/* Footer Styling */
#footer {
    background-color: var(--xp-light-blue);
    color: var(--xp-text-color);
    padding: 10px;
    text-align: center;
    border-top: 2px solid var(--xp-blue);
}

/* Alert Boxes */
.alert {
    background-color: #FFCC00;
    border: 1px solid #FF9900;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    color: var(--xp-text-color);
}

/* Code Blocks */
pre {
    background-color: var(--xp-silver-gray);
    border: 1px solid var(--xp-dark-gray);
    padding: 10px;
    border-radius: 3px;
    overflow: auto;
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--xp-dark-gray);
    border-radius: 3px;
}

/* Custom Checkbox and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--xp-blue);
}

/* Custom List Styles */
ul.custom-list {
    list-style-type: square;
    padding-left: 20px;
}

ol.custom-list {
    padding-left: 20px;
}

/* Custom Blockquotes */
blockquote {
    border-left: 4px solid var(--xp-blue);
    padding: 10px 15px;
    background-color: var(--xp-light-blue);
    color: var(--xp-text-color);
    margin: 10px 0;
}

/* Custom Progress Bar */
.progress {
    width: 100%;
    background-color: var(--xp-silver-gray);
    border-radius: 5px;
}

.progress-bar {
    height: 20px;
    background-color: var(--xp-blue);
    width: 0; /* Set width dynamically */
    border-radius: 5px;
}

/* Custom Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--xp-white);
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid var(--xp-blue);
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 5px;
}

/* Custom Close Button for Modal */
.close {
    color: var(--xp-dark-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--xp-blue);
    text-decoration: none;
    cursor: pointer;
}