MediaWiki:Common.css: Difference between revisions
Appearance
test |
test |
||
Line 1: | Line 1: | ||
/* Windows XP MediaWiki Theme */ | /* Windows XP MediaWiki Ultimate Theme */ | ||
:root { | :root { | ||
/* Extended Color Palette */ | |||
--xp-blue: #0A246A; | --xp-blue: #0A246A; | ||
--xp-light-blue: #A6CAF0; | --xp-light-blue: #A6CAF0; | ||
--xp-sky-blue: #C6D3E6; | |||
--xp-gray: #F0F0F0; | --xp-gray: #F0F0F0; | ||
--xp-silver-gray: #E1E1E1; | |||
--xp-dark-gray: #808080; | --xp-dark-gray: #808080; | ||
--xp-charcoal: #404040; | |||
--xp-white: #FFFFFF; | --xp-white: #FFFFFF; | ||
--xp-text-color: #000000; | --xp-text-color: #000000; | ||
--xp- | --xp-highlight-blue: #316AC5; | ||
--xp- | --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: | font-family: var(--xp-font-primary); | ||
font-size: var(--xp-font-size-base); | |||
background-color: var(--xp-gray); | background-color: var(--xp-gray); | ||
color: var(--xp-text-color); | color: var(--xp-text-color); | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
line-height: 1.4; | |||
} | } | ||
/* Navigation Styling */ | /* Advanced Navigation Styling */ | ||
#p-navigation { | #p-navigation { | ||
background- | background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue)); | ||
border: 2px solid var(--xp-blue); | border: 2px solid var(--xp-blue); | ||
border-radius: 4px; | border-radius: 4px; | ||
box-shadow: 1px 1px 3px rgba(0,0,0,0.2); | |||
} | } | ||
Line 30: | Line 41: | ||
background-color: var(--xp-blue); | background-color: var(--xp-blue); | ||
color: var(--xp-white); | color: var(--xp-white); | ||
padding: | padding: 4px 8px; | ||
margin: 0; | margin: 0; | ||
font-weight: bold; | font-weight: bold; | ||
text-transform: uppercase; | |||
letter-spacing: 1px; | |||
} | } | ||
#p-navigation ul { | #p-navigation ul { | ||
list-style-type: none; | list-style-type: none; | ||
padding: | padding: 5px; | ||
margin: | margin: 0; | ||
} | } | ||
Line 45: | Line 58: | ||
text-decoration: none; | text-decoration: none; | ||
display: block; | display: block; | ||
padding: | padding: 3px 8px; | ||
transition: | transition: all 0.2s ease; | ||
border-radius: 2px; | |||
} | } | ||
#p-navigation li a:hover { | #p-navigation li a:hover { | ||
background-color: var(--xp-blue); | background-color: var(--xp-highlight-blue); | ||
color: var(--xp-white); | color: var(--xp-white); | ||
box-shadow: inset 0 0 3px rgba(0,0,0,0.3); | |||
} | } | ||
/* | /* Enhanced Button Styling */ | ||
.mw-submit-buttons button, | .mw-submit-buttons button, | ||
input[type="submit"], | input[type="submit"], | ||
input[type="button"] { | input[type="button"] { | ||
background- | background: linear-gradient(to bottom, var(--xp-white), var(--xp-silver-gray)); | ||
border: 1px solid var(--xp-dark-gray); | |||
border | border-radius: 3px; | ||
border- | padding: 4px 12px; | ||
padding: | font-family: var(--xp-font-primary); | ||
font-family: | box-shadow: 1px 1px 3px rgba(0,0,0,0.1); | ||
box-shadow: 1px 1px | |||
cursor: pointer; | cursor: pointer; | ||
outline: none; | |||
transition: all 0.2s ease; | |||
} | } | ||
Line 71: | Line 87: | ||
input[type="submit"]:hover, | input[type="submit"]:hover, | ||
input[type="button"]:hover { | input[type="button"]:hover { | ||
background-color: var(--xp- | 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); | |||
} | } | ||
/* Input | /* Advanced Input Styling */ | ||
input[type="text"], | input[type="text"], | ||
input[type="password"], | input[type="password"], | ||
textarea { | textarea { | ||
border: 1px solid var(--xp- | border: 1px solid var(--xp-dark-gray); | ||
background-color: var(--xp-white); | background-color: var(--xp-white); | ||
padding: | padding: 3px 4px; | ||
font-family: | 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 { | #p-views ul { | ||
display: flex; | |||
list-style: none; | |||
padding: | padding: 0; | ||
margin: 0; | |||
} | } | ||
#p-views li { | #p-views li { | ||
margin-right: 5px; | margin-right: 5px; | ||
} | } | ||
#p-views li a { | #p-views li a { | ||
display: block; | |||
padding: 4px 10px; | |||
background-color: var(--xp-gray); | background-color: var(--xp-gray); | ||
border: 1px solid var(--xp-border- | border: 1px solid var(--xp-dark-gray); | ||
border-bottom: none; | |||
border-radius: 3px 3px 0 0; | |||
text-decoration: none; | text-decoration: none; | ||
color: var(--xp-text-color); | color: var(--xp-text-color); | ||
transition: all 0.2s ease; | |||
} | } | ||
Line 107: | Line 144: | ||
background-color: var(--xp-blue); | background-color: var(--xp-blue); | ||
color: var(--xp-white); | color: var(--xp-white); | ||
font-weight: bold; | |||
} | } | ||
/* Content Area */ | /* Content Area with XP Styling */ | ||
#content { | #content { | ||
background-color: var(--xp-white); | background-color: var(--xp-white); | ||
border: 2px solid var(--xp-blue); | border: 2px solid var(--xp-blue); | ||
padding: | border-radius: 5px; | ||
margin: | padding: 20px; | ||
box-shadow: | margin: 15px; | ||
box-shadow: 3px 3px 6px rgba(0,0,0,0.15); | |||
} | } | ||
/* Headings */ | /* Headings with XP Flair */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
color: var(--xp-blue); | color: var(--xp-blue); | ||
border-bottom: 1px solid var(--xp-light-blue); | border-bottom: 1px solid var(--xp-light-blue); | ||
padding-bottom: | padding-bottom: 8px; | ||
font-family: var(--xp-font-primary); | |||
} | } | ||
/* | /* Advanced Link Styling */ | ||
a { | a { | ||
color: var(--xp-blue); | color: var(--xp-blue); | ||
text-decoration: none; | text-decoration: none; | ||
transition: all 0.2s ease; | |||
} | } | ||
a:hover { | a:hover { | ||
color: var(--xp-highlight-blue); | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* Sidebar */ | /* Sidebar with XP Design */ | ||
#sidebar { | #sidebar { | ||
background-color: var(--xp-gray); | background-color: var(--xp-gray); | ||
border: 1px solid var(--xp-border- | border: 1px solid var(--xp-dark-gray); | ||
padding: | border-radius: 4px; | ||
padding: 15px; | |||
box-shadow: 1px 1px 3px rgba(0,0,0,0.1); | |||
} | } | ||
/* | /* Custom Scrollbar */ | ||
::-webkit-scrollbar { | ::-webkit-scrollbar { | ||
width: 16px; | width: 16px; | ||
Line 151: | Line 195: | ||
background-color: var(--xp-blue); | background-color: var(--xp-blue); | ||
border: 2px solid var(--xp-gray); | border: 2px solid var(--xp-gray); | ||
border-radius: 8px; | |||
} | } | ||
/* | /* Enhanced Tooltip Styling */ | ||
.tooltiptext { | .tooltiptext { | ||
background-color: var(--xp-light-blue); | background-color: var(--xp-light-blue); | ||
border: 1px solid var(--xp-blue); | border: 1px solid var(--xp-blue); | ||
padding: | border-radius: 3px; | ||
font-size: 0. | padding: 6px; | ||
font-size: 0.9em; | |||
box-shadow: 2px 2px 4px rgba(0,0,0,0.2); | |||
} | } | ||
/* Responsive | /* Responsive Design Considerations */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
#content { | #content { | ||
margin: | margin: 10px; | ||
padding: 15px; | |||
border-radius: 3px; | |||
} | |||
#p-navigation { | |||
padding: 10px; | 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; | |||
} | } |
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;
}