MediaWiki:Common.css: Difference between revisions
From Ragnafied Wiki
No edit summary |
No edit summary |
||
| Line 219: | Line 219: | ||
width: 135px !important; | width: 135px !important; | ||
height: 135px !important; | height: 135px !important; | ||
} | |||
/* Modern Wiki Styling */ | |||
.wiki-header-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding: 20px; | |||
} | |||
.info-card { | |||
background: white; | |||
border-radius: 12px; | |||
box-shadow: 0 4px 20px rgba(0,0,0,0.08); | |||
overflow: hidden; | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
border: 1px solid #e1e8ed; | |||
} | |||
.info-card:hover { | |||
transform: translateY(-5px); | |||
box-shadow: 0 8px 30px rgba(0,0,0,0.12); | |||
} | |||
.card-header { | |||
padding: 16px 20px; | |||
color: white; | |||
font-weight: 600; | |||
font-size: 18px; | |||
text-align: center; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.2); | |||
} | |||
.card-content { | |||
padding: 20px; | |||
} | |||
.modern-table { | |||
border-radius: 8px !important; | |||
overflow: hidden !important; | |||
} | |||
.modern-table tr:hover td { | |||
background: rgba(240, 247, 255, 0.7) !important; | |||
} | |||
.notes-box { | |||
transition: transform 0.2s ease; | |||
} | |||
.notes-box:hover { | |||
transform: scale(1.02); | |||
} | } | ||
Revision as of 17:31, 29 September 2025
/* ===== MEDIAWIKI COMMON.CSS ENHANCEMENTS ===== */
/* Last updated: 2024 */
/* === Improved Tables === */
.wikitable {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
margin: 1em 0;
background: white;
border: 1px solid #a2a9b1;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wikitable th {
background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%);
color: white;
font-weight: 600;
text-align: center;
padding: 12px 8px;
border-bottom: 2px solid #1e3a5f;
font-size: 14px;
}
.wikitable td {
padding: 10px 8px;
border: 1px solid #ddd;
vertical-align: top;
}
.wikitable tr:nth-child(even) {
background-color: #f8f9fa;
}
.wikitable tr:nth-child(odd) {
background-color: #ffffff;
}
.wikitable tr:hover {
background-color: #e3f2fd;
transition: background-color 0.2s ease;
}
/* === Enhanced Navigation === */
#toc {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 6px;
padding: 15px;
margin: 1em 0;
}
.tocnumber {
color: #2c5e9e;
font-weight: bold;
}
/* === Better Links === */
a {
color: #0645ad;
text-decoration: none;
transition: color 0.2s ease;
}
a:hover {
color: #0b0080;
text-decoration: underline;
}
a:visited {
color: #0b0080;
}
a.new {
color: #c20;
}
/* === Content Improvements === */
#content {
line-height: 1.6;
color: #202122;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
color: #2c5e9e;
border-bottom: 1px solid #a2a9b1;
padding-bottom: 0.3em;
margin-top: 1.5em;
}
#content h1 {
border-bottom: 2px solid #2c5e9e;
}
/* === Code Blocks === */
pre, code {
background: #f8f9fa;
border: 1px solid #eaecf0;
border-radius: 4px;
padding: 2px 4px;
font-family: monospace;
}
pre {
padding: 12px;
overflow-x: auto;
}
/* === Responsive Design === */
@media (max-width: 768px) {
.wikitable {
font-size: 14px;
display: block;
overflow-x: auto;
white-space: nowrap;
}
#content {
padding: 10px;
}
.wikitable th,
.wikitable td {
padding: 8px 6px;
}
}
/* === Infoboxes and Special Elements === */
.infobox {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 6px;
padding: 15px;
margin: 1em 0;
}
.navbox {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 4px;
padding: 5px;
}
/* === Custom Header Colors === */
.mw-headline {
color: #2c5e9e;
}
/* === Button Improvements === */
.mw-ui-button {
background: #2c5e9e;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.mw-ui-button:hover {
background: #1e3a5f;
}
/* === Form Elements === */
.mw-input,
textarea {
border: 1px solid #a2a9b1;
border-radius: 4px;
padding: 8px;
font-size: 14px;
}
.mw-input:focus,
textarea:focus {
border-color: #2c5e9e;
outline: none;
box-shadow: 0 0 0 2px rgba(44, 94, 158, 0.2);
}
/* === Print Styles === */
@media print {
.wikitable {
box-shadow: none;
border: 1px solid #000;
}
a {
color: #000;
text-decoration: underline;
}
}
/* Add smooth hover effect */
#p-logo a {
background-image: url('https://wiki.ragnafied.net/images/e/ee/Ragnawikilogo.png') !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-color: transparent !important;
display: block !important;
min-width: 135px !important;
min-height: 135px !important;
transition: all 0.3s ease !important;
}
#p-logo a:hover {
opacity: 0.8 !important;
transform: scale(1.05) !important;
}
#p-logo a img {
opacity: 0 !important;
width: 135px !important;
height: 135px !important;
}
/* Modern Wiki Styling */
.wiki-header-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.info-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #e1e8ed;
}
.info-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.card-header {
padding: 16px 20px;
color: white;
font-weight: 600;
font-size: 18px;
text-align: center;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.card-content {
padding: 20px;
}
.modern-table {
border-radius: 8px !important;
overflow: hidden !important;
}
.modern-table tr:hover td {
background: rgba(240, 247, 255, 0.7) !important;
}
.notes-box {
transition: transform 0.2s ease;
}
.notes-box:hover {
transform: scale(1.02);
}
