MediaWiki:Common.css

From London Book Trades
Revision as of 18:27, 2 March 2026 by Dmac (talk | contribs)
Jump to navigation Jump to search

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.
/* CSS placed here will be applied to all skins */

/* added by dmac to increase space between paragraphs */
.mw-parser-output > p {
  margin-top: 26px;
}

.mw-category-jumpbar { margin: .5em 0; font-size: 90%; }

/* dmac - make firstHeading sticky so it rides at the top of the page
 * when the user scrolls down the page - helpful, especially on long
 * pages when it is easy to forget who you're looking at
 */
#firstHeading{
  position: sticky;
  top: 0;          /* where it sticks */
  z-index: 10;     /* keep it above content */
  background: white; /* prevent text underneath showing through */
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

/* change light grey background colour
 */
 /* this changes just part of the left sidebar */
/* #mw-panel { background-color: #EBFFFC; } */
/* this changes left sidebar and bottom footer */
body { background: #ebfffc;}

/*
 * timeline formatting
 * dmac
 */
 
 /* Floruit timeline bar */
/* ===== Floruit timeline (1463–1939) ===== */

/* ===== Floruit timeline (1450–1940) ===== */

.floruit-tl {
  margin: 0.75em 0;
}

.floruit-tl__labels {
  display: flex;
  justify-content: space-between;
  gap: .75em;
  font-size: 0.9em;
  opacity: 0.85;
  margin: 0 0 .25em 0;
}

.floruit-tl__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;

  /* Range = 1940-1450 = 490 years
     25y  = 25/490  = 5.1020408%
     50y  = 50/490  = 10.2040816%
  */
  background:
    /* minor ticks every 25y */
    repeating-linear-gradient(
      to right,
      rgba(0,0,0,0.10) 0,
      rgba(0,0,0,0.10) 1px,
      transparent 1px,
      transparent 5.1020408%
    ),
    /* major ticks every 50y */
    repeating-linear-gradient(
      to right,
      rgba(0,0,0,0.20) 0,
      rgba(0,0,0,0.20) 1px,
      transparent 1px,
      transparent 10.2040816%
    ),
    /* base */
    #e6e6e6;

  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.floruit-tl__band {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: #4a6cf7;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
  cursor: help; /* optional */
}

.floruit-tl__ticklabels {
  display: flex;
  justify-content: space-between;
  gap: .75em;
  margin-top: 0.35em;
  font-size: 0.8em;
  opacity: 0.75;
}

.floruit-tl__ticklabels span,
.floruit-tl__labels span {
  white-space: nowrap;
}

.floruit-tl__caption {
  margin-top: 0.25em;
  font-size: 0.9em;
  opacity: 0.85;
}