2020-07-07 22:52:12 +00:00
|
|
|
// This assumes the presence of variables inside layout.less. DO NOT import it separately.
|
|
|
|
// Assumes various variables defined there.
|
|
|
|
|
|
|
|
@min-width-search: unit( 350px / @font-size-browser, em );
|
|
|
|
@max-width-search: unit( 580px / @font-size-browser, em );
|
2020-08-17 22:08:22 +00:00
|
|
|
@margin-horizontal-search: unit( 40px / @font-size-browser, em );
|
2020-07-07 22:52:12 +00:00
|
|
|
|
|
|
|
// The logo is variable width but typically consists of:
|
|
|
|
// - a icon (50x50)
|
|
|
|
// - a wordmark (approx 120px)
|
2020-08-17 22:08:22 +00:00
|
|
|
@min-width-logo: unit( 180px / @font-size-browser, em );
|
2020-07-07 22:52:12 +00:00
|
|
|
|
2020-08-17 22:08:22 +00:00
|
|
|
@min-width-personal-tools: unit( 300px / @font-size-browser, em );
|
2020-07-07 22:52:12 +00:00
|
|
|
|
|
|
|
@padding-horizontal-page-container: 30px;
|
|
|
|
@padding-horizontal-page-container-ems: unit( @padding-horizontal-page-container / @font-size-browser, em );
|
2020-08-17 22:08:22 +00:00
|
|
|
@margin-horizontal-sidebar-button-icon-ems: unit( @margin-horizontal-sidebar-button-icon / @font-size-browser, em );
|
2020-08-26 21:31:08 +00:00
|
|
|
@padding-horizontal-page-container-ems: unit( @padding-horizontal-page-container / @font-size-browser, em );
|
2020-07-07 22:52:12 +00:00
|
|
|
|
2020-08-17 22:08:22 +00:00
|
|
|
// the width of the container if you exclude consideration for search
|
2020-08-26 21:31:08 +00:00
|
|
|
@min-width-container-base: @padding-horizontal-page-container-ems + @size-sidebar-button + @margin-horizontal-sidebar-button-icon-ems + @min-width-logo + @min-width-personal-tools + @padding-horizontal-page-container-ems;
|
2020-08-17 22:08:22 +00:00
|
|
|
|
|
|
|
@min-width-supported: @min-width-container-base + @min-width-search;
|
|
|
|
@width-comfortable: @min-width-container-base + @margin-horizontal-search + @max-width-search + @margin-horizontal-search;
|
2020-07-07 22:52:12 +00:00
|
|
|
|
|
|
|
@height-personal-tools: 2em;
|
|
|
|
|
|
|
|
.skin-vector-search-header {
|
|
|
|
|
|
|
|
// Header components
|
|
|
|
#p-search {
|
2020-09-01 12:28:39 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
// Support IE9: float will be disabled if display flex is supported
|
|
|
|
float: left;
|
2020-07-07 22:52:12 +00:00
|
|
|
// Override values to reflect new behaviour.
|
|
|
|
min-width: @min-width-search;
|
2020-08-31 19:37:29 +00:00
|
|
|
max-width: 100%;
|
|
|
|
margin: 0 0 0 @margin-horizontal-search;
|
|
|
|
|
|
|
|
#searchform {
|
|
|
|
margin-left: auto;
|
|
|
|
max-width: @max-width-search;
|
|
|
|
}
|
2020-07-07 22:52:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#p-personal {
|
2020-09-01 12:28:39 +00:00
|
|
|
flex-grow: 1;
|
2020-07-07 22:52:12 +00:00
|
|
|
text-align: right;
|
2020-09-01 19:08:07 +00:00
|
|
|
flex-basis: @min-width-personal-tools;
|
2020-08-31 19:37:29 +00:00
|
|
|
margin-left: @margin-horizontal-search;
|
2020-07-07 22:52:12 +00:00
|
|
|
|
|
|
|
// Support IE9: This is reset in @support query below if Flexbox is available.
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|