nightTab/css/header.css
2019-06-13 23:23:38 +01:00

184 lines
3.8 KiB
CSS
Executable File

.header {
position: relative;
display: flex;
flex-direction: row;
z-index: var(--z-index-header);
}
.is-header-area-alignment-horizontal-left .header {
justify-content: flex-start;
}
.is-header-area-alignment-horizontal-center .header {
justify-content: center;
}
.is-header-area-alignment-horizontal-right .header {
justify-content: flex-end;
}
.is-link-show .header {
position: sticky;
top: 0;
left: 0;
}
.header-shade {
background-color: transparent;
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
}
.is-header-radius .header-shade {
border-radius: calc(var(--theme-radius) * 4);
}
.is-header-shade-show .header-shade {
background-color: rgba(var(--header-shade-color), var(--header-shade-opacity));
}
.is-header-shade-style-scroll .header-shade {
transition: background-color var(--animation-speed-slow) ease-in-out;
animation: none;
}
.is-header-border-top .header-shade {
border-top: calc(var(--line-width) * var(--header-border-top)) solid rgb(var(--theme-accent));
}
.is-header-border-bottom .header-shade {
border-bottom: calc(var(--line-width) * var(--header-border-bottom)) solid rgb(var(--theme-accent));
}
.header-area {
padding: calc(var(--gutter) * var(--layout-padding-multiplier));
position: relative;
width: var(--header-area-width);
}
.is-header-border-top .header-area {
border-top: calc(var(--line-width) * var(--header-border-top)) solid transparent;
}
.is-header-border-bottom .header-area {
border-bottom: calc(var(--line-width) * var(--header-border-bottom)) solid transparent;
}
.is-header-radius .header-shade {
border-radius: calc(var(--theme-radius) * 4);
}
.is-header-search-text-align-left .header-search-input {
text-align: left;
}
.is-header-search-text-align-center .header-search-input {
text-align: center;
}
.is-header-search-text-align-right .header-search-input {
text-align: right;
}
.is-header-searching .header-search-input[type="text"] {
padding-right: 3.5em;
}
.header-search-clear {
position: absolute;
top: 0;
right: 0;
}
.header-item-grid {
margin: calc(-1 * calc(var(--gutter) * calc(var(--layout-gutter-multiplier) / 2)));
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: stretch;
pointer-events: none;
}
.is-header-item-alignment-horizontal-left .header-item-grid {
justify-content: flex-start;
}
.is-header-item-alignment-horizontal-center .header-item-grid {
justify-content: center;
}
.is-header-item-alignment-horizontal-right .header-item-grid {
justify-content: flex-end;
}
.header-item {
margin: calc(var(--gutter) * calc(var(--layout-gutter-multiplier) / 2));
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
position: relative;
pointer-events: all;
}
.is-header-search-style-auto .header-search {
flex-grow: 1;
min-width: 10em;
}
.is-header-search-style-custom .header-search {
width: var(--header-search-width);
}
.header-date {
font-size: var(--header-date-size);
}
.header-clock {
font-size: var(--header-clock-size);
}
.header-search {
font-size: var(--header-search-size);
}
.header-button {
font-size: var(--header-button-size);
}
.header-greeting {
font-size: var(--header-greeting-size);
}
.header-transitional {
font-size: var(--header-transitional-size);
}
.header-date,
.header-clock,
.header-search,
.header-edit-add,
.header-accent,
.header-greeting,
.header-transitional,
.header-menu {
display: none;
}
.is-header-search-show .header-search,
.is-header-date-show .header-date,
.is-header-clock-show .header-clock,
.is-header-button-edit-add-show .header-edit-add,
.is-header-button-accent-show .header-accent,
.is-header-greeting-show .header-greeting,
.is-header-transitional-show .header-transitional,
.is-menu .header-menu {
display: flex;
}