MediaWiki:Common.css: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 62: | Line 62: | ||
} | } | ||
/* | /* Center the sitenotice body when logged in (with dismiss button) */ | ||
.mw-dismissable-notice-body { | .mw-dismissable-notice-body { | ||
text-align: center; | text-align: center; | ||
display: block; | display: block; /* Ensure it takes up the full width */ | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
/* Style the close button */ | /* You might also need to adjust the main sitenotice container */ | ||
#siteNotice { /* Or whatever the main container ID is */ | |||
text-align: center; /* Ensure any surrounding container is also centered */ | |||
} | |||
/* Style the close button to be positioned without affecting layout */ | |||
.mw-dismissable-notice-close { | .mw-dismissable-notice-close { | ||
position: absolute; | position: absolute; | ||
| Line 86: | Line 84: | ||
} | } | ||
/* | /* Ensure the main dismissable notice container has relative positioning */ | ||
.mw-dismissable-notice | .mw-dismissable-notice { | ||
position: relative; | |||
padding-right: 2em; /* Make space for the close button */ | padding-right: 2em; /* Make space for the close button */ | ||
} | } | ||
Revision as of 01:07, 4 April 2025
/* JUSTIFY ALL TEXT IN CONTENT AREA */
#mw-content-text {
text-align: justify;
}
/* SET BACKGROUND COLOR TO WHITE */
:root {
--background-color-base: white;
}
/* 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: auto;
width: 65%;
padding: 0.5em;
}
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 sitenotice body when logged in (with dismiss button) */
.mw-dismissable-notice-body {
text-align: center;
display: block; /* Ensure it takes up the full width */
margin-left: auto;
margin-right: auto;
}
/* You might also need to adjust the main sitenotice container */
#siteNotice { /* Or whatever the main container ID is */
text-align: center; /* Ensure any surrounding container is also centered */
}
/* Style the close button to be positioned without affecting layout */
.mw-dismissable-notice-close {
position: absolute;
top: 0.5em; /* Adjust as needed */
right: 0.5em; /* Adjust as needed */
cursor: pointer;
/* Add any other styling for the button */
}
/* Ensure the main dismissable notice container has relative positioning */
.mw-dismissable-notice {
position: relative;
padding-right: 2em; /* Make space for the close button */
}