MediaWiki:Common.css
Revision as of 12:18, 2 August 2024 by Prince of asia (talk | contribs)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* General styles */
body {
font-family: 'Open Sans', sans-serif;
line-height: 1.6;
color: #333;
background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg) no-repeat fixed top center / cover;
background-color: #fcf8fe;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: 'Open Sans', sans-serif;
color: #333;
margin-bottom: 15px;
}
p {
margin-bottom: 15px;
}
/* Links */
a {
color: #7c25b8;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #5a1d8a;
text-decoration: underline;
}
/* Header */
.mw-head {
background-color: #522F65;
color: white;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mw-head a {
color: #e3d4f3;
transition: color 0.3s ease;
}
.mw-head a:hover {
color: #ffffff;
}
/* Navigation */
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
padding: 10px 15px;
display: block;
color: #7c25b8;
font-weight: bold;
transition: background-color 0.3s, color 0.3s;
}
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
background-color: #e3d4f3;
color: #5a1d8a;
}
/* Sidebar */
#mw-panel {
background-color: #f3f0f9;
padding: 10px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#mw-panel .vector-menu-content-list a {
color: #522F65;
font-weight: bold;
}
#mw-panel .vector-menu-content-list a:hover {
color: #7c25b8;
}
/* Content area */
.mw-body {
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
/* Buttons */
.button, input[type="submit"], input[type="button"] {
background-color: #7c25b8;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
background-color: #5a1d8a;
}
/* Forms */
input[type="text"], input[type="password"], textarea {
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
transition: border-color 0.3s ease;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
border-color: #7c25b8;
outline: none;
}
/* Images */
.mw-body img {
max-width: 100%;
height: auto;
border-radius: 4px;
}
/* Footer */
.footer {
background-color: #522F65;
color: white;
padding: 20px;
text-align: center;
font-size: 14px;
margin-top: 20px;
}
/* Responsive design */
@media (max-width: 768px) {
.mw-body {
padding: 15px;
}
.infobox {
float: none;
margin-left: 0;
width: 100%;
}
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
padding: 10px;
}
}
/* Infoboxes */
.infobox {
border: 1px solid #020202;
background-color: #f9f9f9;
color: black;
margin-bottom: 0.2em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.infobox td,
.infobox th {
vertical-align: top;
padding: 5px;
}
.infobox caption {
font-size: larger;
margin-left: inherit;
font-weight: bold;
background-color: #522F65;
color: white;
padding: 5px;
}
/* Tables */
.table.ktv-table > :first-child > tr:first-child,
.table.ktv-table > tbody > tr.heading,
.table.ktv-table > :first-child > tr:first-child > *,
.table.ktv-table > tbody > tr.heading > * {
background-color: #522F65 !important;
border-color: #777d9e !important;
color: white;
}
.table.ktv-table > tbody > tr:nth-child(odd),
.table > tbody > tr.ktv-table:nth-child(odd) {
background-color: #dfe1ec;
}
/* Accessibility */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Remove header on Main_Page */
body.page-Main_Page.ns-subject h1.firstHeading {
display: none;
}
/* Custom classes */
.content-box {
background-color: #ffffff;
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
p.white {
color: #FFFFFF;
}