MediaWiki:Common.css
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 */
/* 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%; }
/* hide the namespace selector box in search results */
#mw-searchoptions {
display: none;
}
/* hide specific selectors
* - not used here
* .mw-special-Search label[for="mw-search-ns3"] {
* display: none;
*}
*/
/* hide View History if you're not logged in */
/* hide for anonymous users only */
/*body:not(.logged-in) #ca-history {
/* display: none !important;
/*}
*/
/* 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;
background: #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 {
position: relative;
height: 1.4em;
margin-top: 0.35em;
font-size: 0.8em;
opacity: 0.75;
}
/* two new */
.floruit-tl__tick {
position: absolute;
top: 0;
width: 1px;
height: 100%;
}
.floruit-tl__tick--minor {
background: rgba(0,0,0,0.10);
}
.floruit-tl__tick--major {
background: rgba(0,0,0,0.22);
}
.floruit-tl__tick:nth-child(1) { left: 10.204%; }
.floruit-tl__tick:nth-child(2) { left: 20.408%; }
.floruit-tl__tick:nth-child(3) { left: 30.612%; }
.floruit-tl__tick:nth-child(4) { left: 40.816%; }
.floruit-tl__tick:nth-child(5) { left: 51.020%; }
.floruit-tl__tick:nth-child(6) { left: 61.224%; }
.floruit-tl__tick:nth-child(7) { left: 71.429%; }
.floruit-tl__tick:nth-child(8) { left: 81.633%; }
.floruit-tl__tick:nth-child(9) { left: 91.837%; }
/* end of two new */
.floruit-tl__ticklabels span,
.floruit-tl__labels span {
white-space: nowrap;
}
.floruit-tl__ticklabels span {
position: absolute;
transform: translateX(-50%);
}
.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;
}
.floruit-tl__ticklabels span:nth-child(1) { left: 10.204%; }
.floruit-tl__ticklabels span:nth-child(2) { left: 30.612%; }
.floruit-tl__ticklabels span:nth-child(3) { left: 51.020%; }
.floruit-tl__ticklabels span:nth-child(4) { left: 71.429%; }
.floruit-tl__ticklabels span:nth-child(5) { left: 91.837%; }
/* --------------- END of FLORUIT CSS ------------------- */
/*
* ***********************
* 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
);
}
/* dmac - css for my local version of ambox */
.custom-notice {
border: 1px solid #a2a9b1;
padding: 0.75em 1em;
margin: 1em 0;
background: #f8f9fa;
}
.custom-notice-warning {
border-color: #f28500;
background: #fff3e0;
}
.custom-notice-error {
border-color: #d33;
background: #fdeaea;
}
/* end of css for ambox substitute */
/* overall appearance */
body,
.mw-body,
.vector-body {
/*font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;*/
font-size: 1.0rem;
}