MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 134: | Line 134: | ||
box-shadow: 0 0 0 1px rgba(0,0,0,0.10); | box-shadow: 0 0 0 1px rgba(0,0,0,0.10); | ||
cursor: help; | cursor: help; | ||
} | |||
/* | |||
* *********************** | |||
* Address timelines | |||
* *********************** | |||
*/ | |||
.address-timeline { | |||
border: 1px solid #ccc; | |||
padding: 1rem; | |||
margin: 1.5rem 0; | |||
background: #fafafa; | |||
font-size: 14px; | |||
overflow-x: auto; | |||
} | |||
.address-timeline-title { | |||
font-weight: bold; | |||
font-size: 1.1em; | |||
margin-bottom: 0.75rem; | |||
} | |||
.address-timeline-scale { | |||
position: relative; | |||
margin-left: 180px; | |||
height: 2.2rem; | |||
border-bottom: 1px solid #999; | |||
margin-bottom: 0.5rem; | |||
min-width: 800px; | |||
} | |||
.address-timeline-tick { | |||
position: absolute; | |||
bottom: 0; | |||
width: 1px; | |||
height: 10px; | |||
background: #888; | |||
} | |||
.address-timeline-tick-label { | |||
position: absolute; | |||
bottom: 12px; | |||
transform: translateX(-50%); | |||
font-size: 12px; | |||
color: #444; | |||
white-space: nowrap; | |||
} | |||
.address-timeline-row { | |||
position: relative; | |||
min-width: 980px; | |||
height: 2.2rem; | |||
margin-bottom: 0.35rem; | |||
} | |||
.address-timeline-label { | |||
position: absolute; | |||
left: 0; | |||
top: 0.3rem; | |||
width: 170px; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
white-space: nowrap; | |||
} | |||
.address-timeline-track { | |||
position: absolute; | |||
left: 180px; | |||
right: 0; | |||
top: 0.55rem; | |||
height: 1rem; | |||
background: | |||
linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px); | |||
background-size: 10% 100%; | |||
} | |||
.address-timeline-bar { | |||
position: absolute; | |||
top: 0; | |||
height: 1rem; | |||
border-radius: 4px; | |||
background: #6d8fb3; | |||
color: white; | |||
font-size: 12px; | |||
line-height: 1rem; | |||
padding: 0 0.35rem; | |||
overflow: hidden; | |||
white-space: nowrap; | |||
box-sizing: border-box; | |||
} | |||
.address-timeline-bar a { | |||
color: white; | |||
text-decoration: none; | |||
} | |||
.address-timeline-bar a:hover { | |||
text-decoration: underline; | |||
} | |||
.address-timeline-bar.uncertain { | |||
background: repeating-linear-gradient( | |||
45deg, | |||
#9a7b4f, | |||
#9a7b4f 6px, | |||
#b99868 6px, | |||
#b99868 12px | |||
); | |||
} | |||
.address-timeline-bar.inferred { | |||
background: repeating-linear-gradient( | |||
135deg, | |||
#7a7a7a, | |||
#7a7a7a 6px, | |||
#9a9a9a 6px, | |||
#9a9a9a 12px | |||
); | |||
} | |||
.address-timeline-legend { | |||
margin-top: 0.75rem; | |||
font-size: 12px; | |||
color: #444; | |||
} | |||
.address-timeline-legend span { | |||
display: inline-block; | |||
margin-right: 1.2rem; | |||
} | |||
.address-timeline-swatch { | |||
display: inline-block; | |||
width: 18px; | |||
height: 12px; | |||
vertical-align: middle; | |||
margin-right: 0.35rem; | |||
border-radius: 3px; | |||
background: #6d8fb3; | |||
} | |||
.address-timeline-swatch.uncertain { | |||
background: repeating-linear-gradient( | |||
45deg, | |||
#9a7b4f, | |||
#9a7b4f 6px, | |||
#b99868 6px, | |||
#b99868 12px | |||
); | |||
} | |||
.address-timeline-swatch.inferred { | |||
background: repeating-linear-gradient( | |||
135deg, | |||
#7a7a7a, | |||
#7a7a7a 6px, | |||
#9a9a9a 6px, | |||
#9a9a9a 12px | |||
); | |||
} | } | ||
Revision as of 22:57, 6 March 2026
/* CSS placed here will be applied to all skins */
/* added by dmac to increase space between paragraphs */
/* but removed again because it worked only on the first page */
/*.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;}
/* the floruit line that follows the TOC (post_toc)*/
#flline {
font-size: 120%;
}
/*
* 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;
display: none;
}
/* Dot for single-year floruit */
.floruit-tl__dot {
position: absolute;
top: 50%;
width: 10px;
height: 10px;
border-radius: 999px;
transform: translate(-50%, -50%);
background: #4a6cf7;
box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
cursor: help;
}
/*
* ***********************
* Address timelines
* ***********************
*/
.address-timeline {
border: 1px solid #ccc;
padding: 1rem;
margin: 1.5rem 0;
background: #fafafa;
font-size: 14px;
overflow-x: auto;
}
.address-timeline-title {
font-weight: bold;
font-size: 1.1em;
margin-bottom: 0.75rem;
}
.address-timeline-scale {
position: relative;
margin-left: 180px;
height: 2.2rem;
border-bottom: 1px solid #999;
margin-bottom: 0.5rem;
min-width: 800px;
}
.address-timeline-tick {
position: absolute;
bottom: 0;
width: 1px;
height: 10px;
background: #888;
}
.address-timeline-tick-label {
position: absolute;
bottom: 12px;
transform: translateX(-50%);
font-size: 12px;
color: #444;
white-space: nowrap;
}
.address-timeline-row {
position: relative;
min-width: 980px;
height: 2.2rem;
margin-bottom: 0.35rem;
}
.address-timeline-label {
position: absolute;
left: 0;
top: 0.3rem;
width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.address-timeline-track {
position: absolute;
left: 180px;
right: 0;
top: 0.55rem;
height: 1rem;
background:
linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px);
background-size: 10% 100%;
}
.address-timeline-bar {
position: absolute;
top: 0;
height: 1rem;
border-radius: 4px;
background: #6d8fb3;
color: white;
font-size: 12px;
line-height: 1rem;
padding: 0 0.35rem;
overflow: hidden;
white-space: nowrap;
box-sizing: border-box;
}
.address-timeline-bar a {
color: white;
text-decoration: none;
}
.address-timeline-bar a:hover {
text-decoration: underline;
}
.address-timeline-bar.uncertain {
background: repeating-linear-gradient(
45deg,
#9a7b4f,
#9a7b4f 6px,
#b99868 6px,
#b99868 12px
);
}
.address-timeline-bar.inferred {
background: repeating-linear-gradient(
135deg,
#7a7a7a,
#7a7a7a 6px,
#9a9a9a 6px,
#9a9a9a 12px
);
}
.address-timeline-legend {
margin-top: 0.75rem;
font-size: 12px;
color: #444;
}
.address-timeline-legend span {
display: inline-block;
margin-right: 1.2rem;
}
.address-timeline-swatch {
display: inline-block;
width: 18px;
height: 12px;
vertical-align: middle;
margin-right: 0.35rem;
border-radius: 3px;
background: #6d8fb3;
}
.address-timeline-swatch.uncertain {
background: repeating-linear-gradient(
45deg,
#9a7b4f,
#9a7b4f 6px,
#b99868 6px,
#b99868 12px
);
}
.address-timeline-swatch.inferred {
background: repeating-linear-gradient(
135deg,
#7a7a7a,
#7a7a7a 6px,
#9a9a9a 6px,
#9a9a9a 12px
);
}