MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 9: | Line 9: | ||
} | } | ||
/* | /* Prevent the preview loading spinner from causing layout shifts */ | ||
#wpPreview { | #wpPreview { | ||
position: absolute; | visibility: hidden; /* Initially hidden */ | ||
position: absolute; /* Position it without taking up space in the flow */ | |||
top: 0; | top: 0; | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
width: 50px; /* Fixed width */ | |||
height: 50px; /* Fixed height */ | |||
margin-top: 10px; /* Adjust if necessary */ | |||
z-index: 10; /* Make sure it stays above other elements */ | |||
} | } | ||
/* | /* Space reserved for the spinner when hidden (no layout shift) */ | ||
#wpPreviewContainer { | |||
position: relative; /* Ensures it doesn't impact layout */ | |||
height: 50px; /* Fixed height of the container */ | |||
} | |||
/* When the spinner is active (visible) */ | |||
#wpPreview:not([style*="visibility: hidden"]) { | #wpPreview:not([style*="visibility: hidden"]) { | ||
visibility: visible; | visibility: visible; | ||
animation: pulse 1s infinite; | animation: pulse 1s infinite; | ||
} | } | ||
| Line 34: | Line 40: | ||
100% { transform: scale(1); opacity: 1; } | 100% { transform: scale(1); opacity: 1; } | ||
} | } | ||
/* INFOBOX STYLING */ | /* INFOBOX STYLING */ | ||
Revision as of 01:57, 7 May 2025
/* JUSTIFY ALL TEXT IN CONTENT AREA */
#mw-content-text {
text-align: justify;
}
/* SET BACKGROUND COLOR TO WHITE */
:root {
--background-color-base: white;
}
/* Prevent the preview loading spinner from causing layout shifts */
#wpPreview {
visibility: hidden; /* Initially hidden */
position: absolute; /* Position it without taking up space in the flow */
top: 0;
left: 50%;
transform: translateX(-50%);
width: 50px; /* Fixed width */
height: 50px; /* Fixed height */
margin-top: 10px; /* Adjust if necessary */
z-index: 10; /* Make sure it stays above other elements */
}
/* Space reserved for the spinner when hidden (no layout shift) */
#wpPreviewContainer {
position: relative; /* Ensures it doesn't impact layout */
height: 50px; /* Fixed height of the container */
}
/* When the spinner is active (visible) */
#wpPreview:not([style*="visibility: hidden"]) {
visibility: visible;
animation: pulse 1s infinite;
}
/* Optional: Add pulsing animation */
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.5; }
100% { transform: scale(1); opacity: 1; }
}
/* INFOBOX STYLING */
.infobox {
width: 300px;
background: #f8f9fa;
border: 1px solid #aaa;
padding: 0.5em; /* Keep other padding for now */
margin: -1.5em 0 1.5em 1em;
vertical-align: top;
display: inline-block;
clear: right;
position: relative;
top: 1.5em;
}
.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 { /* For the header cell */
font-weight: bold;
padding: 0.1em;
vertical-align: top;
width: 30%;
text-align: left; /* Align header text to the 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 */
}
/* 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;
background-color: #f9f9f9;
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;
}
/* VERTICAL ALIGN CALENDAR TABLES */
.calendar td,
.calendar th {
vertical-align: top;
}