mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
highlight hotbar-icon border on click
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
48059e903c
commit
d54f1db990
@ -31,12 +31,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.HotbarIcon {
|
.HotbarIcon {
|
||||||
|
--iconActiveShadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent);
|
||||||
|
--iconHoverShadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px #ffffff50;
|
||||||
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: none;
|
transition: none;
|
||||||
text-shadow: 0 0 4px #0000008f;
|
text-shadow: 0 0 4px #0000008f;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
z-index: 0; // allows to catch state of :active pseudo-selector
|
||||||
|
|
||||||
|
&:active .MuiAvatar-root {
|
||||||
|
box-shadow: var(--iconActiveShadow) !important;
|
||||||
|
}
|
||||||
|
|
||||||
div.MuiAvatar-colorDefault {
|
div.MuiAvatar-colorDefault {
|
||||||
font-weight:500;
|
font-weight:500;
|
||||||
@ -64,20 +72,17 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.MuiAvatar-root {
|
.MuiAvatar-root {
|
||||||
width: var(--size);
|
width: var(--size);
|
||||||
height: var(--size);
|
height: var(--size);
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent);
|
box-shadow: var(--iconActiveShadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.interactive {
|
&.interactive:not(.active):hover {
|
||||||
&:hover {
|
box-shadow: var(--iconHoverShadow);
|
||||||
&:not(.active) {
|
|
||||||
box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px #ffffff50;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,20 +122,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
|
||||||
border-radius: 6px;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
&:not(.active) {
|
|
||||||
box-shadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px #ffffff50;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.materialIcon {
|
.materialIcon {
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user