MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 62: | Line 62: | ||
} | } | ||
/* Center the | /* Center the body of the dismissable notice */ | ||
.vector-sitenotice-container | .vector-sitenotice-container .mw-dismissable-notice-body { | ||
text-align: center; | text-align: center; | ||
display: block; | display: block; | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
/* | /* Also try centering the localNotice container */ | ||
.vector-sitenotice-container | .vector-sitenotice-container #localNotice { | ||
text-align: center; | |||
display: block; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
/* Ensure the | /* Ensure the dismissable notice has relative positioning and padding for the button */ | ||
.vector-sitenotice-container .mw-dismissable-notice { | .vector-sitenotice-container .mw-dismissable-notice { | ||
position: relative; | position: relative; | ||
padding-right: | padding-right: 2em; /* Adjust based on button size */ | ||
} | } | ||
/* | /* Position the close button (adjust if needed) */ | ||
.vector-sitenotice-container | .vector-sitenotice-container .mw-dismissable-notice-close { | ||
position: absolute; | |||
top: 0.5em; | |||
right: 0.5em; | |||
cursor: pointer; | |||
} | } | ||
/* | /* Ensure the vector-sitenotice-container centers its content */ | ||
.vector-sitenotice-container { | .vector-sitenotice-container { | ||
text-align: center; | text-align: center; | ||
} | } | ||