mediawiki-skins-MinervaNeue/skinStyles/mobile.startup/search/SearchOverlay.less
Bartosz Dziewoński 1015e653d6 SearchOverlay: Fix position of the 'clear' button
Before c0f08790ea, this was defined as
`( @iconSize / 2 ) + @headerVerticalPadding`, which computed to 0.9em.
Restore the old value since it looks wrong now: T215426#5486117.

Change-Id: Ib14a148da305d98f2d1ce9b1c71cb8910d665e44
2019-09-12 01:08:34 +02:00

60 lines
1.1 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;
}
.header {
height: @siteHeaderHeight;
}
.clear {
position: absolute;
top: 0.9em;
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 );
}
}
}