2019-08-08 20:01:03 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2018-12-06 22:46:46 +00:00
|
|
|
.overlay.search-overlay {
|
2017-07-12 15:12:40 +00:00
|
|
|
.spinner-container {
|
2019-02-06 13:48:03 +00:00
|
|
|
top: @siteHeaderHeight;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
.clear {
|
2020-02-20 16:10:55 +00:00
|
|
|
background: none;
|
2017-07-12 15:12:40 +00:00
|
|
|
position: absolute;
|
2019-09-30 20:33:20 +00:00
|
|
|
top: 50%;
|
2017-07-12 15:12:40 +00:00
|
|
|
right: 0;
|
2019-09-30 20:33:20 +00:00
|
|
|
transform: translateY( -50% );
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
position: relative;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-05 19:17:54 +00:00
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
2018-12-06 22:46:46 +00:00
|
|
|
.overlay.search-overlay {
|
2021-10-28 21:48:05 +00:00
|
|
|
// TODO: update @iconSize and @iconGutterWidth to reflect new icon button specs
|
|
|
|
@updatedIconSize: 1.25em; // 20px icon width
|
|
|
|
@updatedIconGutterWidth: 0.75em; // 12px padding width
|
|
|
|
@iconBorder: 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: (@updatedIconSize + @updatedIconGutterWidth + @iconBorder) + @brandingBoxWidth;
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2021-10-28 21:48:05 +00:00
|
|
|
.search-box,
|
2017-07-12 15:12:40 +00:00
|
|
|
.search-content,
|
2021-10-28 21:48:05 +00:00
|
|
|
.spinner-container,
|
2017-07-12 15:12:40 +00:00
|
|
|
.results {
|
|
|
|
width: @searchBoxWidth;
|
2021-10-28 21:48:05 +00:00
|
|
|
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;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.overlay-title {
|
2021-10-28 21:48:05 +00:00
|
|
|
width: auto;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlay-content {
|
|
|
|
// Override default width styles
|
|
|
|
width: 100%;
|
|
|
|
max-width: none;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-container {
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-28 21:48:05 +00:00
|
|
|
@media screen and ( min-width: @width-breakpoint-desktop ) {
|
2018-12-06 22:46:46 +00:00
|
|
|
.overlay.search-overlay {
|
2021-10-28 21:48:05 +00:00
|
|
|
// 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;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|