MediaWiki: Common.css: Difference between revisions
From Dreams Knowledge Platform
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
.external.text { | .external.text { | ||
color: | color: rgb(92,76,228); | ||
} | } | ||
Revision as of 11:18, 5 March 2026
/* CSS placed here will be applied to all skins */
.navbar-brand img {
padding-top: 10px;
height: 60px;
}
.firstHeading {
color: rgb(92,76,228) !important;
}
.external.text {
color: rgb(92,76,228);
}
.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; }