Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Gadget-home-calendar.css

MediaWiki interface page

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* MediaWiki:Gadget-home-calendar.css */
.gtw-cal{
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  display:flex;
  flex-direction:column;
  height:700px;
}


.gtw-cal__header{
  padding:12px 18px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.2)
}

.gtw-cal__headerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.gtw-cal__left,
.gtw-cal__right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.gtw-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(0,0,0,0.2);
  color:inherit;
  font-weight:800;
  font-size:0.85rem;
  letter-spacing:0.01em;
  white-space:nowrap;
  text-decoration:none;
}

.gtw-pill small{ font-weight:800; opacity:.9; }
.gtw-pill:hover{ background:rgba(255,255,255,0.10); }
.gtw-pill:active{ transform:translateY(1px); }

.gtw-cal__days{
  flex:1;
  overflow-y:auto;
  scroll-behavior:smooth;
}

.gtw-cal__edge{ height:0; pointer-events:none; }

.gtw-cal__edge[data-edge="top"]{
  height: 150px;
  position: relative;
  overflow: hidden;

  /* soft sky */
  background:
    radial-gradient(closest-side at 50% 25%, rgba(255,255,255,0.10), rgba(255,255,255,0) 70%),
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

/* Sun (center) */
.gtw-cal__edge[data-edge="top"]::after{
  content:"";
  position:absolute;
  left:50%;
  top: 10px;
  width:161px;
  height:159px;
  transform: translateX(-50%);
  background: url("https://cdn.growtopiawiki.com/uploads/6/61/Sun.png") center / contain no-repeat;
  pointer-events:none;
  z-index:1;
  opacity: .35;
}

/* Two clouds (as two background layers in ::before so we can still use ::after for sun) */
.gtw-cal__edge[data-edge="top"]::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top: 30px;
  height:111px;
  pointer-events:none;
  z-index:2;
  opacity: .22;

  background-image:
    url("https://cdn.growtopiawiki.com/uploads/d/d2/Cloud.png"),
    url("https://cdn.growtopiawiki.com/uploads/d/d2/Cloud.png");
  background-repeat: no-repeat, no-repeat;
  background-size: 197px 111px, 197px 111px;

  /* responsive spacing: small screens keep them from crowding the center */
  background-position:
    left  clamp(10px, 4vw, 40px) top 0,
    right clamp(10px, 4vw, 40px) top 0;
}

.gtw-cal__edge[data-edge="bottom"]{
  position: relative;
  overflow: hidden;
  background-image: url("https://cdn.growtopiawiki.com/uploads/b/b9/GTW_Landscape_Default.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  opacity: 0.22;
}

.gtw-cal__day{
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  padding:12px;
  margin:0 12px;
  position:relative;
}
.gtw-cal__day + .gtw-cal__day{ margin-top:10px; }

.gtw-cal__day.is-today{
  border-color:#0369a1;
  background:rgba(3,105,161,0.12);
  box-shadow:0 0 0 1px rgba(3,105,161,0.25);
}

/* ===== Per-day banner overlay =====
   JS sets: style="--gtw-day-banner:url('...') --gtw-day-banner-size:96px 96px;"
   CSS fallback banner is here (your preference).
*/
.gtw-cal__day::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background-image: var(--gtw-day-banner, radial-gradient(circle, rgba(255,255,255,0.35) 2px, rgba(255,255,255,0) 2.5px));
  background-size: var(--gtw-day-banner-size, 18px 18px);
  background-repeat: repeat;
  background-position: right center;
  opacity: .20;
  -webkit-mask-image:
    linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 78%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 36px),
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 36px);
  -webkit-mask-repeat: no-repeat, no-repeat, no-repeat;
  -webkit-mask-size: 100% 100%, 100% 100%, 100% 100%;
  -webkit-mask-composite: source-in, source-in;

  mask-image:
    linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 78%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 36px),
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 36px);
  mask-repeat: no-repeat, no-repeat, no-repeat;
  mask-size: 100% 100%, 100% 100%, 100% 100%;
  mask-composite: intersect, intersect;
}

/* keep real content above overlay */
.gtw-cal__day > *{
  position:relative;
  z-index:1;
}

.gtw-cal__dayHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.gtw-cal__dayHead h6{
  margin:0;
  font-size:0.84rem;
  text-transform:uppercase;
  letter-spacing:0.03em;
  opacity:.95;
}

.gtw-chip{
  font-size:0.72rem;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  white-space:nowrap;
}

/* Day-status palette */
.gtw-cal__dayStatus.is-today{ background:rgba(3,105,161,0.75); }
.gtw-cal__dayStatus.is-tomorrow{ background:rgba(255,255,255,0.08); color:inherit; }
.gtw-cal__dayStatus.is-future{ background:#dcfce7; color:#166534; }
.gtw-cal__dayStatus.is-past{ background:#fee2e2; color:#991b1b; }

/* Event-status palette */
.gtw-cal__eventStatus.is-live{ background:#fef3c7; color:#92400e; }
.gtw-cal__eventStatus.is-upcoming{ background:#dcfce7; color:#166534; }
.gtw-cal__eventStatus.is-ended{ background:#fee2e2; color:#991b1b; }

.gtw-cal__events{ margin:10px 0 0; padding-left:18px; }

.gtw-cal__eventLine{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.gtw-cal__eventTitle{ font-size:0.92rem; font-weight:700; line-height:2; }

.gtw-cal__eventTitleRow .growsprite img{
  margin-right:8px;
  image-rendering:pixelated;
}

.gtw-cal__eventNote{ margin:4px 0 0; font-size:0.82rem; opacity:.8; }
.gtw-cal__noEvents{ margin:9px 0 0; font-size:0.82rem; opacity:.75; }

/* tooltip */
.gtw-cal__eventStatus[data-tip]{ position:relative; display:inline-flex; }
.gtw-cal__eventStatus[data-tip]:hover::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  z-index:20;
  max-width:360px;
  min-width:240px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(15,23,42,0.92);
  box-shadow:0 12px 24px -18px rgba(15,23,42,0.5);
  color:#fff;
  font-weight:800;
  font-size:0.82rem;
  line-height:1.25;
  white-space:pre-line;
  pointer-events:none;
}

.gtw-cal__error{ padding:12px; font-weight:800; color:#991b1b; }