MediaWiki:Common.css

From Disaster Risk Gateway
Revision as of 15:38, 25 June 2025 by Myriad-admin (talk | contribs)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* ===== HIDE VECTOR PORTLETS & DEFAULT FOOTER LINKS ===== */
#p-logo,
#mw-head, #mw-head-base,
#mw-navigation,
#mw-panel,
#mw-mf-page-header,
[id^="mw-mf-"],
header.vector-header,
.vector-page-toolbar,
header.mw-body-header.vector-page-titlebar,
#footer-places,
#footer-info-lastmod,
#p-views,
#p-cactions {
  display: none !important;
}

/* ===== REMOVE ALL <hr> ===== */
hr { display: none !important; }

/* ===== STRIP VECTOR FOOTER BORDER ===== */
.mw-footer-container,
footer#footer {
  border-top: none !important;
  background: #fff !important; /* keep default wrapper white */
}

/* ===== RESET & SPACING ===== */
html { font-size:100%; margin:0; }
body {
  margin:0;
  padding-top:60px !important; /* space for navbar */
}
#content { margin-top:0 !important; }

/* ===== MYRIAD COLOR PALETTE ===== */
:root {
  --myriad-blue:   #374CFF;
  --myriad-purple: #8836EA;
  --myriad-pink:   #DB20D2;
  --myriad-yellow:#FFCE00;
  --myriad-green:  #5AE09A;
}

/* ===== GLOBAL LINKS & BUTTONS ===== */
a { color: var(--myriad-blue); text-decoration:none; }
a:hover { text-decoration:underline; }
.drg-button {
  display:inline-block;
  padding:.5em 1em;
  font-variant:small-caps;
  border-radius:7px;
  background:var(--myriad-blue);
  color:#fff!important;
  transition:background 200ms;
  text-decoration:none!important;
}

/* ===== NAVBAR ===== */
/* (Your existing navbar CSS goes here unchanged) */

/* ===== YOUR CUSTOM FOOTER BLOCK ===== */
#drg-footer {
  /* full-width pink */
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:100vw;

  background: var(--myriad-pink);
  color: #fff;
  border-top:1px solid #ccc;
  padding:2em 0;
  font-family:sans-serif;
  font-size:1.1rem;
  margin:0;
}

/* footer links */
#drg-footer a {
  color: rgba(255,255,255,0.9);
}
#drg-footer a:hover {
  color: #fff;
  text-decoration:underline;
}

/* footer layout */
.drg-columns {
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:2em;
  max-width:1200px;
  margin:0 auto;
  flex-wrap:nowrap;
}
.drg-column { flex:1 1 33%; display:flex; flex-direction:column; gap:1em; }
.drg-column-left { align-items:flex-end; text-align:left; padding-right:1.5em; }
.drg-column-right { align-items:flex-start; text-align:right; padding-left:1.5em; }
.drg-divider { width:1px; background:#666; opacity:0.4; align-self:stretch; }
.drg-column-center { text-align:center; align-items:center; justify-content:center; }
.drg-eu-flag {
  background:#fff;
  padding:.5em;
  border-radius:4px;
  display:inline-block;
  margin-bottom:1em;
}
.drg-eu-flag img { max-height:4em; width:auto; display:block; }
.drg-eu-text {
  font-weight:bold;
  line-height:1.5;
  font-size:1em;
  max-width:400px;
  text-align:center;
  color:#fff;
}
.drg-disclaimer {
  max-width:900px;
  margin:2em auto 0;
  padding:1em 0 0;
  border-top:1px solid #eee;
  font-size:0.9em;
  text-align:center;
  color:rgba(255,255,255,0.8);
}

/* ===== ICON BAR ===== */
#footer-icons {
  background: var(--myriad-pink);
  padding:1em 0;
}
#footer-icons li {
  display:inline-block;
  margin-left:1em;
}
#footer-icons {
  list-style:none;
  margin:0;
  padding:0;
  max-width:1200px;
  margin:0 auto;       /* center within pink strip */
  text-align:right;    /* icons right-aligned */
}

/* ===== MOBILE ===== */
@media (max-width:768px) {
  .drg-navbar-container { flex-direction:column; align-items:stretch; }
  .drg-nav-dropdown,
  .drg-user-dropdown,
  .drg-tools-dropdown { left:0; right:auto; }
  .drg-search { width:100%; order:3; margin-top:.5em; }
  .drg-eu-flag { padding:.3em; }
}