mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-13 17:37:07 +00:00
38ca243e39
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
81 lines
2 KiB
Plaintext
81 lines
2 KiB
Plaintext
@import '../../../minerva.less/minerva.variables.less';
|
|
|
|
// These styles transform the SearchOverlay appearance in the Minerva skin.
|
|
// Since SearchOverlay can be used by other skins, these styles are kept separate from
|
|
// the others.
|
|
|
|
.overlay.search-overlay {
|
|
.spinner-container {
|
|
top: @siteHeaderHeight;
|
|
}
|
|
|
|
.clear {
|
|
background: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY( -50% );
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
|
.overlay.search-overlay {
|
|
// TODO: update @size-icon and @width-icon-gutter to reflect new icon button specs
|
|
@size-icon-updated: 1.25em; // 20px icon width
|
|
@width-icon-gutter-updated: 0.75em; // 12px padding width
|
|
@border-width-icon: 0.125em; // 1px border width * 2
|
|
// Calculate padding based off icon and branding box widths, accounting for `box-sizing: border-box` on the icon
|
|
@searchPadding: (@size-icon-updated + @width-icon-gutter-updated + @border-width-icon) + @brandingBoxWidth;
|
|
|
|
.search-box,
|
|
.search-content,
|
|
.spinner-container,
|
|
.results {
|
|
width: @searchBoxWidth;
|
|
margin-left: @searchPadding;
|
|
}
|
|
|
|
// Ensure search overlay content is aligned with .heading-container
|
|
.overlay-header-container,
|
|
.overlay-content {
|
|
padding-left: @contentPadding;
|
|
padding-right: @contentPadding;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.overlay-title {
|
|
width: auto;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.overlay-content {
|
|
// Override default width styles
|
|
width: 100%;
|
|
max-width: none;
|
|
}
|
|
|
|
.spinner-container {
|
|
left: auto;
|
|
right: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and ( min-width: @width-breakpoint-desktop ) {
|
|
.overlay.search-overlay {
|
|
// Normally .overlay-content would have these styles by default
|
|
// But since we need to account for .heading-container padding in .overlay-content,
|
|
// we apply these styles directly to the search results instead.
|
|
.search-results-view {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 90%;
|
|
max-width: @contentMaxWidthTablet;
|
|
}
|
|
}
|
|
}
|