Release notes:https://gerrit.wikimedia.org/g/oojs/ui/+/v0.51.2/History.md Bug: T210534 Bug: T324382 Bug: T376276 Depends-On: I50ec27302347203170cb14c7228b6c3d3264b24c Change-Id: Iea7cbc00d988504660754e8728707d0021ae37d7 (cherry picked from commit eb6a4ea1ae271668a0ef78e86ccc180d84614e68)
426 lines
13 KiB
CSS
426 lines
13 KiB
CSS
/*!
|
||
* OOUI v0.51.2
|
||
* https://www.mediawiki.org/wiki/OOUI
|
||
*
|
||
* Copyright 2011–2024 OOUI Team and other contributors.
|
||
* Released under the MIT license
|
||
* http://oojs.mit-license.org
|
||
*
|
||
* Date: 2024-11-13T16:37:13Z
|
||
*/
|
||
|
||
.oo-ui-window {
|
||
background: transparent;
|
||
}
|
||
.oo-ui-window-frame {
|
||
box-sizing: border-box;
|
||
}
|
||
.oo-ui-window-content {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
}
|
||
.oo-ui-window-content:focus {
|
||
outline: 0;
|
||
}
|
||
.oo-ui-window-head,
|
||
.oo-ui-window-foot {
|
||
-webkit-touch-callout: none;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none;
|
||
}
|
||
.oo-ui-window-body {
|
||
margin: 0;
|
||
padding: 0;
|
||
background: none;
|
||
}
|
||
.oo-ui-window-overlay {
|
||
position: absolute;
|
||
top: 0;
|
||
/* @noflip */
|
||
left: 0;
|
||
}
|
||
.oo-ui-window-focusTrap {
|
||
display: none;
|
||
}
|
||
.oo-ui-windowManager-modal .oo-ui-window-focusTrap,
|
||
.oo-ui-windowManager-size-full .oo-ui-window-focusTrap,
|
||
.oo-ui-windowManager-forceTrapFocus .oo-ui-window-focusTrap {
|
||
display: block;
|
||
}
|
||
|
||
.oo-ui-dialog-content > .oo-ui-window-head,
|
||
.oo-ui-dialog-content > .oo-ui-window-body,
|
||
.oo-ui-dialog-content > .oo-ui-window-foot {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
.oo-ui-dialog-content > .oo-ui-window-head {
|
||
overflow: hidden;
|
||
z-index: 3;
|
||
top: 0;
|
||
}
|
||
.oo-ui-dialog-content > .oo-ui-window-body {
|
||
overflow: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
z-index: 2;
|
||
top: 0;
|
||
bottom: 0;
|
||
}
|
||
.oo-ui-dialog-content > .oo-ui-window-foot {
|
||
z-index: 3;
|
||
bottom: 0;
|
||
}
|
||
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget {
|
||
position: relative;
|
||
text-align: center;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget .oo-ui-buttonElement-button {
|
||
display: block;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget .oo-ui-labelElement-label {
|
||
position: relative;
|
||
top: auto;
|
||
bottom: auto;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal {
|
||
display: flex;
|
||
width: 100%;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget {
|
||
flex-grow: 1;
|
||
}
|
||
.oo-ui-messageDialog-actions-vertical {
|
||
display: block;
|
||
}
|
||
.oo-ui-messageDialog-actions-vertical .oo-ui-actionWidget {
|
||
display: block;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.oo-ui-messageDialog-content > .oo-ui-window-foot {
|
||
outline: 1px solid var(--border-color-base, #a2a9b1);
|
||
}
|
||
.oo-ui-messageDialog-title,
|
||
.oo-ui-messageDialog-message {
|
||
display: block;
|
||
line-height: 1.42857143em;
|
||
text-align: center;
|
||
}
|
||
.oo-ui-messageDialog-title {
|
||
font-size: 1.5em;
|
||
color: var(--color-emphasized, #000);
|
||
}
|
||
.oo-ui-messageDialog-message {
|
||
font-size: 1.1em;
|
||
color: var(--color-base, #202122);
|
||
text-align: left;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget {
|
||
min-height: 2.85714286em;
|
||
margin-right: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget:last-child {
|
||
margin-right: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget:first-child {
|
||
margin-left: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget .oo-ui-buttonElement-button {
|
||
border: 0;
|
||
border-radius: 0;
|
||
padding-top: 0;
|
||
padding-bottom: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget.oo-ui-labelElement .oo-ui-labelElement-label {
|
||
line-height: 2.85714286em;
|
||
text-align: center;
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button:active {
|
||
background-color: rgba(8, 126, 204, 0.1);
|
||
}
|
||
.oo-ui-messageDialog-actions .oo-ui-actionWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:active {
|
||
background-color: rgba(212, 83, 83, 0.1);
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget {
|
||
border-right: 1px solid var(--border-color-base, #a2a9b1);
|
||
margin: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget:first-child > .oo-ui-buttonElement-button {
|
||
border-radius: 0 0 0 2px;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget:last-child {
|
||
border-right-width: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget:last-child > .oo-ui-buttonElement-button {
|
||
border-radius: 0 0 2px 0;
|
||
}
|
||
.oo-ui-messageDialog-actions-horizontal .oo-ui-actionWidget:only-child > .oo-ui-buttonElement-button {
|
||
border-radius: 0 0 2px 2px;
|
||
}
|
||
.oo-ui-messageDialog-actions-vertical .oo-ui-actionWidget {
|
||
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
|
||
margin: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions-vertical .oo-ui-actionWidget:last-child {
|
||
border-bottom-width: 0;
|
||
}
|
||
.oo-ui-messageDialog-actions-vertical .oo-ui-actionWidget:last-child > .oo-ui-buttonElement-button {
|
||
border-radius: 0 0 2px 2px;
|
||
}
|
||
|
||
.oo-ui-processDialog-location {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.oo-ui-processDialog-title {
|
||
display: inline;
|
||
padding: 0;
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-actionWidget,
|
||
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget,
|
||
.oo-ui-processDialog-actions-other .oo-ui-actionWidget {
|
||
white-space: nowrap;
|
||
}
|
||
.oo-ui-processDialog-actions-safe,
|
||
.oo-ui-processDialog-actions-primary {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
}
|
||
.oo-ui-processDialog-actions-safe {
|
||
left: 0;
|
||
}
|
||
.oo-ui-processDialog-actions-primary {
|
||
right: 0;
|
||
}
|
||
.oo-ui-processDialog-errors {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 4;
|
||
overflow: hidden auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
.oo-ui-processDialog-content > .oo-ui-window-head,
|
||
.oo-ui-processDialog-content > .oo-ui-window-foot {
|
||
outline: 1px solid var(--border-color-subtle, #c8ccd1);
|
||
}
|
||
.oo-ui-processDialog-content > .oo-ui-window-head {
|
||
min-height: 3em;
|
||
}
|
||
.oo-ui-processDialog-content > .oo-ui-window-body {
|
||
top: 3em;
|
||
}
|
||
.oo-ui-processDialog-navigation {
|
||
position: relative;
|
||
min-height: 3em;
|
||
}
|
||
.oo-ui-processDialog-location {
|
||
min-height: 3em;
|
||
text-align: center;
|
||
cursor: default;
|
||
}
|
||
.oo-ui-processDialog-title {
|
||
font-size: 1.1em;
|
||
font-weight: 700;
|
||
line-height: 2.72727273em;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget > .oo-ui-buttonElement-button {
|
||
border-radius: 0;
|
||
border-top-color: transparent;
|
||
border-bottom-color: transparent;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget > .oo-ui-buttonElement-button:hover,
|
||
.oo-ui-processDialog .oo-ui-actionWidget > .oo-ui-buttonElement-button:active {
|
||
border-top-color: transparent;
|
||
border-bottom-color: transparent;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:hover,
|
||
.oo-ui-processDialog .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:active {
|
||
border-right-color: var(--border-color-subtle, #c8ccd1);
|
||
border-left-color: transparent;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:focus {
|
||
border-color: var(--border-color-progressive--focus, #36c);
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
||
min-height: 3em;
|
||
padding-top: 0;
|
||
padding-left: 3.14285714em;
|
||
padding-right: 0;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget.oo-ui-labelElement:first-child {
|
||
margin-left: 0;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget.oo-ui-labelElement > .oo-ui-buttonElement-button {
|
||
padding: 10px 12px;
|
||
}
|
||
.oo-ui-processDialog .oo-ui-actionWidget.oo-ui-labelElement.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
||
padding-left: 2.42857143em;
|
||
}
|
||
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget > .oo-ui-buttonElement-button {
|
||
border-left-color: var(--border-color-subtle, #c8ccd1);
|
||
border-right-color: transparent;
|
||
}
|
||
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:hover,
|
||
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:active {
|
||
border-left-color: var(--border-color-subtle, #c8ccd1);
|
||
border-right-color: transparent;
|
||
}
|
||
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget:not( .oo-ui-flaggedElement-progressive ):not( .oo-ui-flaggedElement-destructive ) > .oo-ui-buttonElement-button:focus {
|
||
border-color: var(--border-color-progressive--focus, #36c);
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-actionWidget > .oo-ui-buttonElement-button,
|
||
.oo-ui-processDialog-actions-other .oo-ui-actionWidget > .oo-ui-buttonElement-button {
|
||
border-right-color: var(--border-color-subtle, #c8ccd1);
|
||
border-left-color: transparent;
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-widget-enabled.oo-ui-iconElement:not( .oo-ui-labelElement ) > .oo-ui-buttonElement-button {
|
||
background-color: transparent;
|
||
border-right-color: transparent;
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-widget-enabled.oo-ui-iconElement:not( .oo-ui-labelElement ) > .oo-ui-buttonElement-button:hover {
|
||
background-color: var(--background-color-interactive-subtle, #f8f9fa);
|
||
border-right-color: var(--border-color-subtle, #c8ccd1);
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-widget-enabled.oo-ui-iconElement:not( .oo-ui-labelElement ) > .oo-ui-buttonElement-button:active {
|
||
background-color: var(--background-color-interactive, #eaecf0);
|
||
border-right-color: var(--border-color-subtle, #c8ccd1);
|
||
}
|
||
.oo-ui-processDialog-actions-safe .oo-ui-widget-enabled.oo-ui-iconElement:not( .oo-ui-labelElement ) > .oo-ui-buttonElement-button:focus {
|
||
border-color: var(--border-color-progressive--focus, #36c);
|
||
}
|
||
.oo-ui-processDialog-actions-other .oo-ui-actionWidget.oo-ui-buttonElement {
|
||
margin-right: 0;
|
||
}
|
||
.oo-ui-processDialog > .oo-ui-window-frame {
|
||
min-height: 5em;
|
||
}
|
||
.oo-ui-processDialog-errors {
|
||
background-color: rgba(255, 255, 255, 0.9);
|
||
padding: 3em 3em 0 3em;
|
||
}
|
||
.oo-ui-processDialog-errors-title {
|
||
font-size: 1.5em;
|
||
color: var(--color-emphasized, #000);
|
||
margin-bottom: 1.5em;
|
||
text-align: center;
|
||
}
|
||
.oo-ui-processDialog-errors > .oo-ui-messageWidget {
|
||
margin: 1em 0 0;
|
||
}
|
||
.oo-ui-processDialog-errors-actions {
|
||
text-align: center;
|
||
}
|
||
.oo-ui-processDialog-errors-actions > .oo-ui-buttonWidget {
|
||
margin: 2em 1em;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-content > .oo-ui-window-head,
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-navigation,
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-location {
|
||
min-height: 3.14285714em;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-location {
|
||
margin-left: 1em;
|
||
text-align: left;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-title {
|
||
line-height: 2.85714286em;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-processDialog-content > .oo-ui-window-body {
|
||
top: 3.14285714em;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-actionWidget.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
||
min-height: 3.14285714em;
|
||
padding-left: 3.14285714em;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-actionWidget.oo-ui-labelElement > .oo-ui-buttonElement-button {
|
||
min-height: 3.14285714em;
|
||
line-height: 3.14285714em;
|
||
padding: 0 12px;
|
||
}
|
||
.oo-ui-processDialog.oo-ui-isMobile .oo-ui-actionWidget.oo-ui-labelElement.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
||
padding-left: 2.42857143em;
|
||
}
|
||
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog {
|
||
position: fixed;
|
||
width: 0;
|
||
height: 0;
|
||
overflow: hidden;
|
||
z-index: 4;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-active {
|
||
width: auto;
|
||
height: auto;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
padding: 1em;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-active > .oo-ui-window-frame {
|
||
position: absolute;
|
||
right: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
}
|
||
.oo-ui-windowManager-size-full > .oo-ui-dialog > .oo-ui-window-frame {
|
||
width: 100%;
|
||
height: 100%;
|
||
top: 0;
|
||
bottom: 0;
|
||
}
|
||
body.oo-ui-windowManager-modal-active {
|
||
overflow: hidden;
|
||
}
|
||
html.oo-ui-windowManager-modal-active:not( .oo-ui-windowManager-modal-active-fullscreen) {
|
||
scrollbar-gutter: stable;
|
||
}
|
||
.oo-ui-windowManager-ios-modal-ready {
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog {
|
||
background-color: var(--background-color-backdrop-light, rgba(255, 255, 255, 0.65));
|
||
opacity: 0;
|
||
transition-property: opacity;
|
||
transition-duration: 250ms;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
|
||
background-color: var(--background-color-base, #fff);
|
||
opacity: 0;
|
||
transform: scale(0.5);
|
||
transition-property: all;
|
||
transition-duration: 250ms;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-setup {
|
||
opacity: 1;
|
||
}
|
||
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-setup > .oo-ui-window-frame {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
}
|
||
.oo-ui-windowManager-modal:not( .oo-ui-windowManager-size-full) > .oo-ui-dialog > .oo-ui-window-frame {
|
||
top: 1em;
|
||
bottom: 1em;
|
||
max-height: 100%;
|
||
max-height: calc( 100% - 2em );
|
||
border: 1px solid var(--border-color-base, #a2a9b1);
|
||
border-radius: 2px;
|
||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
||
}
|