.userMenuHeader {
align-items: center;
display: grid;
- min-height: 44px;
+ min-height: 44px;
grid-template-areas: "title buttons";
grid-template-columns: auto max-content;
}
.userMenuButton {
align-items: center;
- display: flex;
- height: 44px;
- justify-content: center;
+ display: flex;
+ height: 44px;
+ justify-content: center;
+ width: 44px;
+}
+
+body:not(.touch) .userMenuButton {
transform: scale(1);
transition: transform 0.24s ease-in-out;
- width: 44px;
&:hover {
transform: scale(1.5);
position: relative;
transition: background-color 0.12s linear;
- &:hover {
- background-color: var(--background-color-active);
- }
-
&[data-is-unread="true"] .userMenuItemLink::before {
right: 30px;
}
}
}
+body:not(.touch) .userMenuItem:hover {
+ background-color: var(--background-color-active);
+}
+
.userMenuItemLink,
.userMenuItemLink:hover {
color: inherit;
opacity: 1;
position: absolute;
top: calc(50% - 5px);
- transition: left 0.12s ease-in-out, opacity 0.12s ease-in-out;
width: 10px;
}
}
-.userMenuItem:hover .userMenuItemUnread::before {
+body:not(.touch) .userMenuItemUnread::before {
+ transition: left 0.12s ease-in-out, opacity 0.12s ease-in-out;
+}
+
+body:not(.touch) .userMenuItem:hover .userMenuItemUnread::before {
opacity: 0;
left: 0;
}
opacity: 1;
position: relative;
left: 0;
+ width: 100%;
+}
+
+body:not(.touch) .userMenuItemMarkAsRead {
transform: scale(1);
transition: opacity 0.12s ease-in-out, left 0.12s ease-in-out, transform 0.24s ease-in-out;
- width: 100%;
&:hover {
transform: scale(1.5);