MediaWiki: Common.css: Difference between revisions

From Dreams Knowledge Platform
Jump to: navigation, search
No edit summary
No edit summary
Line 47: Line 47:
.dreamer-section__head { margin: 6px 0 12px; }
.dreamer-section__head { margin: 6px 0 12px; }


/* Cards laid out in rows */
.dreamers-grid {
.dreamers-grid {
   display: grid;
   display: flex;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
   flex-wrap: wrap;
   gap: 14px;
   gap: 20px;
   align-items: stretch;
   justify-content: center;   /* or flex-start if you prefer left aligned */
}
}


/* Individual card */
.dreamer-card {
.dreamer-card {
   display: grid;
   width: 260px;
   grid-template-columns: 74px 1fr;
   box-sizing: border-box;
   gap: 12px;
   display: flex;
   padding: 12px;
   flex-direction: column;
   border: 1px solid #eaecf0;
   border: 1px solid #eaecf0;
   border-radius: 12px;
   border-radius: 16px;
   background: #fff;
   background: #fff;
  overflow: hidden;
}
/* Image on top, full width */
.dreamer-card__imgwrap {
  width: 100%;
  overflow: hidden;
}
.dreamer-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
/* Text area */
.dreamer-card__body {
  padding: 10px 14px 12px;
}
}


.dreamer-card__img { border-radius: 999px; }
.dreamer-card__name { line-height: 1.2; }
.dreamer-card__name { line-height: 1.2; }
.dreamer-card__role { color: #54595d; margin-top: 2px; }
.dreamer-card__role { color: #54595d; margin-top: 2px; }
.dreamer-card__meta { color: #72777d; margin-top: 6px; font-size: 0.95em; }
.dreamer-card__meta { color: #72777d; margin-top: 6px; font-size: 0.95em; }
.dreamer-card__meta:empty { display: none; }
.dreamer-card__meta:empty { display: none; }

Revision as of 20:18, 24 February 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;
}

.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: 18px 0 26px; }
.dreamer-section__title { font-size: 1.25em; font-weight: 700; }
.dreamer-section__subtitle { color: #54595d; margin-top: 2px; }
.dreamer-section__subtitle:empty { display: none; }
.dreamer-section__head { margin: 6px 0 12px; }

/* Cards laid out in rows */
.dreamers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* or flex-start if you prefer left aligned */
}

/* Individual card */
.dreamer-card {
  width: 260px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

/* Image on top, full width */
.dreamer-card__imgwrap {
  width: 100%;
  overflow: hidden;
}

.dreamer-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Text area */
.dreamer-card__body {
  padding: 10px 14px 12px;
}

.dreamer-card__name { line-height: 1.2; }
.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; }