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-hero.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.
/* ===== Main Page-only background on Citizen container ===== */
body.skin-citizen .citizen-page-container{
  position: relative;
  isolation: isolate;
}

body.skin-citizen .citizen-page-container::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  background: url("https://cdn.growtopiawiki.com/uploads/9/9a/Site-background-dark.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0,
    rgba(0,0,0,0.80) 3rem,
    rgba(0,0,0,0.20) 9rem,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0,
    rgba(0,0,0,0.80) 3rem,
    rgba(0,0,0,0.20) 9rem,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

body.skin-citizen .citizen-page-container > *{
  position: relative;
  z-index: 1;
}

/* ========= HERO (no box) ========= */
.gtw-hero{
  padding: 40px 10px 20px;
}

.gtw-hero-lead{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.gtw-hero__inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 12px;
}

.gtw-hero__logo{ line-height:0; }
.gtw-hero__logo img {
  height:200px!important;
  width:100%;
}

.gtw-hero__description{
  font-size: 1rem;
  line-height: 1.45;
  opacity: .92;
  max-width: 62ch;
  margin: 0;
}

/* ========= Search trigger ========= */
.citizen-search-trigger.gtw-hero__search{
  height: 40px;
  width: 150px;
  margin: 8px auto 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;
  cursor: pointer;
  user-select: none;

  background: rgba(0, 0, 0, 0.20);
  border: 3px solid rgba(255,255,255,0.14);
}

.citizen-search-trigger img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.citizen-search-trigger .gtw-hero__searchText{
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  opacity: 0.9;
  white-space: nowrap;
  line-height: 1;
}

/* Slash hint */
.citizen-search-trigger.gtw-hero__search::after{
  content: "/";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 22px;
  min-width: 22px;
  padding: 0 7px;

  border-radius: 8px;
  background: rgba(0,0,0,0.40);
  opacity: 0.75;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

.skin-citizen-search-trigger.gtw-hero__search:hover{
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.20);
}

.skin-citizen-search-trigger.gtw-hero__search:focus{
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 3px;
}