2020-03-19 10:38:20 -04:00
|
|
|
// Extends reach-ui menu button base stylesheet
|
2019-06-17 16:32:38 -04:00
|
|
|
/* Used to detect in JavaScript if apps have loaded styles or not. */
|
|
|
|
:root {
|
|
|
|
--reach-menu-button: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu] {
|
|
|
|
font-family: sans-serif;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2020-07-23 10:22:57 -04:00
|
|
|
z-index: 2;
|
2019-07-21 17:31:22 -04:00
|
|
|
font-size: var(--font-body);
|
2019-06-17 16:32:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-list] {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
outline: none;
|
2019-11-22 16:13:00 -05:00
|
|
|
background-color: var(--color-menu-background);
|
2020-07-23 10:22:57 -04:00
|
|
|
border: 1px solid var(--border-color);
|
2019-06-17 16:32:38 -04:00
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item] {
|
|
|
|
display: block;
|
2020-07-23 10:22:57 -04:00
|
|
|
z-index: 2;
|
2019-12-06 15:57:07 -05:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-06-17 16:32:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-menu-item] {
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
color: inherit;
|
|
|
|
font: inherit;
|
|
|
|
text-decoration: initial;
|
2020-07-23 10:22:57 -04:00
|
|
|
border-radius: var(--border-radius);
|
2019-11-22 16:13:00 -05:00
|
|
|
}
|
2019-06-17 16:32:38 -04:00
|
|
|
|
2019-11-22 16:13:00 -05:00
|
|
|
[data-reach-menu-item][data-selected] {
|
|
|
|
background-color: var(--color-menu-background--active);
|
|
|
|
box-shadow: none;
|
2020-07-23 10:22:57 -04:00
|
|
|
}
|
2019-06-17 16:32:38 -04:00
|
|
|
|
2020-07-23 10:22:57 -04:00
|
|
|
.menu__title {
|
|
|
|
&[aria-expanded='true'] {
|
|
|
|
background-color: var(--color-primary-alt);
|
2019-06-17 16:32:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-18 13:33:17 -04:00
|
|
|
.menu__list {
|
2020-01-22 09:26:39 -05:00
|
|
|
box-shadow: var(--card-box-shadow);
|
2019-08-21 16:54:44 -04:00
|
|
|
animation: menu-animate-in var(--animation-duration) var(--animation-style);
|
2020-02-12 19:48:28 -06:00
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
2019-06-17 16:32:38 -04:00
|
|
|
}
|
|
|
|
|
2020-03-18 13:33:17 -04:00
|
|
|
.menu__list--header {
|
|
|
|
@extend .menu__list;
|
2020-07-23 10:22:57 -04:00
|
|
|
padding: var(--spacing-xs);
|
2020-03-18 13:33:17 -04:00
|
|
|
margin-top: 19px;
|
|
|
|
}
|
|
|
|
|
2020-07-15 12:36:40 -04:00
|
|
|
.menu__list--comments {
|
|
|
|
@extend .menu__list;
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
border-radius: var(--border-radius);
|
2020-10-19 23:25:54 -04:00
|
|
|
padding: var(--spacing-xxs);
|
2020-07-15 12:36:40 -04:00
|
|
|
}
|
|
|
|
|
2019-06-17 16:32:38 -04:00
|
|
|
.menu__link {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-07-23 10:22:57 -04:00
|
|
|
padding: var(--spacing-s);
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-right: var(--spacing-l);
|
2020-07-23 10:22:57 -04:00
|
|
|
height: var(--button-height);
|
2019-06-17 16:32:38 -04:00
|
|
|
|
2019-08-27 10:43:42 -04:00
|
|
|
.icon {
|
2019-11-22 16:13:00 -05:00
|
|
|
stroke: var(--color-menu-icon);
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-right: var(--spacing-s);
|
2019-08-27 10:43:42 -04:00
|
|
|
}
|
2020-03-18 13:33:17 -04:00
|
|
|
|
|
|
|
.badge {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-left: var(--spacing-s);
|
2020-03-18 13:33:17 -04:00
|
|
|
}
|
2019-08-27 10:43:42 -04:00
|
|
|
}
|
|
|
|
|
2020-01-03 14:34:17 -05:00
|
|
|
.menu__link-help {
|
|
|
|
@extend .menu__link;
|
|
|
|
color: var(--color-text-help);
|
|
|
|
font-size: var(--font-small);
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2020-07-23 10:22:57 -04:00
|
|
|
|
|
|
|
.menu__link--notification {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
.icon__wrapper {
|
|
|
|
height: 2.5rem;
|
|
|
|
width: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-21 15:44:54 -04:00
|
|
|
.menu__link--notification-nolink {
|
|
|
|
@extend .menu__link--notification;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-23 10:22:57 -04: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);
|
|
|
|
}
|