|
 |
| (17 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /* MediaWiki:Mainpage.css - Improved dedicated CSS for Main Page */ | | /* MediaWiki:Mainpage.css â title hide only. All design in Common.css. */ |
| Â | | #firstHeading, .firstHeading, .mw-page-title-main { display: none !important; } |
| /* ============================================================
| |
| Â MAIN PAGE ONLY SAFETY
| |
| Â ============================================================ */
| |
| Â | |
| /* Hide the page title only on Main Page */
| |
| body.page-Main_Page #firstHeading,
| |
| body.page-Main_Page .firstHeading,
| |
| body.page-Main_Page .mw-page-title-main,
| |
| body.page-Main_Page .page-header__title {
| |
| display: none !important;
| |
| }
| |
| Â | |
| /* General spacing cleanup for main page content */
| |
| body.page-Main_Page .mw-parser-output {
| |
| font-size: 100%;
| |
| line-height: 1.6;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â TOP BANNER
| |
| Â ============================================================ */
| |
| Â | |
| #mp-topbanner {
| |
| background: #cee0f2;
| |
| border: 1px solid #a2a9b1;
| |
| padding: 12px 16px;
| |
| margin: 0 0 14px 0;
| |
| text-align: center;
| |
| font-size: 1.05em;
| |
| line-height: 1.5;
| |
| box-sizing: border-box;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â TWO-COLUMN LAYOUT
| |
| Â ============================================================ */
| |
| Â | |
| #mp-upper {
| |
| display: flex;
| |
| flex-wrap: nowrap;
| |
| gap: 15px;
| |
| margin: 0 0 14px 0;
| |
| align-items: flex-start;
| |
| }
| |
| Â | |
| #mp-left {
| |
| flex: 1 1 55%;
| |
| min-width: 0;
| |
| }
| |
| Â | |
| #mp-right {
| |
| flex: 1 1 45%;
| |
| min-width: 0;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â SECTION HEADINGS
| |
| Â ============================================================ */
| |
| Â | |
| .mp-h2 {
| |
| background: #cee0f2;
| |
| border: 1px solid #a2a9b1;
| |
| border-bottom: none;
| |
| padding: 6px 10px;
| |
| margin: 0;
| |
| font-size: 1em;
| |
| font-weight: 700;
| |
| line-height: 1.4;
| |
| color: #202122;
| |
| }
| |
| Â | |
| .mp-h2-yellow {
| |
| background: #fef6e7;
| |
| }
| |
| Â | |
| .mp-h2-green {
| |
| background: #ecf5ec;
| |
| }
| |
| Â | |
| .mp-h2-gray {
| |
| background: #dce3ee;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â SECTION BODIES
| |
| Â ============================================================ */
| |
| Â | |
| .mp-body {
| |
| background: #ffffff;
| |
| border: 1px solid #a2a9b1;
| |
| border-top: none;
| |
| padding: 10px 12px;
| |
| margin: 0 0 12px 0;
| |
| font-size: 0.95em;
| |
| line-height: 1.65;
| |
| color: #202122;
| |
| box-sizing: border-box;
| |
| word-wrap: break-word;
| |
| overflow-wrap: anywhere;
| |
| }
| |
| Â | |
| /* Paragraphs */
| |
| .mp-body p {
| |
| margin: 0 0 0.8em 0;
| |
| }
| |
| Â | |
| .mp-body p:last-child {
| |
| margin-bottom: 0;
| |
| }
| |
| Â | |
| /* Lists */
| |
| .mp-body ul,
| |
| .mp-body ol {
| |
| margin: 0.25em 0 0.75em 1.4em;
| |
| padding: 0;
| |
| }
| |
| Â | |
| .mp-body li {
| |
| margin: 0.2em 0;
| |
| }
| |
| Â | |
| .mp-body li:empty {
| |
| display: none;
| |
| }
| |
| Â | |
| /* Nested lists */
| |
| .mp-body ul ul,
| |
| .mp-body ol ol,
| |
| .mp-body ul ol,
| |
| .mp-body ol ul {
| |
| margin-top: 0.25em;
| |
| margin-bottom: 0.25em;
| |
| }
| |
| Â | |
| /* Links inside body */
| |
| .mp-body a {
| |
| text-decoration: none;
| |
| }
| |
| Â | |
| .mp-body a:hover {
| |
| text-decoration: underline;
| |
| }
| |
| Â | |
| /* Tables only: horizontal scroll if needed */
| |
| .mp-body table {
| |
| display: block;
| |
| width: 100%;
| |
| max-width: 100%;
| |
| overflow-x: auto;
| |
| border-collapse: collapse;
| |
| }
| |
| Â | |
| /* Images */
| |
| .mp-body img {
| |
| max-width: 100%;
| |
| height: auto;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â PORTAL GRID
| |
| Â ============================================================ */
| |
| Â | |
| #mp-portals {
| |
| margin-top: 14px;
| |
| border: 1px solid #a2a9b1;
| |
| box-sizing: border-box;
| |
| background: #ffffff;
| |
| }
| |
| Â | |
| #mp-portals-header {
| |
| background: #dce3ee;
| |
| border-bottom: 1px solid #a2a9b1;
| |
| padding: 6px 12px;
| |
| font-weight: 700;
| |
| font-size: 0.95em;
| |
| line-height: 1.4;
| |
| color: #202122;
| |
| }
| |
| Â | |
| .mp-portal-grid {
| |
| display: flex;
| |
| flex-wrap: wrap;
| |
| background: #ffffff;
| |
| }
| |
| Â | |
| .mp-portal-cell {
| |
| flex: 1 1 15%;
| |
| min-width: 100px;
| |
| border-right: 1px solid #eaecf0;
| |
| border-bottom: 1px solid #eaecf0;
| |
| padding: 10px 8px;
| |
| text-align: center;
| |
| font-size: 0.9em;
| |
| line-height: 1.45;
| |
| box-sizing: border-box;
| |
| transition: background-color 0.15s ease-in-out;
| |
| }
| |
| Â | |
| .mp-portal-cell:hover {
| |
| background: #eaf3fb;
| |
| }
| |
| Â | |
| .mp-portal-cell a {
| |
| color: #3366cc;
| |
| font-weight: 700;
| |
| display: block;
| |
| text-decoration: none;
| |
| }
| |
| Â | |
| .mp-portal-cell a:hover {
| |
| text-decoration: underline;
| |
| }
| |
| Â | |
| .mp-portal-icon {
| |
| display: block;
| |
| font-size: 1.8em;
| |
| line-height: 1;
| |
| margin-bottom: 4px;
| |
| }
| |
| Â | |
| .mp-portal-desc {
| |
| display: block;
| |
| margin-top: 2px;
| |
| color: #54595d;
| |
| font-size: 0.85em;
| |
| font-weight: 400;
| |
| line-height: 1.4;
| |
| }
| |
| Â | |
| /* Remove visual double borders at row/edge ends where possible */
| |
| .mp-portal-grid .mp-portal-cell:last-child {
| |
| border-right: none;
| |
| }
| |
| Â | |
| /* ============================================================
| |
| Â RESPONSIVE DESIGN
| |
| Â ============================================================ */
| |
| Â | |
| /* Tablet and smaller desktop */
| |
| @media screen and (max-width: 1000px) {
| |
| #mp-upper {
| |
| display: block;
| |
| margin-bottom: 0;
| |
| }
| |
| Â | |
| #mp-left,
| |
| #mp-right {
| |
| width: 100%;
| |
| display: block;
| |
| margin-bottom: 15px;
| |
| }
| |
| Â | |
| .mp-portal-cell {
| |
| flex: 1 1 30%;
| |
| }
| |
| }
| |
| Â | |
| /* Mobile phones */
| |
| @media screen and (max-width: 600px) {
| |
| #mp-topbanner {
| |
| padding: 10px;
| |
| font-size: 0.98em;
| |
| }
| |
| Â | |
| .mp-h2 {
| |
| padding: 6px 8px;
| |
| font-size: 0.98em;
| |
| }
| |
| Â | |
| .mp-body {
| |
| padding: 8px 10px;
| |
| font-size: 0.95em;
| |
| }
| |
| Â | |
| .mp-body ul,
| |
| .mp-body ol {
| |
| margin-left: 1.2em;
| |
| }
| |
| Â | |
| .mp-portal-cell {
| |
| flex: 1 1 45%;
| |
| padding: 10px 6px;
| |
| }
| |
| }
| |
| Â | |
| /* Very small phones */
| |
| @media screen and (max-width: 400px) {
| |
| .mp-portal-cell {
| |
| flex: 1 1 100%;
| |
| }
| |
| } | |
/* MediaWiki:Mainpage.css â title hide only. All design in Common.css. */
#firstHeading, .firstHeading, .mw-page-title-main { display: none !important; }