@import '../../lib/codex-design-tokens/theme-wikimedia-ui.less'; @media ( max-width: 1492px ) { /* Hides the Vector sidebar while an editcheck-enabled editing session is occurring. See T379443. */ /* stylelint-disable selector-class-pattern */ .ve-editcheck-available { .mw-body .vector-column-end, .vector-pinnable-header-pin-button { display: none !important; /* stylelint-disable-line declaration-no-important */ } } /* stylelint-enable selector-class-pattern */ } /* Toolbar */ .ve-ui-editCheck-toolbar { font-size: 0.875rem; // ignore content scaling .mw-mf & { font-size: inherit; } .oo-ui-toolbar-bar { display: flex; flex-wrap: wrap; } .oo-ui-toolbar-tools { flex: 1; display: flex; } .oo-ui-toolbar-tools.oo-ui-toolbar-after { flex: 0; } .oo-ui-toolbar-actions + div { // There's a clear div that we need to enhance slightly flex-basis: 100%; height: 0; } &.ve-init-mw-mobileArticleTarget-toolbar .oo-ui-toolbar-tools.oo-ui-toolbar-after { display: none; } } .ve-ui-toolbar-group-title { font-weight: bold; flex: 5 !important; /* stylelint-disable-line declaration-no-important */ line-height: 3em; text-align: center; } /* Context item */ .ve-ui-editCheckContextItem { > .ve-ui-linearContextItem-head { background: #fce7fe; } &-actions { margin-top: 16px; } } /* Fix the callout border color in browsers which support :has */ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ .ve-ui-desktopContext > .oo-ui-popupWidget:has( .ve-ui-editCheckContextItem:first-child ) .oo-ui-popupWidget-anchor::after { border-bottom-color: #fce7fe; } /* Actions */ .ve-ui-editCheckDialog { font-size: 0.875rem; // ignore content scaling .oo-ui-window-body { padding-left: 12px; } &-title { display: block; font-weight: bold; padding: @spacing-50 0; margin-bottom: @spacing-50; border-bottom: 1px solid @border-color-base; } &-footer { display: flex; justify-content: flex-end; > .oo-ui-labelWidget { align-content: center; } } .ve-ui-editCheckActionWidget { box-sizing: border-box; border: @border-base; margin: @spacing-100 0; white-space: normal; // Minerva needs this &-head { position: relative; padding: @spacing-50 @spacing-75; > .oo-ui-labelElement-label { display: block; margin-left: 2em; font-weight: @font-weight-semi-bold; } } &-body { margin: @spacing-50 @spacing-75 @spacing-100; } &-actions { margin-top: @spacing-100; } &.ve-ui-editCheckActionWidget-collapsed { filter: grayscale( 1 ); > .ve-ui-editCheckActionWidget-body { display: none; } } &.oo-ui-flaggedElement-warning { border-color: @border-color-warning; > .ve-ui-editCheckActionWidget-head { background-color: @background-color-warning-subtle; } } &.oo-ui-flaggedElement-error { border-color: @border-color-error; > .ve-ui-editCheckActionWidget-head { background-color: @background-color-error-subtle; } } &.oo-ui-flaggedElement-success { border-color: @border-color-success; > .ve-ui-editCheckActionWidget-head { background-color: @background-color-success-subtle; } } &.oo-ui-flaggedElement-notice { border-color: @border-color-notice; > .ve-ui-editCheckActionWidget-head { background-color: @background-color-notice-subtle; } } } &.ve-ui-editCheckDialog-singleAction .ve-ui-editCheckActionWidget-collapsed { display: none; } .mw-mf & { top: auto; // See: .ve-ui-mobileContext, which this is closely mimicking background-color: @background-color-interactive-subtle; /* Match toolbar border & shadow */ border-top: @border-subtle; box-shadow: 0 -1px 1px 0 rgba( 0, 0, 0, 0.1 ); /* Transition out faster, as keyboard may be coming up */ transition: transform 100ms; transform: translateY( 0% ); max-width: 995px; margin: 0 auto; &-title { padding: @spacing-75 @spacing-100; margin-bottom: 0; } &-close { position: absolute; right: 0; top: 2px; } &-footer { margin: 0 @spacing-100 @spacing-50; } &.ve-ui-editCheckDialog-collapsed { display: block; transition: transform 250ms; transform: translateY( calc( 100% - 2.5em ) ); } .oo-ui-window-body { padding: 0; } .ve-ui-editCheckActionWidget { margin: 0; border-width: 0; &-head { background-color: transparent !important; /* stylelint-disable-line declaration-no-important */ } &-body { padding-left: 2em; margin-bottom: @spacing-75; } } } } .mw-mf .ve-ce-surface-reviewMode.ve-ce-surface-deactivated { // Otherwise the content will be covered by the mobile context at the end // of the document. (Upstream this?) margin-bottom: 100%; } /* Selections */ .ve-ce-surface-reviewMode + .ve-ui-overlay .ve-ce-surface-selections-editCheck .ve-ce-surface-selection { opacity: 0.2; pointer-events: auto; } .ve-ce-surface-selections-editCheck .ve-ce-surface-selection > div { mix-blend-mode: darken; // Adjust target colours to account for 50% opacity background: ( #fce7fe - 0.8 * ( #fff ) ) / 0.2; // border: 1px solid ( ( #d02aac - 0.8 * ( #fff ) ) / 0.2 ); border-radius: 2px; padding: 2px; margin: -2px 0 0 -2px; } .ve-ce-surface-selections-editCheckWarning .ve-ce-surface-selection { opacity: 0.2; > div { mix-blend-mode: darken; // Adjust target colours to account for 50% opacity background: ( #fef6e7 - 0.8 * ( #fff ) ) / 0.2; // border: 1px solid ( ( #a66200 - 0.8 * ( #fff ) ) / 0.2 ); border-radius: 2px; padding: 2px; margin: -2px 0 0 -2px; } } .ve-ui-editCheck-gutter-highlight { position: absolute; left: 0; width: 2px; overflow: hidden; background-color: @color-base; &-error { background-color: @color-error; } &-warning { background-color: @color-warning; } &-notice { background-color: @color-notice; } &-success { background-color: @color-success; } &-inactive { background-color: @border-color-base; } .mw-mf & { left: -10px; } }