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

MediaWiki:Notice.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:Notice.css */
.gtw-notice {
  --gtw-accent: #8ab4ff;
  --gtw-footer: var(--color-subtle, rgba(255, 255, 255, 0.62));
  --gtw-body: var(--color-base, rgba(255, 255, 255, 0.92));
  
  position: relative;
  max-width: var(--width-layout);
  margin: 12px auto 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gtw-body);
  box-sizing: border-box;
  overflow: hidden;
}

.gtw-notice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gtw-accent);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}

.gtw-notice__inner {
  padding: 14px 16px 14px 18px;
  box-sizing: border-box;
}

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

.gtw-notice__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gtw-accent);
}

.gtw-notice__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gtw-accent) 16%, transparent);
  color: var(--gtw-accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.gtw-notice__body {
  margin-top: 6px;
  color: var(--gtw-body);
  font-size: 0.95rem;
  line-height: 1.45;
}

.gtw-notice__footer {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--gtw-footer);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gtw-notice__relative,
.gtw-notice__absolute {
  color: var(--gtw-footer);
}

.gtw-notice__sep {
  opacity: 0.45;
}

.gtw-notice__footer.is-empty {
  display: none;
}

.gtw-notice--info {
  --gtw-accent: #8ab4ff;
}

.gtw-notice--warning {
  --gtw-accent: #f0c96c;
}

.gtw-notice--success {
  --gtw-accent: #7fd8a0;
}

.gtw-notice--danger {
  --gtw-accent: #f29b9b;
}

@media (max-width: 640px) {
  .gtw-notice {
    margin: 10px 8px 14px;
    border-radius: 12px;
  }

  .gtw-notice__inner {
    padding: 12px 13px 12px 16px;
  }

  .gtw-notice__footer {
    gap: 6px;
    font-size: 0.78rem;
  }
}