MediaWiki:Modal.css: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→** @title Modal styles ** @description Provides some layout improvements to modals. ** @author Polymeric ** @license CC-BY-SA 3.0 ** @note Please install Modal.js for complete functionality.: →Add new invisible backdrop that will handle the close event when clicked.: .oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-backdrop { bottom: 0; height: 100%; left: 0; position: fixed; right: 0; top: 0; width: 100%;...") |
No edit summary |
||
Line 20: | Line 20: | ||
/* Fixing page losing a bit of width when oppening a modal. */ | /* Fixing page losing a bit of width when oppening a modal. */ | ||
.skin- | .skin-vector.oo-ui-windowManager-modal-active { | ||
margin-right: 0 !important; | margin-right: 0 !important; | ||
} | } | ||
Line 38: | Line 38: | ||
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame { | .oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame { | ||
color-scheme: light dark; | color-scheme: light dark; | ||
} | } | ||
Revision as of 03:59, 10 July 2024
/*
** @title Modal styles
** @description Provides some layout improvements to modals.
** @author Polymeric
** @license CC-BY-SA 3.0
** @note Please install Modal.js for complete functionality.
*/
/* Add new invisible backdrop that will handle the close event when clicked. */
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-backdrop {
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: -1;
}
/* Fixing page losing a bit of width when oppening a modal. */
.skin-vector.oo-ui-windowManager-modal-active {
margin-right: 0 !important;
}
/* Preventing modal footer from overlapping the header. */
.oo-ui-windowManager-modal.oo-ui-windowManager-floating > .oo-ui-dialog > .oo-ui-window-frame {
min-height: 148px;
}
/* Add some horizontal padding to the modal body. */
.oo-ui-window-content.oo-ui-processDialog-content .oo-ui-window-body {
padding: 8px 19px;
}
/* Other styles. */
/** Change input colors to match that of the wiki's theme. **/
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
color-scheme: light dark;
}
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame hr {
border: none;
border-bottom: 1px solid var(--theme-border-color);
}