MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
Line 62: Line 62:
}
}


/* Center the outer container of the {{notice}} template */
/* Ensure the dismissable notice has relative positioning for the button */
.vector-sitenotice-container .notice.hide-for-print.curved.dismissible-notice {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 65%; /* Adjust this width as needed */
}
 
/* Ensure the dismissable notice has relative positioning */
.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 */
}
 
/* Position the close button */
.vector-sitenotice-container .mw-dismissable-notice-close {
    position: absolute;
    top: 0.5em; /* Adjust as needed */
    right: 0.5em; /* Adjust as needed */
    cursor: pointer;
}
 
/* Center the mw-dismissable-notice within its container */
.vector-sitenotice-container {
    text-align: center;
}
}