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 2: | Line 2: | ||
EXISTING STYLES (unchanged) | EXISTING STYLES (unchanged) | ||
========================= */ | ========================= */ | ||
.main-column { | .main-column { | ||
padding-top: 2em; | padding-top: 2em; | ||
| Line 14: | Line 13: | ||
height: 5.5em; | height: 5.5em; | ||
margin-top: -1.5em; | margin-top: -1.5em; | ||
} | } | ||
.wikitable > tr > th, | .wikitable > tr > th, | ||
.wikitable > * > tr > th { | .wikitable > * > tr > th { | ||
background-color: #2161c0; | |||
color: white; | |||
} | } | ||
/* ========================= | |||
TOC IMPROVEMENTS | |||
========================= */ | |||
#toc.toc { | #toc.toc { | ||
padding: | background-color: #f8f9fa; | ||
border: 1px solid #eaecf0; | |||
border-radius: 8px; | |||
padding: 16px; | |||
margin: 16px 0; | |||
box-shadow: 0px 1px 3px rgba(0,0,0,0.1); | |||
} | |||
#toc.toc .toctitle { | |||
font-weight: bold; | |||
color: #212121; | |||
} | |||
#toc.toc ul { | |||
margin-left: 1em; | |||
} | |||
#toc.toc a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
} | } | ||
#toc.toc a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
/* Hide toolbox */ | |||
#p-tb { | #p-tb { | ||
display: none; | display: none; | ||
| Line 33: | Line 59: | ||
MATERIAL UI–LIKE STYLES | MATERIAL UI–LIKE STYLES | ||
========================= */ | ========================= */ | ||
/* Primary color: #3577BD; Hover: #4C8DCE */ | /* Primary color: #3577BD; Hover: #4C8DCE */ | ||
.material-card { | .material-card { | ||
background-color: #ffffff; /* surface */ | |||
border-radius: 8px; | |||
box-shadow: 0px 2px 4px rgba(0,0,0,0.24); | |||
padding: 16px; | |||
margin: 16px 0; | |||
} | } | ||
.material-heading { | .material-heading { | ||
color: #212121; /* primary text */ | |||
margin-bottom: 8px; | |||
font-weight: bold; | |||
font-size: 1.25rem; | |||
} | } | ||
.material-body { | .material-body { | ||
color: #404040; /* darker secondary text for better readability */ | |||
font-size: 0.95rem; | |||
line-height: 1.5; | |||
} | |||
/* Regular links styling */ | |||
.material-card a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
} | |||
.material-card a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
/* Button styling for both HTML and wiki syntax */ | |||
.material-button, a.material-button, .material-card a.material-button { | |||
background-color: #3577BD; /* primary */ | |||
color: #ffffff !important; | |||
padding: 8px 16px; | |||
border-radius: 4px; | |||
text-decoration: none !important; | |||
font-weight: bold; | |||
display: inline-block; | |||
box-shadow: 0px 1px 3px rgba(0,0,0,0.3); | |||
transition: background-color 0.2s, transform 0.1s; | |||
margin: 8px 0; | |||
} | |||
.material-button:hover, a.material-button:hover { | |||
background-color: #4C8DCE; /* lighter hover color */ | |||
transform: translateY(-1px); | |||
box-shadow: 0px 2px 4px rgba(0,0,0,0.4); | |||
} | |||
/* Image styling in cards */ | |||
.material-card .thumb { | |||
border: none; | |||
background-color: transparent; | |||
margin: 8px auto; | |||
} | } | ||
.material- | .material-card .thumbinner { | ||
border: none; | |||
background-color: transparent; | |||
} | } | ||
. | |||
/* Make categories and references look nicer */ | |||
.catlinks { | |||
background-color: #f8f9fa; | |||
border: 1px solid #eaecf0; | |||
border-radius: 8px; | |||
padding: 12px; | |||
margin: 16px 0; | |||
} | |||
ol.references { | |||
font-size: 0.9em; | |||
} | } | ||
Revision as of 03:02, 26 February 2025
/* =========================
EXISTING STYLES (unchanged)
========================= */
.main-column {
padding-top: 2em;
padding-bottom: 2em;
}
div#mw-navigation {
align-content: center;
}
#p-logo .mw-wiki-logo {
width: 7.5em;
height: 5.5em;
margin-top: -1.5em;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background-color: #2161c0;
color: white;
}
/* =========================
TOC IMPROVEMENTS
========================= */
#toc.toc {
background-color: #f8f9fa;
border: 1px solid #eaecf0;
border-radius: 8px;
padding: 16px;
margin: 16px 0;
box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
}
#toc.toc .toctitle {
font-weight: bold;
color: #212121;
}
#toc.toc ul {
margin-left: 1em;
}
#toc.toc a {
color: #3577BD;
text-decoration: none;
}
#toc.toc a:hover {
text-decoration: underline;
color: #4C8DCE;
}
/* Hide toolbox */
#p-tb {
display: none;
}
/* =========================
MATERIAL UI–LIKE STYLES
========================= */
/* Primary color: #3577BD; Hover: #4C8DCE */
.material-card {
background-color: #ffffff; /* surface */
border-radius: 8px;
box-shadow: 0px 2px 4px rgba(0,0,0,0.24);
padding: 16px;
margin: 16px 0;
}
.material-heading {
color: #212121; /* primary text */
margin-bottom: 8px;
font-weight: bold;
font-size: 1.25rem;
}
.material-body {
color: #404040; /* darker secondary text for better readability */
font-size: 0.95rem;
line-height: 1.5;
}
/* Regular links styling */
.material-card a {
color: #3577BD;
text-decoration: none;
}
.material-card a:hover {
text-decoration: underline;
color: #4C8DCE;
}
/* Button styling for both HTML and wiki syntax */
.material-button, a.material-button, .material-card a.material-button {
background-color: #3577BD; /* primary */
color: #ffffff !important;
padding: 8px 16px;
border-radius: 4px;
text-decoration: none !important;
font-weight: bold;
display: inline-block;
box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
transition: background-color 0.2s, transform 0.1s;
margin: 8px 0;
}
.material-button:hover, a.material-button:hover {
background-color: #4C8DCE; /* lighter hover color */
transform: translateY(-1px);
box-shadow: 0px 2px 4px rgba(0,0,0,0.4);
}
/* Image styling in cards */
.material-card .thumb {
border: none;
background-color: transparent;
margin: 8px auto;
}
.material-card .thumbinner {
border: none;
background-color: transparent;
}
/* Make categories and references look nicer */
.catlinks {
background-color: #f8f9fa;
border: 1px solid #eaecf0;
border-radius: 8px;
padding: 12px;
margin: 16px 0;
}
ol.references {
font-size: 0.9em;
}