MediaWiki:Common.css: Difference between revisions

From The Reed and Rite
No edit summary
mNo edit summary
Tag: Manual revert
 
(379 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Justify all text in content area */
/* JUSTIFY ALL TEXT IN CONTENT AREA */
#mw-content-text {
.ns-0 #mw-content-text,
.ns-10 #mw-content-text,
.ns-12 #mw-content-text,
.ns-100 #mw-content-text {
     text-align: justify;
     text-align: justify;
}
}


body {
/* SET BACKGROUND COLOR TO WHITE */
     background-color: white !important;
:root {
     --background-color-base: white;
}
}


/* See [[mw:Reference Tooltips]] */
h1, h2, h3, h4, h5 {
  text-align: left !important;
}


.rt-overlay {
/* SET LEVEL 3 HEADING STYLE */
position: absolute;
h3 {
width: 100%;
  font-family: Georgia, serif !important;
font-size: calc(var(--font-size-medium, 1rem) * (13 / 14));
  font-weight: normal !important;
line-height: 1.5em;
  font-size: 1.25em !important;
  border-bottom: 1px solid #a2a9b1 !important;
}


/* Remove after https://phabricator.wikimedia.org/T369880 is resolved and $teleportTarget is assigned */
/* INFOBOX STYLING */
z-index: 800; /* match z-index-tooltip in https://doc.wikimedia.org/codex/latest/design-tokens/z-index.html */
.infobox {
top: 0;
  background: #f8f9fa;
  border: 1px solid #aaa;
  padding: 0.5em; /* Keep other padding for now */
  vertical-align: top;
}
}


/* Remove after https://phabricator.wikimedia.org/T369880 is resolved and $teleportTarget is assigned */
.infobox-float {
.skin-vector-legacy .rt-overlay {
  width: 300px;
font-size: 13px;
  float: right;
  clear: right;
  display: inline-block;
  position: relative;
  top: 1.5em;
  margin: -1.5em 0 1.5em 1em;
}
}


.skin-monobook .rt-overlay {
.infobox-table {
font-size: 12.7px;
  width: 100%;
  border-spacing: 0;
  margin: 0;
  background-color: #f8f9fa;
}
}


