philomena/assets/css/views/header.css
2024-05-20 23:57:10 +02:00

128 lines
2.4 KiB
CSS

header {
display: flex;
line-height: var(--navbar-size);
padding: 0 var(--padding-large);
font-size: var(--font-header-size);
gap: var(--padding-large);
align-items: center;
}
.header__link {
@mixin animated-transition;
color: var(--text-color) !important;
}
.header__link:hover {
@mixin animated-transition;
color: var(--primary-link-color) !important;
}
.header__link--user {
display: flex;
align-items: center;
gap: var(--padding-normal);
}
.header__logo {
font-size: var(--font-h2-size);
}
.header__search {
display: flex;
flex-wrap: nowrap;
align-items: center;
border: 0;
border-radius: var(--border-radius-inner);
background: var(--primary-muted-color);
height: var(--navbar-input-size);
}
.header__search > button {
background: 0;
border: 0;
}
.header__input {
@mixin animated-transition;
height: var(--navbar-input-size);
font-size: var(--font-size);
background: 0;
border: 0;
}
.header__input--text {
width: var(--navbar-input-width);
max-width: var(--navbar-input-max-width);
}
.header__search__button {
display: flex;
align-items: center;
height: var(--navbar-input-size);
color: var(--text-color) !important;
padding: 0 var(--padding-normal);
}
.header__search__button:hover {
background: var(--primary-color);
cursor: pointer;
}
.header__filter-form {
padding: 0 var(--padding-normal);
}
nav.header__secondary {
display: flex;
line-height: var(--navbar-secondary-size);
padding: 0 var(--padding-large);
font-size: var(--font-header-size);
gap: var(--padding-large);
align-items: center;
background: var(--primary-color);
}
nav.header__secondary .header__link {
color: var(--text-light-color) !important;
}
nav.header__secondary .header__link:hover {
color: var(--primary-link-color) !important;
}
nav.dropdown__content {
line-height: var(--navbar-secondary-size);
}
i.favicon-home {
background-image: url("/favicon.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
min-width: 1em;
height: 1em;
display: inline-block;
}
@mixin if-mobile {
header {
gap: var(--padding-normal);
flex-wrap: wrap;
margin-bottom: var(--padding-normal);
padding: 0 var(--padding-normal);
}
nav.header__secondary {
display: none;
}
form.header__search {
width: 100%;
order: 1;
}
.header__input--text {
width: 100% !important;
max-width: 100% !important;
}
}