2023-12-30 05:29:53 +00:00
|
|
|
<template>
|
|
|
|
<header class="header">
|
|
|
|
<nav class="nav">
|
2024-02-22 04:08:06 +00:00
|
|
|
<Link href="/">
|
|
|
|
<h1 class="title">
|
|
|
|
<div
|
|
|
|
class="logo"
|
|
|
|
v-html="logo"
|
|
|
|
/>
|
|
|
|
</h1>
|
|
|
|
</Link>
|
|
|
|
|
2023-12-30 05:29:53 +00:00
|
|
|
<ul class="nav-list nolist">
|
2024-02-29 04:24:34 +00:00
|
|
|
<!--
|
2023-12-30 05:29:53 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<Link
|
|
|
|
class="link"
|
2024-02-27 00:51:14 +00:00
|
|
|
:class="{ active: activePage === 'updates' }"
|
2023-12-30 05:29:53 +00:00
|
|
|
href="/updates"
|
|
|
|
>Updates</Link>
|
|
|
|
</li>
|
2024-02-29 04:24:34 +00:00
|
|
|
-->
|
2023-12-30 05:29:53 +00:00
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<Link
|
|
|
|
class="link"
|
2024-02-27 00:51:14 +00:00
|
|
|
:class="{ active: activePage === 'actors' }"
|
2023-12-30 05:29:53 +00:00
|
|
|
href="/actors"
|
|
|
|
>Actors</Link>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<Link
|
|
|
|
class="link"
|
2024-02-27 00:51:14 +00:00
|
|
|
:class="{ active: activePage === 'channels' }"
|
2023-12-30 05:29:53 +00:00
|
|
|
href="/channels"
|
|
|
|
>Channels</Link>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<Link
|
|
|
|
class="link"
|
2024-03-24 20:00:06 +00:00
|
|
|
:class="{ active: activePage === 'tags' }"
|
|
|
|
href="/tags"
|
2023-12-30 05:29:53 +00:00
|
|
|
>Tags</Link>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<Link
|
|
|
|
class="link"
|
2024-02-27 00:51:14 +00:00
|
|
|
:class="{ active: activePage === 'movies' }"
|
2023-12-30 05:29:53 +00:00
|
|
|
href="/movies"
|
|
|
|
>Movies</Link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2024-02-22 04:08:06 +00:00
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
<div class="header-section">
|
|
|
|
<form
|
|
|
|
class="search"
|
2024-02-29 04:24:34 +00:00
|
|
|
:class="{ focused: searchFocused }"
|
2024-02-29 04:08:54 +00:00
|
|
|
@submit.prevent="search"
|
2024-02-22 04:08:06 +00:00
|
|
|
>
|
2024-02-29 04:08:54 +00:00
|
|
|
<input
|
|
|
|
v-model="query"
|
|
|
|
type="search"
|
|
|
|
placeholder="Search"
|
|
|
|
class="input"
|
2024-02-29 04:24:34 +00:00
|
|
|
@focus="searchFocused = true"
|
2024-03-26 23:06:03 +00:00
|
|
|
@blur="blurSearch"
|
2024-02-29 04:08:54 +00:00
|
|
|
>
|
2024-02-22 04:08:06 +00:00
|
|
|
|
2024-03-26 23:06:03 +00:00
|
|
|
<button
|
|
|
|
class="search-button"
|
|
|
|
data-search
|
|
|
|
>
|
2024-02-29 04:24:34 +00:00
|
|
|
<Icon icon="search" />
|
|
|
|
</button>
|
2024-02-29 04:08:54 +00:00
|
|
|
</form>
|
|
|
|
|
2024-05-20 04:29:10 +00:00
|
|
|
<div
|
|
|
|
class="userpanel"
|
|
|
|
:class="{ searching: searchFocused }"
|
2024-02-29 04:08:54 +00:00
|
|
|
>
|
2024-05-20 04:29:10 +00:00
|
|
|
<VDropdown
|
2024-06-10 01:24:48 +00:00
|
|
|
v-if="user"
|
2024-05-20 04:29:10 +00:00
|
|
|
:triggers="['click']"
|
|
|
|
:prevent-overflow="true"
|
2024-05-27 01:06:54 +00:00
|
|
|
class="notifs-trigger"
|
2024-05-20 04:29:10 +00:00
|
|
|
>
|
2024-05-27 01:06:54 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="notifs-button"
|
|
|
|
:class="{ unseen: unseen > 0 }"
|
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
icon="bell2"
|
|
|
|
class="notifs-bell"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="unseen > 0"
|
|
|
|
class="notifs-unseen"
|
|
|
|
>{{ unseen }}</span>
|
|
|
|
</button>
|
2024-05-20 04:29:10 +00:00
|
|
|
|
|
|
|
<template #popper>
|
2024-05-28 01:48:50 +00:00
|
|
|
<Notifications
|
|
|
|
@unseen="(count) => unseen = count"
|
|
|
|
@add-alert="showAlertDialog = true"
|
|
|
|
/>
|
2024-05-20 04:29:10 +00:00
|
|
|
</template>
|
|
|
|
</VDropdown>
|
|
|
|
|
|
|
|
<VDropdown
|
|
|
|
:triggers="['click']"
|
|
|
|
:prevent-overflow="true"
|
2024-06-10 01:24:48 +00:00
|
|
|
class="menu-trigger"
|
2024-03-19 19:50:50 +00:00
|
|
|
>
|
2024-06-10 01:24:48 +00:00
|
|
|
<div class="avatar-container">
|
|
|
|
<img
|
|
|
|
v-if="user"
|
|
|
|
:src="user.avatar"
|
|
|
|
class="avatar"
|
|
|
|
>
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
v-else
|
|
|
|
icon="user7"
|
|
|
|
class="avatar-placeholder"
|
|
|
|
/>
|
|
|
|
</div>
|
2024-05-20 04:29:10 +00:00
|
|
|
|
|
|
|
<template #popper>
|
|
|
|
<div class="menu">
|
|
|
|
<a
|
2024-06-10 01:24:48 +00:00
|
|
|
v-if="user"
|
2024-05-20 04:29:10 +00:00
|
|
|
:href="`/user/${user.username}`"
|
|
|
|
class="menu-header ellipsis"
|
|
|
|
>{{ user.username }}</a>
|
|
|
|
|
|
|
|
<ul class="menu-list nolist">
|
2024-06-10 01:24:48 +00:00
|
|
|
<li
|
|
|
|
v-if="user"
|
|
|
|
class="menu-item"
|
|
|
|
>
|
2024-05-20 04:29:10 +00:00
|
|
|
<a
|
|
|
|
:href="`/user/${user.username}`"
|
|
|
|
class="menu-button nolink"
|
|
|
|
>
|
|
|
|
<Icon icon="user7" />
|
|
|
|
Profile
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
2024-06-10 01:24:48 +00:00
|
|
|
v-else-if="allowLogin"
|
|
|
|
v-close-popper
|
|
|
|
class="menu-item"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/login?r=${encodeURIComponent(currentPath)}`"
|
|
|
|
class="menu-button nolink"
|
|
|
|
>
|
|
|
|
<Icon icon="enter" />
|
|
|
|
Log in
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
v-if="user?.primaryStash"
|
2024-05-20 04:29:10 +00:00
|
|
|
class="menu-item"
|
2024-03-03 01:33:35 +00:00
|
|
|
>
|
2024-05-20 04:29:10 +00:00
|
|
|
<a
|
|
|
|
:href="`/stash/${user.username}/${user.primaryStash.slug}`"
|
|
|
|
class="menu-button nolink favorites"
|
|
|
|
>
|
|
|
|
<Icon icon="heart7" />
|
|
|
|
Favorites
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
v-close-popper
|
|
|
|
class="menu-item menu-button"
|
|
|
|
@click="showSettings = true"
|
2024-03-19 01:39:04 +00:00
|
|
|
>
|
2024-05-20 04:29:10 +00:00
|
|
|
<Icon icon="equalizer" />
|
|
|
|
Settings
|
|
|
|
</li>
|
|
|
|
|
2024-06-10 01:24:48 +00:00
|
|
|
<li
|
|
|
|
v-if="theme === 'dark'"
|
|
|
|
v-close-popper
|
|
|
|
class="menu-item menu-button"
|
|
|
|
@click="setTheme('light')"
|
|
|
|
>
|
|
|
|
<Icon icon="sun3" />
|
|
|
|
Light theme
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
v-else
|
|
|
|
v-close-popper
|
|
|
|
class="menu-item menu-button"
|
|
|
|
@click="setTheme('dark')"
|
|
|
|
>
|
|
|
|
<Icon icon="moon" />
|
|
|
|
Dark theme
|
|
|
|
</li>
|
|
|
|
|
2024-05-20 04:29:10 +00:00
|
|
|
<li
|
2024-06-22 20:51:57 +00:00
|
|
|
v-if="user"
|
2024-05-20 04:29:10 +00:00
|
|
|
class="menu-button menu-item logout"
|
|
|
|
@click="logout"
|
|
|
|
><Icon icon="exit2" />Log out</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</VDropdown>
|
|
|
|
</div>
|
2024-02-29 04:08:54 +00:00
|
|
|
</div>
|
2024-04-02 03:55:53 +00:00
|
|
|
|
|
|
|
<Settings
|
|
|
|
v-if="showSettings"
|
|
|
|
@close="showSettings = false"
|
|
|
|
/>
|
2024-05-27 01:06:54 +00:00
|
|
|
|
|
|
|
<AlertDialog
|
|
|
|
v-if="showAlertDialog"
|
|
|
|
@close="showAlertDialog = false"
|
|
|
|
/>
|
2023-12-30 05:29:53 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-03-26 23:06:03 +00:00
|
|
|
import {
|
|
|
|
ref,
|
|
|
|
computed,
|
|
|
|
inject,
|
|
|
|
} from 'vue';
|
|
|
|
|
2024-06-10 01:24:48 +00:00
|
|
|
import Cookies from 'js-cookie';
|
|
|
|
|
2024-02-22 04:08:06 +00:00
|
|
|
import navigate from '#/src/navigate.js';
|
2024-05-28 01:48:50 +00:00
|
|
|
import { del } from '#/src/api.js';
|
2024-06-10 01:24:48 +00:00
|
|
|
import events from '#/src/events.js';
|
2024-05-27 01:06:54 +00:00
|
|
|
// import getPath from '#/src/get-path.js';
|
2024-02-22 04:08:06 +00:00
|
|
|
|
2024-05-28 01:48:50 +00:00
|
|
|
import Notifications from '#/components/header/notifications.vue';
|
2024-04-02 03:55:53 +00:00
|
|
|
import Settings from '#/components/settings/settings.vue';
|
2024-05-27 01:06:54 +00:00
|
|
|
import AlertDialog from '#/components/alerts/create.vue';
|
2024-04-02 03:55:53 +00:00
|
|
|
|
2023-12-30 05:29:53 +00:00
|
|
|
import logo from '../../assets/img/logo.svg?raw'; // eslint-disable-line import/no-unresolved
|
2024-02-22 04:08:06 +00:00
|
|
|
|
|
|
|
const pageContext = inject('pageContext');
|
2024-06-10 01:24:48 +00:00
|
|
|
const theme = ref(pageContext.env.theme);
|
2024-02-29 04:08:54 +00:00
|
|
|
|
|
|
|
const user = pageContext.user;
|
2024-05-28 01:48:50 +00:00
|
|
|
const unseen = ref(pageContext.meta.unseenNotifications);
|
2024-02-22 04:08:06 +00:00
|
|
|
const query = ref(pageContext.urlParsed.search.q || '');
|
2024-03-17 05:00:18 +00:00
|
|
|
const allowLogin = pageContext.env.allowLogin;
|
2024-02-29 04:24:34 +00:00
|
|
|
const searchFocused = ref(false);
|
2024-04-02 03:55:53 +00:00
|
|
|
const showSettings = ref(false);
|
2024-05-27 01:06:54 +00:00
|
|
|
const showAlertDialog = ref(false);
|
2024-05-20 04:29:10 +00:00
|
|
|
|
2024-02-27 00:51:14 +00:00
|
|
|
const activePage = computed(() => pageContext.urlParsed.pathname.split('/')[1]);
|
2024-02-29 04:08:54 +00:00
|
|
|
const currentPath = `${pageContext.urlParsed.pathnameOriginal}${pageContext.urlParsed.searchOriginal || ''}`;
|
2024-02-27 00:51:14 +00:00
|
|
|
|
2024-02-22 04:08:06 +00:00
|
|
|
function search() {
|
|
|
|
navigate('/search', { q: query.value }, { redirect: true });
|
|
|
|
}
|
2024-02-29 04:08:54 +00:00
|
|
|
|
2024-06-10 01:24:48 +00:00
|
|
|
function setTheme(newTheme) {
|
|
|
|
theme.value = newTheme;
|
|
|
|
|
|
|
|
Cookies.set('theme', newTheme);
|
|
|
|
events.emit('theme', newTheme);
|
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
async function logout() {
|
2024-03-27 15:18:55 +00:00
|
|
|
await del('/session');
|
2024-06-02 00:50:54 +00:00
|
|
|
navigate('/login?consent', null, { redirect: true }); // pass consent variable to reinstate in new session
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
2024-03-26 23:06:03 +00:00
|
|
|
|
|
|
|
function blurSearch(event) {
|
|
|
|
if (!event.relatedTarget || !Object.hasOwn(event.relatedTarget?.dataset, 'search')) {
|
|
|
|
searchFocused.value = false;
|
|
|
|
}
|
|
|
|
}
|
2023-12-30 05:29:53 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-02-22 04:08:06 +00:00
|
|
|
justify-content: space-between;
|
2024-03-18 00:47:49 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 100; /* make sure shadow shows up above content */
|
2023-12-30 05:29:53 +00:00
|
|
|
box-shadow: 0 0 3px var(--shadow-weak-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
display: flex;
|
|
|
|
width: 8rem;
|
2024-01-03 01:52:41 +00:00
|
|
|
box-sizing: border-box;
|
2023-12-30 05:29:53 +00:00
|
|
|
padding: .75rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
2024-02-22 04:08:06 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-12-30 05:29:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item .link {
|
|
|
|
font-size: .9rem;
|
2024-06-10 01:24:48 +00:00
|
|
|
color: var(--glass-strong-10);
|
2024-01-03 01:52:41 +00:00
|
|
|
box-sizing: border-box;
|
2023-12-30 05:29:53 +00:00
|
|
|
padding: 1rem;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2024-03-18 00:47:49 +00:00
|
|
|
color: var(--primary);
|
2023-12-30 05:29:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2024-02-22 04:08:06 +00:00
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.header-section {
|
2024-02-22 04:08:06 +00:00
|
|
|
height: 100%;
|
2024-02-29 04:08:54 +00:00
|
|
|
display: flex;
|
2024-02-29 04:24:34 +00:00
|
|
|
align-items: center;
|
2024-03-19 19:50:50 +00:00
|
|
|
margin-left: .5rem;
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search {
|
2024-02-29 04:24:34 +00:00
|
|
|
height: 2rem;
|
2024-02-22 04:08:06 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-02-29 04:24:34 +00:00
|
|
|
border-radius: 1rem;
|
2024-03-03 01:33:35 +00:00
|
|
|
background: var(--background-dark-10);
|
|
|
|
box-shadow: inset 0 0 3px var(--shadow-weak-40);
|
2024-02-22 04:08:06 +00:00
|
|
|
|
|
|
|
.input {
|
2024-03-17 22:55:36 +00:00
|
|
|
width: 14rem;
|
2024-02-29 04:24:34 +00:00
|
|
|
padding: .5rem 0 .5rem 1rem;
|
|
|
|
border: none;
|
2024-02-29 04:08:54 +00:00
|
|
|
margin: 0;
|
2024-02-29 04:24:34 +00:00
|
|
|
background: none;
|
2024-03-18 00:47:49 +00:00
|
|
|
|
|
|
|
&:placeholder-shown {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2024-02-29 04:24:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-button {
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
2024-02-22 04:08:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
2024-02-29 04:24:34 +00:00
|
|
|
height: 100%;
|
|
|
|
padding: 0 .75rem 0 .5rem;
|
2024-06-10 01:24:48 +00:00
|
|
|
fill: var(--glass-weak-10);
|
2024-02-22 04:08:06 +00:00
|
|
|
}
|
|
|
|
|
2024-02-29 04:24:34 +00:00
|
|
|
&.focused {
|
2024-03-03 01:33:35 +00:00
|
|
|
/*
|
2024-02-29 04:24:34 +00:00
|
|
|
border: solid 1px var(--primary-light-10);
|
2024-03-03 01:33:35 +00:00
|
|
|
*/
|
|
|
|
box-shadow: inset 0 0 3px var(--shadow-weak-30);
|
2024-02-29 04:24:34 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2024-02-22 04:08:06 +00:00
|
|
|
}
|
2024-03-17 05:00:18 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
/* login disabled */
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
2024-02-22 04:08:06 +00:00
|
|
|
}
|
2024-02-29 04:08:54 +00:00
|
|
|
|
|
|
|
.userpanel {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
|
2024-05-27 01:06:54 +00:00
|
|
|
.button-submit {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
&:hover .avatar {
|
|
|
|
box-shadow: 0 0 3px var(--shadow-weak-10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-10 01:24:48 +00:00
|
|
|
.menu-trigger {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0 1rem 0 0;
|
|
|
|
|
|
|
|
&:hover .icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.avatar {
|
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
border-radius: .25rem;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
2024-06-10 01:24:48 +00:00
|
|
|
.avatar-placeholder {
|
|
|
|
width: 1.25rem;
|
|
|
|
padding-left: 1rem;
|
|
|
|
height: 100%;
|
2024-06-12 00:34:13 +00:00
|
|
|
fill: var(--glass);
|
2024-06-10 01:24:48 +00:00
|
|
|
}
|
|
|
|
|
2024-05-27 01:06:54 +00:00
|
|
|
.notifs-trigger {
|
2024-05-20 04:29:10 +00:00
|
|
|
height: 100%;
|
2024-05-27 01:06:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.notifs-button {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0 1.25rem;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
2024-05-20 04:29:10 +00:00
|
|
|
|
|
|
|
&:hover,
|
2024-05-27 01:06:54 +00:00
|
|
|
&.unseen {
|
2024-05-20 04:29:10 +00:00
|
|
|
cursor: pointer;
|
2024-05-27 01:06:54 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
2024-05-20 04:29:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-27 01:06:54 +00:00
|
|
|
.notifs-bell {
|
|
|
|
margin-bottom: .1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notifs-unseen {
|
|
|
|
bottom: 0;
|
|
|
|
font-size: .65rem;
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.notifs-bell {
|
2024-06-10 01:24:48 +00:00
|
|
|
fill: var(--glass);
|
2024-05-27 01:06:54 +00:00
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.login {
|
2024-03-18 01:00:04 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: none;
|
2024-06-07 01:43:12 +00:00
|
|
|
height: 1rem;
|
2024-03-18 01:00:04 +00:00
|
|
|
padding: 0;
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
|
2024-03-03 01:33:35 +00:00
|
|
|
.menu {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.menu-header {
|
|
|
|
display: flex;
|
|
|
|
padding: .75rem 1rem;
|
2024-06-10 01:24:48 +00:00
|
|
|
border-bottom: solid 1px var(--glass-weak-30);
|
|
|
|
color: var(--glass-strong-30);
|
2024-02-29 04:08:54 +00:00
|
|
|
text-decoration: none;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item {
|
2024-03-03 01:33:35 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-button {
|
2024-02-29 04:08:54 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-03-21 01:54:05 +00:00
|
|
|
padding: .75rem .5rem .75rem .75rem;
|
2024-03-19 01:39:04 +00:00
|
|
|
font-size: 1.1rem;
|
2024-02-29 04:08:54 +00:00
|
|
|
|
|
|
|
.icon {
|
2024-06-10 01:24:48 +00:00
|
|
|
fill: var(--glass);
|
2024-03-03 01:33:35 +00:00
|
|
|
margin-right: .75rem;
|
|
|
|
transform: translateY(-1px);
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2024-03-21 01:54:05 +00:00
|
|
|
color: var(--primary);
|
2024-02-29 04:08:54 +00:00
|
|
|
cursor: pointer;
|
2024-03-21 01:54:05 +00:00
|
|
|
|
|
|
|
&:not(.logout) .icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.logout {
|
|
|
|
color: var(--error);
|
|
|
|
}
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-19 01:39:04 +00:00
|
|
|
/*
|
|
|
|
.favorites .icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
.logout .icon {
|
|
|
|
fill: var(--error);
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
2024-03-17 22:55:36 +00:00
|
|
|
|
|
|
|
@media(--small) {
|
2024-03-18 00:47:49 +00:00
|
|
|
.header-section {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search .input {
|
|
|
|
width: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2024-03-18 01:00:04 +00:00
|
|
|
|
2024-03-19 19:50:50 +00:00
|
|
|
.userpanel.searching {
|
|
|
|
padding: 0 0 0 1rem;
|
|
|
|
width: 0;
|
2024-03-18 01:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.login-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.login .icon {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-03-17 22:55:36 +00:00
|
|
|
}
|
2024-03-19 19:50:50 +00:00
|
|
|
|
|
|
|
@media(--small-10) {
|
|
|
|
.nav-list {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
margin-right: .75rem;
|
|
|
|
}
|
|
|
|
}
|
2023-12-30 05:29:53 +00:00
|
|
|
</style>
|