Template:Infobox L2L stage/styles.css

From The Largs to Largs Grand Tour
Jump to navigation Jump to search
/* L2L Stage Infobox */

.infobox {
  float: right;           /* (1) Wikipedia-like float */
  clear: right;
  margin: 0 0 1em 1em;
  width: 22em;            /* typical Wikipedia infobox width */
  border: 1px solid #aaa;
  background: #f8f9fa;
  font-size: 90%;
}

.infobox-title {
  font-weight: bold;
  font-size: 110%;
  text-align: center;
}

.infobox-above {
  font-style: italic;
  text-align: center;
  background: #eef1f4;
}

.infobox-subheader {
  text-align: center;     /* (5) phase line centred */
  font-weight: bold;
  background: #f1f3f5;
}

.infobox-header {
  background: #e2e6ea;
  text-align: center;     /* (3) headings centred */
  font-weight: bold;
}

.infobox-label {
  width: 35%;
  vertical-align: top;
}

.infobox-data {
  vertical-align: top;
}

.infobox-image {
  text-align: center;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
}

.infobox-caption {
  font-size: 85%;
  text-align: center;
  color: #555;
}

.infobox-below {
  font-size: 85%;
  font-style: italic;
  background: #f1f3f5;
  text-align: center;
}

/* Phase row: make it read like a flag */
.infobox .l2l-phase th,
.infobox .l2l-phase td {
  padding: 0.35em 0.5em;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-top: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  text-transform: none;
}

/* Optional: add a left “tab” stripe */
.infobox .l2l-phase th {
  position: relative;
}
.infobox .l2l-phase th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(0,0,0,0.15);
}


/* Europe & Near East — warm ochre parchment */
.infobox .l2l-phase-europe-near-east {
  background-color: #e0c36a;
  color: #1a1a1a;
}

/* Caucasus & Caspian — slate teal */
.infobox .l2l-phase-caucasus-caspian {
  background-color: #6fa6b3;
  color: #111;
}

/* Central Asia — sand / khaki */
.infobox .l2l-phase-central-asia {
  background-color: #d1b277;
  color: #1a1a1a;
}

/* Himalaya — alpine blue */
.infobox .l2l-phase-himalaya {
  background-color: #6f93c1;
  color: #111;
}

/* East Asia — jade */
.infobox .l2l-phase-east-asia {
  background-color: #6fae8f;
  color: #111;
}

/* Pacific — ocean */
.infobox .l2l-phase-pacific {
  background-color: #4f7fa8;
  color: #fff; /* deeper background needs white */
}

/* Iberia — terracotta / sun-baked */
.infobox .l2l-phase-iberia {
  background-color: #b85a3a;
  color: #fff;
}

/* British Isles — storm-grey */
.infobox .l2l-phase-british-isles {
  background-color: #7a8088;
  color: #fff;
}

/* North Sea & Low Countries — harbour blue */
.infobox .l2l-phase-north-sea-low-countries {
  background-color: #4b6f8f;
  color: #fff;
}

/* Italy & Adriatic — deep olive */
.infobox .l2l-phase-italy-adriatic {
  background-color: #6e7a3f;
  color: #111;
}