MediaWiki:Common.css: Difference between revisions
From Ultimate Dragon Ball Online Wiki
Ravenalien (talk | contribs) No edit summary |
Ravenalien (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
padding-top: 2em; | padding-top: 2em; | ||
padding-bottom: 2em; | padding-bottom: 2em; | ||
max-width: 1200px; | |||
margin: 0 auto; | |||
} | } | ||
div#mw-navigation { | div#mw-navigation { | ||
| Line 14: | Line 16: | ||
margin-top: -1.5em; | margin-top: -1.5em; | ||
} | } | ||
body { | |||
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; | |||
line-height: 1.6; | |||
color: #333; | |||
background-color: #f5f5f5; | |||
} | |||
/* ========================= | |||
TABLE STYLES | |||
========================= */ | |||
.wikitable { | |||
border-collapse: collapse; | |||
width: 100%; | |||
margin: 1em 0; | |||
background-color: #fff; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.12); | |||
} | |||
.wikitable > tr > th, | .wikitable > tr > th, | ||
.wikitable > * > tr > th { | .wikitable > * > tr > th { | ||
background-color: #2161c0; | background-color: #2161c0; | ||
color: white; | color: white; | ||
padding: 10px; | |||
text-align: left; | |||
} | |||
.wikitable > tr > td, | |||
.wikitable > * > tr > td { | |||
padding: 8px 10px; | |||
border-top: 1px solid #eee; | |||
} | |||
/* ========================= | |||
TOC IMPROVEMENTS | |||
========================= */ | |||
#toc.toc { | |||
background-color: #fff; | |||
border: none; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin: 20px 0; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
display: inline-block; | |||
min-width: 300px; | |||
} | |||
#toc.toc .toctitle { | |||
font-weight: bold; | |||
color: #212121; | |||
font-size: 1.2em; | |||
border-bottom: 2px solid #3577BD; | |||
padding-bottom: 8px; | |||
margin-bottom: 12px; | |||
} | |||
#toc.toc .toctitle h2 { | |||
font-size: inherit; | |||
display: inline; | |||
} | |||
#toc.toc ul { | |||
margin-left: 1.2em; | |||
margin-bottom: 0.5em; | |||
list-style-type: none; | |||
} | |||
#toc.toc ul ul { | |||
margin-top: 0.3em; | |||
} | |||
#toc.toc li { | |||
margin-bottom: 0.4em; | |||
line-height: 1.4; | |||
} | |||
#toc.toc a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
display: inline-block; | |||
padding: 2px 0; | |||
transition: all 0.2s ease; | |||
} | |||
#toc.toc a:hover { | |||
color: #4C8DCE; | |||
transform: translateX(2px); | |||
} | |||
/* Hide toolbox */ | |||
#p-tb { | |||
display: none; | |||
} | |||
/* ========================= | |||
MATERIAL UI–LIKE STYLES | |||
========================= */ | |||
.material-card { | |||
background-color: #ffffff; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | |||
padding: 24px; | |||
margin: 24px 0; | |||
border-left: 4px solid #3577BD; | |||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
} | |||
.material-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.15); | |||
} | |||
.material-heading { | |||
color: #2161c0; | |||
margin-bottom: 16px; | |||
font-weight: 600; | |||
font-size: 1.3rem; | |||
padding-bottom: 8px; | |||
border-bottom: 1px solid #f0f0f0; | |||
} | |||
.material-body { | |||
color: #404040; | |||
font-size: 1rem; | |||
line-height: 1.6; | |||
margin-bottom: 16px; | |||
} | |||
.material-body b, .material-body strong { | |||
color: #2161c0; | |||
font-weight: 600; | |||
} | |||
.material-body i, .material-body em { | |||
color: #555; | |||
} | |||
.material-body ul, .material-body ol { | |||
margin-left: 1.5em; | |||
margin-bottom: 1em; | |||
} | |||
.material-body li { | |||
margin-bottom: 0.5em; | |||
} | |||
/* Regular links styling */ | |||
.material-card a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
transition: color 0.2s; | |||
} | |||
.material-card a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
/* Button container with centering */ | |||
.button-container { | |||
margin: 16px 0; | |||
display: block; | |||
text-align: center; | |||
} | |||
/* Style for span with material-button class */ | |||
span.material-button { | |||
background-color: #3577BD; | |||
color: #ffffff; | |||
padding: 10px 16px; | |||
border-radius: 4px; | |||
display: inline-block; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.2); | |||
transition: all 0.2s ease; | |||
margin: 8px 0; | |||
cursor: pointer; | |||
} | |||
/* Style for links inside material-button spans */ | |||
span.material-button a, | |||
span.material-button a:visited, | |||
span.material-button a.external { | |||
color: #ffffff !important; | |||
text-decoration: none !important; | |||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | |||
/* Hover states */ | |||
span.material-button:hover { | |||
background-color: #4C8DCE; | |||
transform: translateY(-1px); | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.2); | |||
} | |||
/* Active state */ | |||
span.material-button:active { | |||
transform: translateY(1px); | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.2); | |||
} | |||
/* Image styling in cards */ | |||
.material-card .thumb { | |||
border: none; | |||
background-color: transparent; | |||
margin: 16px auto; | |||
} | |||
.material-card .thumbinner { | |||
border: none; | |||
background-color: transparent; | |||
text-align: center; | |||
max-width: 100% !important; | |||
width: auto !important; | |||
} | |||
.material-card .thumbcaption { | |||
font-style: italic; | |||
color: #666; | |||
margin-top: 8px; | |||
font-size: 0.95em; | |||
} | |||
.material-card img { | |||
border-radius: 4px; | |||
max-width: 100%; | |||
height: auto; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.1); | |||
} | |||
/* Make categories and references look nicer */ | |||
.catlinks { | |||
background-color: #f8f9fa; | |||
border: none; | |||
border-radius: 8px; | |||
padding: 16px; | |||
margin: 24px 0; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.05); | |||
} | |||
.catlinks a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
} | |||
.catlinks a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
ol.references { | |||
font-size: 0.9em; | |||
background-color: #f9f9f9; | |||
padding: 16px 16px 16px 40px; | |||
border-radius: 8px; | |||
margin-top: 24px; | |||
} | |||
/* ========================= | |||
RESPONSIVE ADJUSTMENTS | |||
========================= */ | |||
@media (max-width: 768px) { | |||
.material-card { | |||
padding: 16px; | |||
} | |||
.material-heading { | |||
font-size: 1.2rem; | |||
} | |||
#toc.toc { | |||
width: 100%; | |||
min-width: 0; | |||
} | |||
.material-body { | |||
font-size: 0.95rem; | |||
} | |||
} | } | ||
Revision as of 03:39, 26 February 2025
/* =========================
EXISTING STYLES (unchanged)
========================= */
.main-column {
padding-top: 2em;
padding-bottom: 2em;
max-width: 1200px;
margin: 0 auto;
}
div#mw-navigation {
align-content: center;
}
#p-logo .mw-wiki-logo {
width: 7.5em;
height: 5.5em;
margin-top: -1.5em;
}
body {
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
/* =========================
TABLE STYLES
========================= */
.wikitable {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background-color: #2161c0;
color: white;
padding: 10px;
text-align: left;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
padding: 8px 10px;
border-top: 1px solid #eee;
}
/* =========================
TOC IMPROVEMENTS
========================= */
#toc.toc {
background-color: #fff;
border: none;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
display: inline-block;
min-width: 300px;
}
#toc.toc .toctitle {
font-weight: bold;
color: #212121;
font-size: 1.2em;
border-bottom: 2px solid #3577BD;
padding-bottom: 8px;
margin-bottom: 12px;
}
#toc.toc .toctitle h2 {
font-size: inherit;
display: inline;
}
#toc.toc ul {
margin-left: 1.2em;
margin-bottom: 0.5em;
list-style-type: none;
}
#toc.toc ul ul {
margin-top: 0.3em;
}
#toc.toc li {
margin-bottom: 0.4em;
line-height: 1.4;
}
#toc.toc a {
color: #3577BD;
text-decoration: none;
display: inline-block;
padding: 2px 0;
transition: all 0.2s ease;
}
#toc.toc a:hover {
color: #4C8DCE;
transform: translateX(2px);
}
/* Hide toolbox */
#p-tb {
display: none;
}
/* =========================
MATERIAL UI–LIKE STYLES
========================= */
.material-card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 24px;
margin: 24px 0;
border-left: 4px solid #3577BD;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.material-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.material-heading {
color: #2161c0;
margin-bottom: 16px;
font-weight: 600;
font-size: 1.3rem;
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
}
.material-body {
color: #404040;
font-size: 1rem;
line-height: 1.6;
margin-bottom: 16px;
}
.material-body b, .material-body strong {
color: #2161c0;
font-weight: 600;
}
.material-body i, .material-body em {
color: #555;
}
.material-body ul, .material-body ol {
margin-left: 1.5em;
margin-bottom: 1em;
}
.material-body li {
margin-bottom: 0.5em;
}
/* Regular links styling */
.material-card a {
color: #3577BD;
text-decoration: none;
transition: color 0.2s;
}
.material-card a:hover {
text-decoration: underline;
color: #4C8DCE;
}
/* Button container with centering */
.button-container {
margin: 16px 0;
display: block;
text-align: center;
}
/* Style for span with material-button class */
span.material-button {
background-color: #3577BD;
color: #ffffff;
padding: 10px 16px;
border-radius: 4px;
display: inline-block;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
transition: all 0.2s ease;
margin: 8px 0;
cursor: pointer;
}
/* Style for links inside material-button spans */
span.material-button a,
span.material-button a:visited,
span.material-button a.external {
color: #ffffff !important;
text-decoration: none !important;
background-image: none !important;
padding-right: 0 !important;
}
/* Hover states */
span.material-button:hover {
background-color: #4C8DCE;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Active state */
span.material-button:active {
transform: translateY(1px);
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
/* Image styling in cards */
.material-card .thumb {
border: none;
background-color: transparent;
margin: 16px auto;
}
.material-card .thumbinner {
border: none;
background-color: transparent;
text-align: center;
max-width: 100% !important;
width: auto !important;
}
.material-card .thumbcaption {
font-style: italic;
color: #666;
margin-top: 8px;
font-size: 0.95em;
}
.material-card img {
border-radius: 4px;
max-width: 100%;
height: auto;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Make categories and references look nicer */
.catlinks {
background-color: #f8f9fa;
border: none;
border-radius: 8px;
padding: 16px;
margin: 24px 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.catlinks a {
color: #3577BD;
text-decoration: none;
}
.catlinks a:hover {
text-decoration: underline;
color: #4C8DCE;
}
ol.references {
font-size: 0.9em;
background-color: #f9f9f9;
padding: 16px 16px 16px 40px;
border-radius: 8px;
margin-top: 24px;
}
/* =========================
RESPONSIVE ADJUSTMENTS
========================= */
@media (max-width: 768px) {
.material-card {
padding: 16px;
}
.material-heading {
font-size: 1.2rem;
}
#toc.toc {
width: 100%;
min-width: 0;
}
.material-body {
font-size: 0.95rem;
}
}