MediaWiki:Common.css: Difference between revisions
Appearance
i changed to windows xp css |
test |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Windows XP MediaWiki Theme */ | /* 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 { | body { | ||
font-family: var(--xp-font-primary); | |||
font- | font-size: var(--xp-font-size-base); | ||
color: | background-color: var(--xp-gray); | ||
color: var(--xp-text-color); | |||
margin: 0; | |||
padding: 0; | |||
line-height: 1.4; | |||
} | } | ||
/* Navigation | /* Advanced Navigation Styling */ | ||
# | #p-navigation { | ||
background- | background: linear-gradient(to bottom, var(--xp-light-blue), var(--xp-blue)); | ||
border: | border: 2px solid var(--xp-blue); | ||
border-radius: 4px; | |||
box-shadow: 1px 1px 3px rgba(0,0,0,0.2); | box-shadow: 1px 1px 3px rgba(0,0,0,0.2); | ||
} | } | ||
#p-navigation h3 { | |||
# | background-color: var(--xp-blue); | ||
background-color: # | color: var(--xp-white); | ||
padding: 4px 8px; | |||
color: white; | 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, | .mw-submit-buttons button, | ||
input[type="submit"], | |||
background- | input[type="button"] { | ||
border: 1px solid | background: linear-gradient(to bottom, var(--xp-white), var(--xp-silver-gray)); | ||
border: 1px solid var(--xp-dark-gray); | |||
border- | border-radius: 3px; | ||
padding: 4px 12px; | |||
font-family: var(--xp-font-primary); | |||
box-shadow: 1px 1px | 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, | .mw-submit-buttons button:hover, | ||
input[type="submit"]:hover, | |||
background-color: | 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"], | |||
color: | 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: | 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: 0; | |||
margin: 0; | |||
} | |||
#p-views li { | |||
margin-right: 5px; | |||
} | } | ||
#p-views li a { | #p-views li a { | ||
background-color: | display: block; | ||
border: 1px solid | padding: 4px 10px; | ||
color: | 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 { | #p-views li.selected a { | ||
background-color: # | background-color: var(--xp-blue); | ||
border-bottom: 1px solid | 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; | |||
} | |||
border: 1px solid | |||
/* Sidebar with XP Design */ | |||
padding: | #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 { | ::-webkit-scrollbar { | ||
width: 16px; | width: 16px; | ||
background-color: | background-color: var(--xp-gray); | ||
} | } | ||
::-webkit-scrollbar-thumb { | ::-webkit-scrollbar-thumb { | ||
background-color: | background-color: var(--xp-blue); | ||
border: 2px solid # | 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); | |||
background-color: | color: var(--xp-white); | ||
} | } | ||
/* | /* Footer Styling */ | ||
#footer { | |||
background-color: | background-color: var(--xp-light-blue); | ||
color: | color: var(--xp-text-color); | ||
padding: 2px | padding: 10px; | ||
text-align: center; | |||
border-top: 2px solid var(--xp-blue); | |||
} | } | ||
/* | /* Alert Boxes */ | ||
.alert { | |||
input[type=" | background-color: #FFCC00; | ||
border-color: | border: 1px solid #FF9900; | ||
background-color: | 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; | |||
} | } |