philomena/assets/css/views/header.css

119 lines
2.2 KiB
CSS
Raw Normal View History

2023-11-23 22:20:02 +01:00
header {
display: flex;
2023-11-23 17:07:49 +01:00
line-height: var(--navbar-size);
2024-04-17 16:52:50 +02:00
padding: 0 var(--padding-large);
2023-11-23 17:07:49 +01:00
font-size: var(--font-header-size);
2023-11-23 22:20:02 +01:00
gap: var(--padding-large);
align-items: center;
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__link {
color: var(--text-color) !important;
}
2023-11-23 17:07:49 +01:00
2023-11-23 22:20:02 +01:00
.header__link--user {
display: flex;
align-items: center;
gap: var(--padding-normal);
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__logo {
2024-04-17 16:52:50 +02:00
font-size: var(--font-h2-size)
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__search {
display: flex;
flex-wrap: nowrap;
align-items: center;
2023-11-23 22:20:02 +01:00
border: 0;
border-radius: var(--border-radius-inner);
background: var(--primary-muted-color);
height: var(--navbar-input-size);
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__search > button {
background: 0;
border: 0;
2023-11-23 17:07:49 +01:00
}
.header__input {
@mixin animated-transition;
2023-11-23 17:07:49 +01:00
height: var(--navbar-input-size);
font-size: var(--font-size);
2023-11-23 22:20:02 +01:00
background: 0;
2023-11-23 17:07:49 +01:00
border: 0;
}
2023-11-23 22:20:02 +01:00
.header__input--text {
width: var(--navbar-input-width);
max-width: var(--navbar-input-max-width);
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__search__button {
display: flex;
align-items: center;
height: var(--navbar-input-size);
color: var(--text-color) !important;
padding: 0 var(--padding-normal);
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__search__button:hover {
background: var(--primary-color);
cursor: pointer;
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
.header__filter-form {
padding: 0 var(--padding-normal);
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
nav.header__secondary {
display: flex;
line-height: var(--navbar-secondary-size);
2024-04-17 16:52:50 +02:00
padding: 0 var(--padding-large);
2023-11-23 22:20:02 +01:00
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;
2023-11-23 17:07:49 +01:00
}
2023-11-23 22:20:02 +01:00
nav.dropdown__content {
line-height: var(--navbar-secondary-size);
2023-11-23 17:07:49 +01:00
}
2024-05-20 21:25:43 +02:00
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 {
2023-11-23 22:20:02 +01:00
header {
gap: var(--padding-normal);
flex-wrap: wrap;
margin-bottom: var(--padding-normal);
2024-04-17 16:52:50 +02:00
padding: 0 var(--padding-normal);
2023-11-23 22:20:02 +01:00
}
nav.header__secondary {
display: none;
}
form.header__search {
width: 100%;
order: 1;
}
.header__input--text {
width: 100% !important;
max-width: 100% !important;
}
2023-11-23 17:07:49 +01:00
}