MediaWiki:Common.css: Difference between revisions

From London Book Trades
Jump to navigation Jump to search
No edit summary
No edit summary
Line 35: Line 35:
   
   
  /* Floruit timeline bar */
  /* Floruit timeline bar */
/* ===== Floruit timeline (1463–1939) ===== */
.floruit-tl {
.floruit-tl {
   margin: 0.75em 0;
   margin: 0.75em 0;
  padding: 0;
}
}


Line 43: Line 44:
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
  gap: .75em;
   font-size: 0.9em;
   font-size: 0.9em;
   opacity: 0.85;
   opacity: 0.85;
   margin-bottom: 0.25em;
   margin: 0 0 .25em 0;
}
}


/* Track with ticks baked in */
.floruit-tl__track {
.floruit-tl__track {
   position: relative;
   position: relative;
Line 54: Line 55:
   border-radius: 999px;
   border-radius: 999px;
   overflow: hidden;
   overflow: hidden;
  /* Ticks:
    Range = 1939-1463 = 476 years
    25y  = 25/476  = 5.2521%
    50y  = 50/476  = 10.5042%
  */
   background:
   background:
     /* minor ticks every 25y (approx spacing handled by template’s range) */
     /* minor ticks every 25y */
     repeating-linear-gradient(
     repeating-linear-gradient(
       to right,
       to right,
Line 73: Line 80:
     /* base */
     /* base */
     #e6e6e6;
     #e6e6e6;
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
}
.floruit-tl__band {
.floruit-tl__band {
   position: absolute;
   position: absolute;
Line 80: Line 89:
   height: 100%;
   height: 100%;
   border-radius: 999px;
   border-radius: 999px;
   background: #4a6cf7; /* change if you want */
   background: #4a6cf7;
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}
.floruit-tl__caption {
  margin-top: 0.25em;
  font-size: 0.9em;
  opacity: 0.85;
}
/* Tick layer */
.floruit-tl__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floruit-tl__tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,0.18);
}
.floruit-tl__tick--minor {
  opacity: 0.45;
}
.floruit-tl__tick--major {
  opacity: 0.9;
}
.floruit-tl__ticklabel {
  position: absolute;
  top: 14px;          /* just under the bar */
  transform: translateX(-50%);
  font-size: 0.8em;
  opacity: 0.75;
  white-space: nowrap;
}
}


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


.floruit-tl__ticklabels span {
.floruit-tl__ticklabels span,
.floruit-tl__labels span {
   white-space: nowrap;
   white-space: nowrap;
}
.floruit-tl__caption {
  margin-top: 0.25em;
  font-size: 0.9em;
  opacity: 0.85;
}
}

Revision as of 18:10, 2 March 2026

/* 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-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;

  /* Ticks:
     Range = 1939-1463 = 476 years
     25y  = 25/476  = 5.2521%
     50y  = 50/476  = 10.5042%
  */
  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.2521%
    ),
    /* 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.5042%
    ),
    /* 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);
}

.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;
}