2020-03-19 15:38:20 +01:00
|
|
|
// Extends reach-ui menu button base stylesheet
|
2019-06-17 22:32:38 +02:00
|
|
|
/* Used to detect in JavaScript if apps have loaded styles or not. */
|
|
|
|
:root {
|
|
|
|
--reach-menu-button: 1;
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
reach-portal {
|
|
|
|
[data-reach-menu] {
|
|
|
|
[data-reach-menu-items] {
|
|
|
|
&:focus-visible {
|
|
|
|
background-color: var(--color-header-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item][data-selected] {
|
|
|
|
.menu__link {
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-primary-contrast);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
[data-reach-menu] {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2020-07-23 16:22:57 +02:00
|
|
|
z-index: 2;
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-body);
|
2021-09-29 17:20:36 +02:00
|
|
|
max-width: calc(100% - var(--height-button) - var(--spacing-xs));
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
2022-05-04 14:34:31 +02:00
|
|
|
[data-reach-menu-list],
|
|
|
|
.MuiMenu-list--paper {
|
2019-06-17 22:32:38 +02:00
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
outline: none;
|
2022-02-11 19:50:55 +01:00
|
|
|
// background-color: var(--color-header-background) !important;
|
2022-05-04 14:34:31 +02:00
|
|
|
background-color: rgba(var(--color-header-button-base), 0.5) !important;
|
2022-02-11 19:50:55 +01:00
|
|
|
border: 2px solid var(--color-header-background) !important;
|
2019-06-17 22:32:38 +02:00
|
|
|
border-top: none;
|
2022-05-04 14:34:31 +02:00
|
|
|
-webkit-backdrop-filter: blur(4px) !important;
|
|
|
|
backdrop-filter: blur(4px) !important;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
background-color: var(--color-header-background) !important;
|
|
|
|
outline: unset !important;
|
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item] {
|
|
|
|
display: block;
|
2020-07-23 16:22:57 +02:00
|
|
|
z-index: 2;
|
2019-12-06 21:57:07 +01:00
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
&:focus-visible {
|
2019-12-06 21:57:07 +01:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item] {
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
color: inherit;
|
|
|
|
font: inherit;
|
|
|
|
text-decoration: initial;
|
2020-07-23 16:22:57 +02:00
|
|
|
border-radius: var(--border-radius);
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2019-11-22 22:13:00 +01:00
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
[data-reach-menu-item][data-selected] {
|
2022-02-11 19:50:55 +01:00
|
|
|
color: var(--color-primary-contrast) !important;
|
|
|
|
background-color: var(--color-primary);
|
2019-11-22 22:13:00 +01:00
|
|
|
box-shadow: none;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-primary-contrast) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment__menu-help {
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
}
|
2020-07-23 16:22:57 +02:00
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
|
2022-05-04 14:34:31 +02:00
|
|
|
.menu__link:hover {
|
|
|
|
color: var(--color-odysee-contrast) !important;
|
|
|
|
background-color: var(--color-odysee) !important;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2021-03-03 19:50:16 +01:00
|
|
|
.menu__button {
|
2021-07-15 07:40:40 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-02-11 19:50:55 +01:00
|
|
|
opacity: 0;
|
2021-07-15 07:40:40 +02:00
|
|
|
|
|
|
|
.icon {
|
2022-02-11 19:50:55 +01:00
|
|
|
stroke: var(--color-text);
|
2021-07-15 07:40:40 +02:00
|
|
|
}
|
|
|
|
|
2021-03-03 19:50:16 +01:00
|
|
|
&:hover {
|
2021-07-15 07:40:40 +02:00
|
|
|
opacity: 1;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
2021-03-03 19:50:16 +01:00
|
|
|
.icon {
|
2022-02-11 19:50:55 +01:00
|
|
|
stroke: var(--color-link);
|
2021-03-03 19:50:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
.menu__title {
|
|
|
|
&[aria-expanded='true'] {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-18 18:33:17 +01:00
|
|
|
.menu__list {
|
2022-02-11 19:50:55 +01:00
|
|
|
font-size: var(--font-small);
|
2019-08-21 22:54:44 +02:00
|
|
|
animation: menu-animate-in var(--animation-duration) var(--animation-style);
|
2021-12-01 19:01:21 +01:00
|
|
|
transform-origin: top;
|
2021-03-03 19:50:16 +01:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
padding: var(--spacing-xs) 0;
|
|
|
|
|
|
|
|
[data-reach-menu-item] {
|
2022-02-11 19:50:55 +01:00
|
|
|
margin: 0 var(--spacing-xxs);
|
2021-03-03 19:50:16 +01:00
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
2020-03-18 18:33:17 +01:00
|
|
|
.menu__list--header {
|
|
|
|
@extend .menu__list;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
2022-05-04 14:34:31 +02:00
|
|
|
.channel__selector {
|
|
|
|
margin: 0px !important;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.menu__link {
|
|
|
|
margin: 0px !important;
|
|
|
|
padding: var(--spacing-xs) var(--spacing-s) !important;
|
|
|
|
width: 100%;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon--ChevronDown {
|
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
[data-reach-menu-item][data-selected] {
|
|
|
|
.menu__link {
|
|
|
|
color: var(--color-odysee-contrast) !important;
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-primary-contrast);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item][data-selected] {
|
|
|
|
color: var(--color-odysee-contrast) !important;
|
|
|
|
background-color: var(--color-odysee) !important;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-odysee-contrast) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment__menu-help {
|
|
|
|
color: var(--color-odysee-contrast) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
margin-top: 10px;
|
2020-03-18 18:33:17 +01:00
|
|
|
}
|
|
|
|
|
2020-07-15 18:36:40 +02:00
|
|
|
.menu__list--comments {
|
|
|
|
@extend .menu__list;
|
|
|
|
}
|
|
|
|
|
2022-05-04 14:34:31 +02:00
|
|
|
.MuiMenuItem-root {
|
|
|
|
margin-left: 0px !important;
|
|
|
|
font-size: var(--font-small) !important;
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
.menu__link {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-04-09 16:07:06 +02:00
|
|
|
// padding: var(--spacing-s);
|
|
|
|
// padding-right: var(--spacing-l);
|
|
|
|
padding: var(--spacing-xs) var(--spacing-s) var(--spacing-xs) var(--spacing-s);
|
2020-07-23 16:22:57 +02:00
|
|
|
height: var(--button-height);
|
2022-05-04 14:34:31 +02:00
|
|
|
color: var(--color-primary-contrast) !important;
|
2019-06-17 22:32:38 +02:00
|
|
|
|
2019-08-27 16:43:42 +02:00
|
|
|
.icon {
|
2019-11-22 22:13:00 +01:00
|
|
|
stroke: var(--color-menu-icon);
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-right: var(--spacing-s);
|
2019-08-27 16:43:42 +02:00
|
|
|
}
|
2020-03-18 18:33:17 +01:00
|
|
|
|
|
|
|
.badge {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-left: var(--spacing-s);
|
2020-03-18 18:33:17 +01:00
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-primary-contrast);
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
}
|
|
|
|
}
|
2019-08-27 16:43:42 +02:00
|
|
|
}
|
|
|
|
|
2020-01-03 20:34:17 +01:00
|
|
|
.menu__link-help {
|
|
|
|
@extend .menu__link;
|
2021-09-29 17:20:36 +02:00
|
|
|
display: block;
|
2022-02-11 19:50:55 +01:00
|
|
|
color: var(--color-text);
|
2020-01-03 20:34:17 +01:00
|
|
|
font-size: var(--font-small);
|
2022-05-04 14:34:31 +02:00
|
|
|
padding: 0px;
|
2021-09-29 17:20:36 +02:00
|
|
|
white-space: normal;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow-x: hidden;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
:hover > & {
|
|
|
|
color: black;
|
|
|
|
color: var(--color-text-help);
|
|
|
|
}
|
2020-01-03 20:34:17 +01:00
|
|
|
}
|
2020-07-23 16:22:57 +02:00
|
|
|
|
|
|
|
.menu__link--notification {
|
2021-08-23 12:50:24 +02:00
|
|
|
width: 100%;
|
2020-07-23 16:22:57 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
.icon__wrapper {
|
|
|
|
height: 2.5rem;
|
|
|
|
width: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-21 21:44:54 +02:00
|
|
|
.menu__link--notification-nolink {
|
|
|
|
@extend .menu__link--notification;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-23 16:22:57 +02:00
|
|
|
.menu__link--all-notifications {
|
|
|
|
@extend .button--alt;
|
|
|
|
width: auto;
|
|
|
|
align-self: flex-start;
|
|
|
|
margin-right: auto;
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
margin-top: var(--spacing-m);
|
|
|
|
}
|
2021-03-04 22:01:14 +01:00
|
|
|
|
|
|
|
.menu__separator {
|
2021-03-08 18:37:45 +01:00
|
|
|
margin-top: var(--border-radius);
|
|
|
|
margin-bottom: var(--border-radius);
|
2021-03-04 22:01:14 +01:00
|
|
|
}
|