mediawiki-skins-MinervaNeue/skinStyles/mobile.startup/Overlay.less
Volker E 38ca243e39 styles: Replace 'mediawiki.ui/variables' call with skin variables
Replacing 'mediawiki.ui/variables.less' @import with
new skin-aware 'mediawiki.skin.variables.less' standard.
Removing calls for 'mediawiki.skin.variables.less' in favor for
'minerva.variables.less' for consistency.
Also
- replacing several static values with new Codex design token featuring
  skin variables of `background-color`, `color`, `border-*` and
  `transition` categories
- renaming several Less variables to variable naming standard
- moving a small number of MinervaNeue specific variables into
  'minderva.variables.less' file. Those should be replaced in mid-future
  by Codex design tokens

Please note, that this patch is not replacing all values with
possible Codex tokens. It's just applying them on selected
categories for consistency for now to keep the patch easier reviewable.
Further replacements will be done in follow-up patches.

Bump MediaWiki core required version to >= v1.41.0.

Bug: T319381
Bug: T332541
Depends-On: I98c8cc27527533e2efb3b987ee34bc403e988b75
Change-Id: I86c5a35377541a784552c29456e0b8b507b3ee9c
2023-04-24 16:08:27 +00:00

67 lines
1.3 KiB
Plaintext

@import '../../minerva.less/minerva.variables.less';
@import '../../minerva.less/minerva.mixins.less';
.overlay {
textarea {
.editor-textarea();
}
.header-cancel {
padding-left: 4px;
}
.license {
.secondary-text();
}
}
.overlay-header-container {
// Overrides padding added by .header-container
padding: 0;
}
.overlay-header {
height: @overlayHeaderHeight;
.header-chrome & {
height: @siteHeaderHeight;
}
.mw-ui-anchor,
.mw-ui-button:not( .mw-ui-icon ) {
height: @overlayHeaderHeight;
.header-chrome & {
height: @siteHeaderHeight;
}
}
.overlay-title {
padding: @headerVerticalPadding 0;
&:last-child {
// Reserve space to the right in case the search form in the header or
// overlay title in the overlay header is the last element. Use @width-icon-gutter
// because there is a hamburger or close/back icon next to this element and
// the space between them is exactly that.
padding-right: @width-icon-gutter;
}
}
}
.overlay-header-container + .overlay-content {
padding-top: @overlayHeaderHeight;
.header-chrome& {
padding-top: @siteHeaderHeight;
}
}
@media all and ( min-width: @width-breakpoint-desktop ) {
.overlay-header {
// Make sure the close button and secondary button icon images are aligned
// with the content.
max-width: @contentMaxWidthTablet + ( 2 * @width-icon-gutter );
}
}