Newer
Older
max-height: 50px;
height: 50px;
background-color: var(--color-header-background);
color: var(--color-black);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.09);
position: fixed;
z-index: 999;

Gaëlle Morin
committed
width: -webkit-fill-available;
width: -moz-available;
@include breakpoint(lg) {
max-height: 83px;
height: 83px;
padding: 0 0.8rem;
@include breakpoint(lg) {
padding: 0 2.5rem;
}
}
>*:not(:first-child) {
margin-left: 2rem;
@include breakpoint(lg) {
margin-left: 0;

Gaëlle Morin
committed
.logo {
/* To remove the place taken by this element */
solid-widget[name='hubl-user-avatar'] {

Gaëlle Morin
committed
}

Gaëlle Morin
committed
/* General styling for both notification and user's panel */
details {

Gaëlle Morin
committed
position: relative;
@include breakpoint(lg) {
margin-right: 2.5rem;

Gaëlle Morin
committed
}
summary {
&::-moz-list-bullet {
list-style-type: none; /* To remove the disclosure triangle on Firefox v.<69 */

Gaëlle Morin
committed
&::-webkit-details-marker {
display: none;
}
}
}
/* End */

Gaëlle Morin
committed
color: var(--color-bell);
@include breakpoint(sm) {
padding: 0;
}

Gaëlle Morin
committed
position: relative;

Gaëlle Morin
committed
@include icon('bell');
font-size: 2.5rem;
@include breakpoint(lg) {
font-size: 3rem;
}

Gaëlle Morin
committed
&::before {
margin-left: 0;

Gaëlle Morin
committed
img {
top: 1px;
@include breakpoint(lg) {
left: 2.1rem;
top: -3px;
}
position: fixed;
left: 0;
top: 4.5rem;
width: 100vw;
overflow: auto;
height: 60px;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
scrollbar-width: thin;
scrollbar-color: var(--color-notification-scrollbar-track) var(--color-notification-scrollbar-background);
&::-webkit-scrollbar-track {
background: var(--color-notification-scrollbar-background);
}
&::-webkit-scrollbar-thumb {
background-color: var(--color-notification-scrollbar-track);
border-radius: 6px;
border: 3px solid var(--color-notification-scrollbar-background);
}
&::-webkit-scrollbar {
width: 11px;
}

Gaëlle Morin
committed
@include breakpoint(md) {
border: 0;
border-radius: 0;
}
@include breakpoint(lg) {
position: absolute;
left: auto;
right: 0;
top: 5.6rem;
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
width: 347px;
}
.solid-notifications__item {
border-bottom: 2px solid var(--color-notification-item-border);
.solid-notification {
.solid-notification__avatar {
margin-left: 1.6rem;
margin-right: 1.4rem;
}
.solid-notification__content {
.solid-notification__summary {
color: var(--color-notification-summary);
font-size: 1.2rem;
line-height: 1.7rem;
margin: 1.1rem 0 1.1rem;
}
.solid-notification__date {
display: none;
}
}
.solid-notification__read {
read-badge[data-unread='unread'] {
}
}
}

Gaëlle Morin
committed
}
}

Gaëlle Morin
committed
#user-controls {
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
summary {
cursor: pointer;
display: block; /* To remove the disclosure triangle on Firefox v.>=69 */
@include breakpoint(lg) {
padding: 18px;
}

Gaëlle Morin
committed
&:focus {
background-color: transparent;

Gaëlle Morin
committed
color: var(--color-user-panel-header-text-open);
outline: none;
@include breakpoint(lg) {
background-color: var(--color-user-panel-header-background-open);
}

Gaëlle Morin
committed
}
}
#user-controls__profile {
div {
display: flex;
flex-direction: row-reverse;
> * {
vertical-align: middle;
}

Gaëlle Morin
committed
hubl-user-avatar {
height: 3.3rem;
margin-right: 0;
width: 3.3rem;
@include breakpoint(lg) {
height: 4.8rem;
margin-right: 2rem;
width: 4.8rem;

Gaëlle Morin
committed
}
solid-display-value[name='first_name'] {

Gaëlle Morin
committed
@include icon('arrow-down');
align-items: center;

Gaëlle Morin
committed
flex-direction: row-reverse;
font-size: 1.8rem;
font-weight: 600;

Gaëlle Morin
committed
&::before {
margin-left: 1.5rem;
@include breakpoint(lg) {
display: flex;

Gaëlle Morin
committed
}
#user-controls__panel {
height: 0;
position: absolute;
right: 0;
z-index: 1;
/* Quick fix for mobile version */
width: 215px;
top: 42px;
@include breakpoint (lg) {
width: 100%;
top: 83px;
}

Gaëlle Morin
committed
> nav {
background-color: var(--color-user-panel-list-background);
box-shadow: 0 7px 8px 0 rgba(0, 0, 0, 0.16);
position: absolute;
right: 0;

Gaëlle Morin
committed
top: 0;

Gaëlle Morin
committed
ul {
list-style: none;
margin: 0;
padding: 0;

Gaëlle Morin
committed
li {

Gaëlle Morin
committed
color: var(--color-grey-4);
display: block;
border-bottom: 1px solid var(--color-user-panel-list-border);
margin-right: 0;
padding: 1.6rem 1.3rem;
&:hover {
color: var(--color-user-panel-list-text-hover);

Gaëlle Morin
committed
}
button {
color: var(--color-grey-4);
padding: 1.6rem 1.3rem;
text-align: left;
width: 100%;
&:hover {
color: var(--color-user-panel-list-text-hover);

Gaëlle Morin
committed
}
&[open] {
background-color: var(--color-user-panel-header-background);
color: var(--color-user-panel-header-text);
#user-controls__profile {
div {
solid-display-value[name='first_name'] {

Gaëlle Morin
committed
@include icon('close');
&::before {
margin-left: 1.5rem;

Gaëlle Morin
committed
}

Gaëlle Morin
committed
.mobile-menu-icon {
display: block;
padding-left: 0;
font-size: 24px;
@include breakpoint(lg) {
display: none;