mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
ee80c16f2c
Split @headerHeight variable into @siteHeaderHeight and @overlayHeaderHeight. @overlayHeaderHeight is now set to 3em (48px). Use @siteHeaderHeight for the base skin interface, and @overlayHeaderHeight for overlays. skinStyles/mobile.notifications.overlay/minerva.less: * Update footer height to remain the same as header height. skinStyles/mobile.startup/search/SearchOverlay.less: * Use @siteHeaderHeight even though it is an overlay, because it's supposed to exactly match the base skin interface. Bug: T215426 Change-Id: Iaa36f581a12a8eea2b755ae583b8a2c6324ebe29
62 lines
1.2 KiB
Plaintext
62 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;
|
|
}
|
|
|
|
.header {
|
|
height: @siteHeaderHeight;
|
|
}
|
|
|
|
.clear {
|
|
position: absolute;
|
|
// the icon should take into account overlay-title top padding
|
|
// and then be centered
|
|
top: ( @iconSize / 2 ) + @headerVerticalPadding;
|
|
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 );
|
|
}
|
|
}
|
|
}
|