MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) No edit summary |
Myriad-admin (talk | contribs) No edit summary |
||
Line 239: | Line 239: | ||
} | } | ||
/* ===== MAIN PAGE CARDS ===== */ | /* ===== MAIN PAGE CARDS - IMPROVED ===== */ | ||
.mainpage-cards { | .mainpage-cards { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 2rem; | ||
margin: | margin: 3rem auto; | ||
max-width: 1200px; | max-width: 1200px; | ||
padding: 0 1rem; | padding: 0 1rem; | ||
Line 251: | Line 251: | ||
.mainpage-card { | .mainpage-card { | ||
background: #fff | background: #fff; | ||
border-radius: | border-radius: 16px; | ||
box-shadow: 0 | box-shadow: 0 6px 18px rgba(0,0,0,0.08); | ||
text-align: center | text-align: center; | ||
padding: | padding: 2rem 1rem; | ||
flex: 0 1 220px | flex: 0 1 220px; | ||
max-width: 220px | max-width: 220px; | ||
color: var(--myriad-blue); | |||
color: var(--myriad-blue) | position: relative; | ||
overflow: hidden; | |||
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease; | |||
} | } | ||
/* | /* Top gradient stripe */ | ||
.mainpage-card | .mainpage-card::before { | ||
content: ""; | |||
display: block; | |||
height: 5px; | |||
width: 100%; | |||
border-radius: 16px 16px 0 0; | |||
background: linear-gradient(90deg, var(--myriad-blue), var(--myriad-pink)); | |||
margin-bottom: 1rem; | |||
} | |||
/* Card icons */ | |||
.mainpage-card .card-icon, | .mainpage-card .card-icon, | ||
.mainpage-card .card-icon svg, | .mainpage-card .card-icon svg, | ||
.mainpage-card .card-icon i { | .mainpage-card .card-icon i { | ||
color: var(--myriad-blue) | color: var(--myriad-blue); | ||
fill: var(--myriad-blue) | fill: var(--myriad-blue); | ||
transition: | transition: transform 0.3s ease, color 0.3s ease; | ||
} | |||
/* Card titles */ | |||
.mainpage-card h3 { | |||
font-size: 1.25rem; | |||
margin-bottom: 0.5rem; | |||
font-weight: 600; | |||
} | } | ||
/* | /* Card description */ | ||
.mainpage-card | .mainpage-card p { | ||
font-size: 0.95rem; | |||
line-height: 1.4; | |||
color: #333; | |||
margin: 0.5rem 0 1rem 0; | |||
color: | |||
} | } | ||
/* | /* Hover effects */ | ||
.mainpage-card:hover { | .mainpage-card:hover { | ||
transform: translateY(- | transform: translateY(-8px) scale(1.03); | ||
box-shadow: 0 | box-shadow: 0 12px 25px rgba(0,0,0,0.15); | ||
border: 2px solid var(--myriad-blue) | border: 2px solid var(--myriad-blue); | ||
background: #f8f8ff; | |||
} | } | ||
.mainpage-card:hover .card-icon { | |||
transform: scale(1.2) rotate(5deg); | |||
color: var(--myriad-purple); | |||
.mainpage-card:hover .card-icon | |||
transform: scale(1. | |||
} | } | ||
/* Hover text and icon color pop */ | |||
.mainpage-card:hover h3, | .mainpage-card:hover h3, | ||
.mainpage-card:hover .card-icon, | .mainpage-card:hover .card-icon, | ||
.mainpage-card:hover .card-icon svg path, | .mainpage-card:hover .card-icon svg path, | ||
.mainpage-card:hover .card-icon i { | .mainpage-card:hover .card-icon i { | ||
color: #5F6CFF | color: #5F6CFF; | ||
fill: #5F6CFF | fill: #5F6CFF; | ||
} | } | ||
/* Responsive */ | |||
/* | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .mainpage-cards { | ||
gap: 1rem; | |||
padding: 0 1rem; | |||
} | } | ||
. | .mainpage-card { | ||
flex | flex: 1 1 90%; | ||
max-width: 90%; | |||
} | } | ||
} | } | ||
/* ===== FOOTER STYLES ===== */ | /* ===== FOOTER STYLES ===== */ |
Revision as of 12:27, 13 August 2025
/* ===== IMPORT BARLOW ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');
/* ===== GLOBAL FONT ===== */
html, body, #content, #mw-content-text, .drg-navbar-container, .mainpage-card, #drg-footer, .drg-footer-inner, .drg-column {
font-family: 'Barlow', Arial, sans-serif;
}
/* ===== HIDE VECTOR PORTLETS & DEFAULT FOOTER LINKS ===== */
#p-logo,
#mw-head,
#mw-head-base,
#mw-navigation,
#mw-panel,
#mw-mf-page-header,
[id^="mw-mf-"],
header.vector-header,
.vector-page-toolbar,
header.mw-body-header.vector-page-titlebar,
#footer-places,
#footer-info-lastmod,
#p-views,
#p-cactions,
*#p-personal,
.vector-user-links,
#left-navigation,
#right-navigation {
display: none !important;
}
/* ===== REMOVE ALL <hr> ===== */
hr {
display: none !important;
}
/* ===== RESET & BASE STYLING ===== */
html {
font-size: 100%;
margin: 0;
min-height: 100vh;
background: #fff;
}
body {
margin: 0;
padding-top: 60px;
background: #fff;
color: #000;
display: flex;
flex-direction: column;
min-height: 100vh;
}
#content,
#mw-content-text {
flex-grow: 1;
}
/* ===== MYRIAD COLOR PALETTE ===== */
:root {
--myriad-blue: #374CFF;
--myriad-purple: #8836EA;
--myriad-pink: #DB20D2;
--myriad-yellow: #FFCE00;
--myriad-green: #5AE09A;
--myriad-light: #e5ccff;
}
/* ===== GLOBAL LINKS & BUTTONS ===== */
a {
color: var(--myriad-blue);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.drg-button {
display: inline-block;
padding: .5em 1em;
font-variant: small-caps;
border-radius: 7px;
background: var(--myriad-blue);
color: #fff !important;
transition: background 200ms;
text-decoration: none !important;
}
/* === Responsive logo === */
.logo-container {
max-width: 43.75rem; /* 700px ÷ 16 */
margin: 0 auto;
padding: 0.3125rem; /* 5px ÷ 16 */
text-align: center;
}
.responsive-logo img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* ===== NAVBAR ===== */
#drg-navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #fff;
border-bottom: 1px solid #ddd;
z-index: 10000;
overflow: visible !important;
}
.drg-navbar-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
padding: .75em 1em;
gap: 1em;
flex-wrap: nowrap;
overflow-x: visible !important;
position: relative;
}
.drg-navbar-logo {
display: flex;
align-items: center;
gap: .5em;
flex-shrink: 0;
margin-right: 2em;
}
.drg-navbar-logo img {
height: 40px;
width: auto;
}
.drg-navbar-logo .drg-logo-text {
font-weight: bold;
font-size: 1.25rem;
color: #000;
}
/* ===== NAVIGATION DROPDOWN ===== */
.drg-nav {
position: relative;
cursor: pointer;
z-index: 10002;
}
.drg-nav > span {
font-weight: 500;
padding: .4em .6em;
}
.drg-nav > span::after {
content: "▾";
margin-left: .3em;
font-size: .75em;
}
.drg-nav-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
list-style: none;
margin: .2em 0 0;
padding: 0;
min-width: 160px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 9999 !important;
}
.drg-nav-dropdown li a {
display: block;
padding: .5em 1em;
color: #000;
text-decoration: none;
white-space: nowrap;
}
.drg-nav-dropdown li a:hover {
background: #f5f5f5;
}
.drg-nav:hover .drg-nav-dropdown {
display: block !important;
}
.flat-link {
font-weight: 500;
margin-right: 1.5em;
}
.drg-navbar-actions {
display: flex;
align-items: center;
gap: 1em;
margin-left: auto;
flex-wrap: nowrap;
}
/* ===== USER & TOOLS DROPDOWNS ===== */
.drg-user, .drg-tools {
position: relative;
cursor: pointer;
}
.drg-user > span, .drg-tools > span {
padding: .4em .6em;
}
.drg-user > span::after, .drg-tools > span::after {
content: "▾";
margin-left: .3em;
font-size: .75em;
}
.drg-user-dropdown,
.drg-tools-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
list-style: none;
margin: .2em 0 0;
padding: 0;
min-width: 160px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 9999 !important;
}
.drg-user-dropdown li a,
.drg-tools-dropdown li a {
display: block;
padding: .5em 1em;
color: #000;
text-decoration: none;
white-space: nowrap;
}
.drg-user-dropdown li a:hover,
.drg-tools-dropdown li a:hover {
background: #f5f5f5;
}
.drg-user:hover .drg-user-dropdown,
.drg-tools:hover .drg-tools-dropdown {
display: block !important;
}
/* ===== MAIN PAGE CARDS - IMPROVED ===== */
.mainpage-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
margin: 3rem auto;
max-width: 1200px;
padding: 0 1rem;
}
.mainpage-card {
background: #fff;
border-radius: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
text-align: center;
padding: 2rem 1rem;
flex: 0 1 220px;
max-width: 220px;
color: var(--myriad-blue);
position: relative;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
}
/* Top gradient stripe */
.mainpage-card::before {
content: "";
display: block;
height: 5px;
width: 100%;
border-radius: 16px 16px 0 0;
background: linear-gradient(90deg, var(--myriad-blue), var(--myriad-pink));
margin-bottom: 1rem;
}
/* Card icons */
.mainpage-card .card-icon,
.mainpage-card .card-icon svg,
.mainpage-card .card-icon i {
color: var(--myriad-blue);
fill: var(--myriad-blue);
transition: transform 0.3s ease, color 0.3s ease;
}
/* Card titles */
.mainpage-card h3 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
/* Card description */
.mainpage-card p {
font-size: 0.95rem;
line-height: 1.4;
color: #333;
margin: 0.5rem 0 1rem 0;
}
/* Hover effects */
.mainpage-card:hover {
transform: translateY(-8px) scale(1.03);
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
border: 2px solid var(--myriad-blue);
background: #f8f8ff;
}
.mainpage-card:hover .card-icon {
transform: scale(1.2) rotate(5deg);
color: var(--myriad-purple);
}
/* Hover text and icon color pop */
.mainpage-card:hover h3,
.mainpage-card:hover .card-icon,
.mainpage-card:hover .card-icon svg path,
.mainpage-card:hover .card-icon i {
color: #5F6CFF;
fill: #5F6CFF;
}
/* Responsive */
@media (max-width: 768px) {
.mainpage-cards {
gap: 1rem;
padding: 0 1rem;
}
.mainpage-card {
flex: 1 1 90%;
max-width: 90%;
}
}
/* ===== FOOTER STYLES ===== */
#drg-footer {
background: linear-gradient(to top, #374cff 0%, #db20d2 80%, #ffffff 100%);
color: #fff;
padding: 3em 0;
margin: 0;
box-sizing: border-box;
overflow: hidden;
position: relative;
width: 100vw;
left: 50%;
margin-left: -50vw;
}
.mw-footer-container #drg-footer {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.drg-footer-inner {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.drg-columns {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
text-align: center;
}
.drg-column {
flex: 0 1 calc(33.333% - 2em);
display: flex;
flex-direction: column;
gap: 1em;
align-items: center;
box-sizing: border-box;
}
.drg-column-left,
.drg-column-center,
.drg-column-right {
align-items: center;
}
.drg-eu-flag img {
max-height: 4em !important;
width: auto !important;
display: block;
margin: 0 auto;
border: 1px solid #fff;
box-sizing: border-box;
}
.drg-eu-text {
font-weight: bold;
color: #fff;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
}
.drg-disclaimer-wrapper {
margin-top: 2em;
text-align: center;
font-size: 0.9rem;
color: rgba(255,255,255,0.8);
}
.drg-disclaimer a {
color: #fff;
text-decoration: underline;
}
/* ===== FOOTER LINKS - WHITE WITH HOVER POP ===== */
#drg-footer a {
color: #fff; /* white links */
text-decoration: none;
transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
#drg-footer a:hover {
color: var(--myriad-green);
transform: scale(1.08); /* pop */
text-decoration: underline;
}
@media (max-width: 768px) {
.drg-columns {
flex-direction: column;
align-items: center;
gap: 1.5em;
}
.drg-column {
flex: 1 1 100%;
max-width: 500px;
}
}