MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 156: | Line 156: | ||
} | } | ||
/* --------------- END of FLORUIT CSS ------------------- */ | /* --------------- END of FLORUIT CSS ------------------- */ | ||
Revision as of 19:09, 2 April 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%; }
/* 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-color: #e6e6e6;
background-image:
/* major ticks: 1500, 1600, 1700, 1800, 1900 */
linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
/* minor ticks: 1550, 1650, 1750, 1850 */
linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)),
linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)),
linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)),
linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10));
background-size:
1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%,
1px 100%, 1px 100%, 1px 100%, 1px 100%;
background-position:
10.204% 0, 30.612% 0, 51.020% 0, 71.429% 0, 91.837% 0,
20.408% 0, 40.816% 0, 61.224% 0, 81.633% 0;
background-repeat: no-repeat;
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;
}
.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;
}
/* --------------- 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;
}