.rt-tooltip {
.infobox-header {
position: absolute;
  text-align: center;
max-width: 27em;
  background-color: #f8f9fa;
background: var(--background-color-base, #fff);
  font-size: 120%;
color: var(--color-base, #202122);
  font-weight: bold;
border: 1px solid var(--border-color-subtle, #c8ccd1);
  margin-top: -5em; /* Add a top margin */
border-radius: 2px;
  margin-bottom: 0.1em; /* Add a bottom margin */
box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.2);
}
}


html.skin-theme-clientpref-night .rt-tooltip {
.infobox-image-container { /* New class for the image container */
box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 1);
  display: block;
  margin: 0.2em auto; /* Reduce top and bottom margin */
  margin-top: 0.35em;
  margin-bottom: 0.5em;
  padding: 0; /* Remove padding */
  background-color: #f8f9fa;
  text-align: center; /* Ensure image is centered within the container */
}
}


/* Extend the tooltip vertically to make sure it doesn't disappear while the user moves the mouse to it */
.infobox-image {
.rt-tooltip-above .rt-hoverArea {
  padding: 0;
margin-bottom: -0.6em;
  background-color: #f8f9fa;
padding-bottom: 0.6em;
}
}


.rt-tooltip-below .rt-hoverArea {
.infobox-caption {
margin-top: -0.7em;
  text-align: center;
padding-top: 0.7em;
  font-size: 80%;
  color: #000000;
  background-color: #f8f9fa;
  padding: 0.1em 0;
}
}


.rt-scroll {
/* Styling for data rows */
overflow-x: auto;
.infobox-data-row {
  background-color: #f8f9fa;
}
}


.rt-content {
.infobox-data-row th {
padding: 0.7em 0.9em;
  padding: 0.1em;
overflow-wrap: break-word;
  vertical-align: top;
  width: 30%;
  text-align: left;
}
}


.rt-tail {
.infobox-data-row td { /* For the data cell */
/* Use 48%, not 50%, to make the tail start at a right place in Blink browsers in Windows on bigger system font sizes */
  text-align: left;
background: linear-gradient(to top right, var(--border-color-subtle, #c8ccd1) 48%, rgba(0, 0, 0, 0) 48%);
  vertical-align: top;
 
  padding: 0.1em;
--tail-left: 19px;
--tail-side-width: 13px;
}
}


.rt-tail,
/* CITATIONS CUSTOMIZATIONS */
.rt-tail:after {
/* Remove brackets around superscript citation numbers
position: absolute;
.reference .cite-bracket { font-size: 0; } */


/* Make sure the tail is behind the scrollbar, e.g. [73] at
/* TARGET THE CARET (^) IN SINGLE CITATION BACKLINKS AND MAKE IT BOLD */
  https://en.wikipedia.org/w/index.php?title=Lemniscate_elliptic_functions&oldid=1231701944#cite_ref-73
.mw-cite-backlink > a {
  if .rt-tooltip has width of 25em */
    font-weight: bold;   /* Make caret bold */
z-index: -1;
    font-style: normal; /* Ensure caret is not italicized */
width: var(--tail-side-width);
height: var(--tail-side-width);
}
}


.rt-tail:after {
/* TARGET THE LOWERCASE LETTERS (a, b, c, ...) IN MANY CITATION BACKLINKS */
content: '';
.mw-cite-backlink > sup > a {
background: var(--background-color-base, #fff);
    font-weight: bold;   /* Make letters bold */
bottom: 1px;
    font-style: italic;   /* Make letters italic */
left: 1px;
}
}


.rt-tooltip-above .rt-tail {
/* HIDE ORIGINAL REVISION NOTICE WHEN USING THE TIME MACHINE */
transform: rotate(-45deg);
#mw-content-subtitle > .mw-revision {
transform-origin: 100% 100%;
  display: none !important;
bottom: 0;
left: var(--tail-left);
}
}


.rt-tooltip-below .rt-tail {
/* NOTICES DEFAULT APPEARANCE */
transform: rotate(135deg);
div.notice {
transform-origin: 0 0;
  text-align: center;
top: 0;
  margin: 0.3em auto;
left: calc(var(--tail-left) + var(--tail-side-width));
  padding: 0.5em;
  width: auto; /* Let the width be set by the template */
  box-sizing: border-box;
}
}


.rt-settingsLink {
div.notice.quality {
background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%0D%0A%20%20%20%20%3Cpath%20fill%3D%22%2354595d%22%20d%3D%22M20%2014.5v-2.9l-1.8-.3c-.1-.4-.3-.8-.6-1.4l1.1-1.5-2.1-2.1-1.5%201.1c-.5-.3-1-.5-1.4-.6L13.5%205h-2.9l-.3%201.8c-.5.1-.9.3-1.4.6L7.4%206.3%205.3%208.4l1%201.5c-.3.5-.4.9-.6%201.4l-1.7.2v2.9l1.8.3c.1.5.3.9.6%201.4l-1%201.5%202.1%202.1%201.5-1c.4.2.9.4%201.4.6l.3%201.8h3l.3-1.8c.5-.1.9-.3%201.4-.6l1.5%201.1%202.1-2.1-1.1-1.5c.3-.5.5-1%20.6-1.4l1.5-.3zM12%2016c-1.7%200-3-1.3-3-3s1.3-3%203-3%203%201.3%203%203-1.3%203-3%203z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
font-style: italic;
float: right;
margin: -0.5em -0.5em 0 0.5em;
box-sizing: border-box;
height: 32px;
width: 32px;
border: 1px solid transparent;
border-radius: 2px;
background-position: center center;
background-repeat: no-repeat;
background-size: 24px 24px;
}
}


html.skin-theme-clientpref-night .rt-settingsLink {
img.notice {
background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%0D%0A%20%20%20%20%3Cpath%20fill%3D%22%23c8ccd1%22%20d%3D%22M20%2014.5v-2.9l-1.8-.3c-.1-.4-.3-.8-.6-1.4l1.1-1.5-2.1-2.1-1.5%201.1c-.5-.3-1-.5-1.4-.6L13.5%205h-2.9l-.3%201.8c-.5.1-.9.3-1.4.6L7.4%206.3%205.3%208.4l1%201.5c-.3.5-.4.9-.6%201.4l-1.7.2v2.9l1.8.3c.1.5.3.9.6%201.4l-1%201.5%202.1%202.1%201.5-1c.4.2.9.4%201.4.6l.3%201.8h3l.3-1.8c.5-.1.9-.3%201.4-.6l1.5%201.1%202.1-2.1-1.1-1.5c.3-.5.5-1%20.6-1.4l1.5-.3zM12%2016c-1.7%200-3-1.3-3-3s1.3-3%203-3%203%201.3%203%203-1.3%203-3%203z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
width: 1em;
}
}


.rt-settingsLink:hover,
/* curved */
.rt-settingsLink:active {
.curved {
background-color: var(--background-color-interactive, #eaecf0);
  border-radius: 10px;
}
}


.rt-settingsLink:active {
.dismiss-button {
border-color: var(--border-color-interactive, #72777d);
  font-size: 1.5em; /* Adjust the size as needed */
  color: #000000; /* Initial color */
}
}


.rt-settingsLink:focus {
.dismiss-button:hover {
outline: 1px solid transparent;
  color: #666666; /* Color on hover */
}
}


.rt-settingsLink:focus:not(:active) {
/* NAVIGATION */
border-color: var(--border-color-progressive--focus, #36c);
.navigation {
box-shadow: inset 0 0 0 1px var(--box-shadow-color-progressive--focus, #36c);
  display: block;
  margin: 1em 40px;
  font-style: italic;
}
}


.rt-target {
/* Center the body of the dismissable notice */
background-color: var(--background-color-progressive-subtle, #eaf3ff);
.vector-sitenotice-container .mw-dismissable-notice-body {
    margin-left: auto;
    margin-right: auto;
}
}


.rt-enableField {
/* Ensure the dismissable notice has relative positioning for the button */
font-weight: bold;
.vector-sitenotice-container .mw-dismissable-notice {
margin-bottom: 1.25em;
position: relative;
}
}


.rt-numberInput.rt-numberInput {
/* HIDES TEMPLATE:NOTICE DISMISS BUTTON FROM ANONYMOUS USERS */
width: 10em;
.user-logged-out .user-only-dismiss {
  display: none !important;
}
}


.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
/*EDITORIAL NOTATION TOOLTIP STYLING*/
margin-top: 1.25em;
.editorial-notation-tooltip-box {
  position: absolute;
  max-width: 500px;
  background-color: #e7f1fd;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  font-size: 0.9em;
}
}


.rt-disabledHelp {
.editorial-notation-tooltip span {
border-collapse: collapse;
  cursor: help;
  text-decoration: none;
}
}


.rt-disabledHelp td {
.editorial-notation-tooltip span:hover {
padding: 0;
  text-decoration: underline;
}
}


.rt-disabledNote.rt-disabledNote {
/* VERTICAL ALIGN CALENDAR TABLES */
vertical-align: bottom;
.calendar td,
padding-left: 0.36em;
.calendar th {
font-weight: bold;
  vertical-align: top;
}
}


@keyframes rt-fade-in-up {
/*  TEMPLATE:ART INFOBOX STYLING */
0% {
.art-infobox {
opacity: 0;
  display: inline-block;
transform: translate(0, 20px);
  max-width: 50%;
}
  background: #f8f9fa;
100% {
  border: 1px solid #aaa;
opacity: 1;
  padding: 0.7em;
transform: translate(0, 0);
  vertical-align: top;
}
  box-sizing: border-box;
  float: none;
  clear: none;
  position: static;
  top: auto;
}
}


@keyframes rt-fade-in-down {
.art-infobox-table {
0% {
  width: 100%;
opacity: 0;
  border-spacing: 0;
transform: translate(0, -20px);
  margin: 0;
}
  background-color: #f8f9fa;
100% {
opacity: 1;
transform: translate(0, 0);
}
}
}


@keyframes rt-fade-out-down {
.art-infobox th {
0% {
  vertical-align: top;
opacity: 1;
  padding-right: 0.5em;
transform: translate(0, 0);
}
100% {
opacity: 0;
transform: translate(0, 20px);
}
}
}


@keyframes rt-fade-out-up {
/* ENSURE IMAGES FIT MOBILE SCREENS  */
0% {
.thumbinner { max-width: 80vw; }
opacity: 1;
.thumbimage { max-width: 80vw; height: auto; }
transform: translate(0, 0);
 
}
/* PREVENT LOADING INDICATOR FROM BOUNCING THE WHOLE PAGE */
100% {
.mw-indicators.mw-preview-loading-elements {
opacity: 0;
    display: none !important;
transform: translate(0, -20px);
}
}
}


.rt-fade-in-up {
 
animation: rt-fade-in-up 0.2s ease forwards;
#editlock {
  background-color: #e7f1fd;
}
}


.rt-fade-in-down {
/* Hide Privacy Policy link in Vector 2022 footer */
animation: rt-fade-in-down 0.2s ease forwards;
#footer-places-privacy {
    display: none !important; /* Use !important just in case of specificity issues */
}
}


.rt-fade-out-down {
/* Hide Disclaimers link in Vector 2022 footer */
animation: rt-fade-out-down 0.2s ease forwards;
#footer-places-disclaimers {
    display: none !important; /* Use !important just in case of specificity issues */
}
}


.rt-fade-out-up {
/* ConfirmEdit QuestyCaptcha -- on Create Account */
animation: rt-fade-out-up 0.2s ease forwards;
.mw-htmlform-field-HTMLInfoField .cdx-field__control {
    color:green;
    font-weight:bold;
    font-size:105%;
    font-style:italic;
}
}

Latest revision as of 04:08, 1 July 2026

/* JUSTIFY ALL TEXT IN CONTENT AREA */
.ns-0 #mw-content-text,
.ns-10 #mw-content-text,
.ns-12 #mw-content-text,
.ns-100 #mw-content-text {
    text-align: justify;
}

/* SET BACKGROUND COLOR TO WHITE */
:root {
    --background-color-base: white;
}

h1, h2, h3, h4, h5 {
  text-align: left !important;
}

/* SET LEVEL 3 HEADING STYLE */
h3 {
  font-family: Georgia, serif !important;
  font-weight: normal !important;
  font-size: 1.25em !important;
  border-bottom: 1px solid #a2a9b1 !important;
}

/* INFOBOX STYLING */
.infobox {
  background: #f8f9fa;
  border: 1px solid #aaa;
  padding: 0.5em; /* Keep other padding for now */
  vertical-align: top;
}

.infobox-float {
  width: 300px;
  float: right;
  clear: right;
  display: inline-block;
  position: relative;
  top: 1.5em;
  margin: -1.5em 0 1.5em 1em;
}

.infobox-table {
  width: 100%;
  border-spacing: 0;
  margin: 0;
  background-color: #f8f9fa;
}

.infobox-header {
  text-align: center;
  background-color: #f8f9fa;
  font-size: 120%;
  font-weight: bold;
  margin-top: -5em; /* Add a top margin */
  margin-bottom: 0.1em; /* Add a bottom margin */
}

.infobox-image-container { /* New class for the image container */
  display: block;
  margin: 0.2em auto; /* Reduce top and bottom margin */
  margin-top: 0.35em;
  margin-bottom: 0.5em;
  padding: 0; /* Remove padding */
  background-color: #f8f9fa;
  text-align: center; /* Ensure image is centered within the container */
}

.infobox-image {
  padding: 0;
  background-color: #f8f9fa;
}

.infobox-caption {
  text-align: center;
  font-size: 80%;
  color: #000000;
  background-color: #f8f9fa;
  padding: 0.1em 0;
}

/* Styling for data rows */
.infobox-data-row {
  background-color: #f8f9fa;
}

.infobox-data-row th {
  padding: 0.1em;
  vertical-align: top;
  width: 30%;
  text-align: left;
}

.infobox-data-row td { /* For the data cell */
  text-align: left;
  vertical-align: top;
  padding: 0.1em;
}

/* CITATIONS CUSTOMIZATIONS */
/* Remove brackets around superscript citation numbers 
.reference .cite-bracket { font-size: 0; } */

/* TARGET THE CARET (^) IN SINGLE CITATION BACKLINKS AND MAKE IT BOLD */
.mw-cite-backlink > a {
    font-weight: bold;   /* Make caret bold */
    font-style: normal;  /* Ensure caret is not italicized */
}

/* TARGET THE LOWERCASE LETTERS (a, b, c, ...) IN MANY CITATION BACKLINKS */
.mw-cite-backlink > sup > a {
    font-weight: bold;    /* Make letters bold */
    font-style: italic;   /* Make letters italic */
}

/* HIDE ORIGINAL REVISION NOTICE WHEN USING THE TIME MACHINE */
#mw-content-subtitle > .mw-revision {
  display: none !important;
}

/* NOTICES DEFAULT APPEARANCE */
div.notice {
  text-align: center;
  margin: 0.3em auto;
  padding: 0.5em;
  width: auto; /* Let the width be set by the template */
  box-sizing: border-box;
}

div.notice.quality {
 font-style: italic;
}

img.notice {
 width: 1em;
}

/* curved */
.curved {
  border-radius: 10px;
}

.dismiss-button {
  font-size: 1.5em; /* Adjust the size as needed */
  color: #000000; /* Initial color */
}

.dismiss-button:hover {
  color: #666666; /* Color on hover */
}

/* NAVIGATION */
.navigation {
  display: block;
  margin: 1em 40px;
  font-style: italic;
}

/* Center the body of the dismissable notice */
.vector-sitenotice-container .mw-dismissable-notice-body {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the dismissable notice has relative positioning for the button */
.vector-sitenotice-container .mw-dismissable-notice {
	position: relative;
}

/* HIDES TEMPLATE:NOTICE DISMISS BUTTON FROM ANONYMOUS USERS */
.user-logged-out .user-only-dismiss {
  display: none !important;
}

/*EDITORIAL NOTATION TOOLTIP STYLING*/
.editorial-notation-tooltip-box {
  position: absolute;
  max-width: 500px;
  background-color: #e7f1fd;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  font-size: 0.9em;
}

.editorial-notation-tooltip span {
  cursor: help;
  text-decoration: none;
}

.editorial-notation-tooltip span:hover {
  text-decoration: underline;
}

/* VERTICAL ALIGN CALENDAR TABLES */
.calendar td,
.calendar th {
  vertical-align: top;
}

/*  TEMPLATE:ART INFOBOX STYLING */
.art-infobox {
  display: inline-block;
  max-width: 50%;
  background: #f8f9fa;
  border: 1px solid #aaa;
  padding: 0.7em;
  vertical-align: top;
  box-sizing: border-box;
  float: none;
  clear: none;
  position: static;
  top: auto;
}

.art-infobox-table {
  width: 100%;
  border-spacing: 0;
  margin: 0;
  background-color: #f8f9fa;
}

.art-infobox th {
  vertical-align: top;
  padding-right: 0.5em;
}

/* ENSURE IMAGES FIT MOBILE SCREENS  */
.thumbinner { max-width: 80vw; }
.thumbimage { max-width: 80vw; height: auto; }

/* PREVENT LOADING INDICATOR FROM BOUNCING THE WHOLE PAGE */
.mw-indicators.mw-preview-loading-elements {
    display: none !important;
}


#editlock {
  background-color: #e7f1fd;
}

/* Hide Privacy Policy link in Vector 2022 footer */
#footer-places-privacy {
    display: none !important; /* Use !important just in case of specificity issues */
}

/* Hide Disclaimers link in Vector 2022 footer */
#footer-places-disclaimers {
    display: none !important; /* Use !important just in case of specificity issues */
}

/* ConfirmEdit QuestyCaptcha -- on Create Account */
.mw-htmlform-field-HTMLInfoField .cdx-field__control {
    color:green;
    font-weight:bold;
    font-size:105%;
    font-style:italic;
}