mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
b15fa199a2
* Refactor less variables to make icon touch-area sizes flexible * Search input is bumped up 1px to an even number Bug: T233156 Change-Id: I156d09bfca8db9506c0e9cee21e4d6e0a2e91689
58 lines
1.2 KiB
Plaintext
58 lines
1.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;
|
|
}
|
|
|
|
@icon-height-halved: unit( ( @icon-touch-area-sm / 2 ) / @font-size-browser, em );
|
|
|
|
.clear {
|
|
position: absolute;
|
|
top: ( @siteHeaderHeight / 2 ) - @icon-height-halved;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
|
.overlay.search-overlay {
|
|
.search-box {
|
|
display: table-cell;
|
|
}
|
|
|
|
.spinner-container,
|
|
.search-content,
|
|
.results {
|
|
width: @searchBoxWidth;
|
|
margin-left: (@iconSize + 2 * @iconGutterWidth) + @brandingBoxWidth;
|
|
}
|
|
|
|
.overlay-title {
|
|
width: @searchBoxWidth;
|
|
padding-left: (@iconSize + 2 * @iconGutterWidth) + @brandingBoxWidth;
|
|
}
|
|
|
|
.spinner-container {
|
|
left: auto;
|
|
right: auto;
|
|
}
|
|
|
|
ul {
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media all and ( min-width: @width-breakpoint-desktop ) {
|
|
.overlay.search-overlay {
|
|
.overlay-content {
|
|
// align with the search form
|
|
max-width: @contentMaxWidthTablet + ( 2 * @iconGutterWidth );
|
|
}
|
|
}
|
|
}
|