Difference between revisions of "MediaWiki:Vector.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 49: Line 49:
 
span[class^="mw-customtoggle-"]:hover {
 
span[class^="mw-customtoggle-"]:hover {
 
   color: #0b0080;              /* darker hover like links */
 
   color: #0b0080;              /* darker hover like links */
 +
}
 +
 +
/* Sidebar background */
 +
#mw-panel {
 +
  background: #3c553c;  /* or any color */
 +
}
 +
 +
/* Sidebar text color */
 +
#mw-panel,
 +
#mw-panel .portal .body li a {
 +
  color: #fff;          /* text color */
 +
}
 +
 +
/* Sidebar link color */
 +
#mw-panel .portal .body li a {
 +
  color: #fff;          /* normal */
 +
}
 +
#mw-panel .portal .body li a:visited {
 +
  color: #ddd;
 +
}
 +
#mw-panel .portal .body li a:hover {
 +
  color: #ffcc00;        /* hover */
 
}
 
}

Revision as of 19:46, 24 September 2025

/* CSS placed here will affect users of the Vector skin */
#p-logo {
	top: -233px; /* From -160px. Distance from the top */
	height: 236px; /* From 160px. Height of logo */
}
#p-logo a {
	height: 236px; /* From 160px. Height of logo */
}

:root {
  --hf-hero-bg: var(--hf-h2-bg, #3c553c); /* falls back to your section color */
  --hf-hero-fg: #fff;
  --hf-hero-border: #ccc;
}

/* HeaderTemplate */
.hf-hero {
  margin-top: .7em;
}
.hf-hero-table {
  width: 100%;
  border-collapse: separate;
  border: 1px solid var(--hf-hero-border);
  border-radius: 12px;
  background: var(--hf-hero-bg);
  overflow: hidden;
}
.hf-hero-left,
.hf-hero-right {
  color: var(--hf-hero-fg);
  vertical-align: middle;
  padding: .6em .8em;
}
.hf-hero-left { width: 45%; white-space: nowrap; text-align: center; }
.hf-hero-right { font-size: 125%; text-align: center; }
.hf-hero-title {
  font-size: 195%;
  font-weight: 700;
  margin: 0;
}

/* Make custom [Show/Hide] toggles look like links */
span[class^="mw-customtoggle-"] {
  color: #0645ad;               /* standard MediaWiki link blue */
  cursor: pointer;
  text-decoration: underline;
  font-weight: normal;
}
span[class^="mw-customtoggle-"]:hover {
  color: #0b0080;               /* darker hover like links */
}

/* Sidebar background */
#mw-panel {
  background: #3c553c;   /* or any color */
}

/* Sidebar text color */
#mw-panel,
#mw-panel .portal .body li a {
  color: #fff;           /* text color */
}

/* Sidebar link color */
#mw-panel .portal .body li a {
  color: #fff;           /* normal */
}
#mw-panel .portal .body li a:visited {
  color: #ddd;
}
#mw-panel .portal .body li a:hover {
  color: #ffcc00;        /* hover */
}