MediaWiki:Common.css: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 62: | Line 62: | ||
} | } | ||
/* Center the | /* Center the body of the dismissable notice */ | ||
.vector-sitenotice-container . | .vector-sitenotice-container .mw-dismissable-notice-body { | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
| Line 70: | Line 69: | ||
} | } | ||
/* Ensure the dismissable notice has relative positioning */ | /* Ensure the dismissable notice has relative positioning for the button */ | ||
.vector-sitenotice-container .mw-dismissable-notice { | .vector-sitenotice-container .mw-dismissable-notice { | ||
position: relative; | position: relative; | ||
display: inline-block; | display: inline-block; /* May help with centering */ | ||
/* | |||
} | } | ||
/* | /* Ensure the vector-sitenotice-container takes full width and centers content */ | ||
.vector-sitenotice-container { | .vector-sitenotice-container { | ||
width: 100%; /* Take full width */ | |||
text-align: center; /* Center inline(-block) children */ | |||
/* | |||
} | } | ||