MediaWiki:Common.css
From Dreams Knowledge Platform
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.navbar-brand img {
padding-top: 10px;
height: 60px;
}
.firstHeading {
color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}
.external.text {
color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}
.grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 20px;
}
.square {
padding: 30px;
border-radius: 12px;
text-align: center;
font-family: Arial, sans-serif;
font-weight: bold;
color: white;
display: flex;
align-items: center;
justify-content: center;
min-height: 150px;
}
.blue { background-color: #2D8CFF; }
.red { background-color: #FF4757; }
.green { background-color: #2ED573; }
.yellow { background-color: #FFD32A; }
.orange { background-color: #fee4cb; }
.hue1 { background-color: #5c4ce4; }
.hue2 { background-color: #8068ff; }
.hue3 { background-color: #a386ff; }
.hue4 { background-color: #c6a4ff; }
.hue5 { background-color: #e9c4ff; }
/* DREAMers team layout */
.dreamer-section {
margin: 22px 0 30px;
}
.dreamer-section__head {
margin: 4px 0 14px;
border-left: 4px solid rgb(92,76,228); /* same purple as main heading */
padding-left: 10px;
}
.dreamer-section__title {
font-size: 1.25em;
font-weight: 700;
}
.dreamer-section__subtitle {
color: #54595d;
margin-top: 0;
}
.dreamer-section__subtitle:empty {
display: none;
}
/* Cards laid out in rows */
.dreamers-grid {
display: grid;
grid-template-columns: repeat(auto-fill, 260px);
gap: 20px;
justify-content: center;
}
.dreamers-grid > p {
display: none;
}
/* Individual card */
.dreamer-card {
width: 260px;
box-sizing: border-box;
display: flex;
flex-direction: column;
background: #fff;
border: 1px solid #e1e4ff; /* light purple border */
box-shadow: 0 6px 16px rgba(92,76,228,0.08);
}
/* Image on top, with a soft purple backdrop */
.dreamer-card__imgwrap {
width: 100%;
height: 250px;
overflow: hidden;
background: #f3f1ff;
}
.dreamer-card__imgwrap pre {
margin: 0;
padding: 0;
border: none;
background: none;
overflow: hidden;
white-space: normal;
width: 100%;
height: 100%;
}
.dreamer-card__imgwrap a {
display: block;
width: 100%;
height: 100%;
}
.dreamer-card__img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
display: block;
border-radius: 0;
}
/* Text area */
.dreamer-card__body {
padding: 10px 14px 12px;
}
.dreamer-card__name {
line-height: 1.2;
color: #1f2328;
}
.dreamer-card__role {
color: #54595d;
margin-top: 2px;
}
.dreamer-card__meta {
color: #72777d;
margin-top: 6px;
font-size: 0.95em;
}
.dreamer-card__meta:empty { display: none; }
/* ── Event detail page ── */
.event-detail { margin-top: 8px; }
.event-detail__meta {
display: flex;
flex-wrap: wrap;
gap: 0 32px;
padding: 14px 20px;
padding-bottom: 0px;
background: #f3f1ff;
border-left: 4px solid #5c4ce4;
margin-bottom: 24px;
}
.event-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.event-detail__meta-label {
font-weight: 700;
color: #5c4ce4;
text-transform: uppercase;
font-size: 0.78em;
letter-spacing: 0.05em;
}
.event-detail__description {
font-size: 1.05em;
line-height: 1.65;
margin-bottom: 28px;
max-width: 780px;
}
/* ── Event image gallery ── */
.event-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 16px;
margin-top: 8px;
}
.event-gallery > p { display: none; }
.event-gallery__item {
overflow: hidden;
background: #f3f1ff;
border: 1px solid #e1e4ff;
box-shadow: 0 4px 12px rgba(92,76,228,0.08);
line-height: 0;
}
.event-gallery__item a,
.event-gallery__item span,
.event-gallery__item .thumb,
.event-gallery__item .thumbinner {
display: block !important;
width: 100% !important;
max-width: none !important;
}
.event-gallery__item img {
display: block !important;
width: 100% !important;
height: 260px;
object-fit: cover;
object-position: center;
}
.event-gallery__item .thumbcaption,
.event-gallery__item .magnify { display: none; }