mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Shadow over sidebar scrollable content
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
03ffe899fe
commit
d82f591ac1
@ -27,6 +27,7 @@
|
|||||||
background: $clusterMenuBackground;
|
background: $clusterMenuBackground;
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
width: var(--hotbar-width);
|
width: var(--hotbar-width);
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.HotbarItems {
|
.HotbarItems {
|
||||||
--cellWidth: 40px;
|
--cellWidth: 40px;
|
||||||
|
|||||||
@ -28,6 +28,16 @@
|
|||||||
padding-bottom: calc(var(--padding) * 3);
|
padding-bottom: calc(var(--padding) * 3);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
|
/* Shadow above scrolling content from https://gist.github.com/distinctgrey/7548778 */
|
||||||
|
background:
|
||||||
|
linear-gradient(var(--sidebarBackground) 30%, rgba(255,255,255,0)),
|
||||||
|
linear-gradient(rgba(255,255,255,0), var(--sidebarBackground) 70%) 0 100%,
|
||||||
|
radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
|
||||||
|
radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 40px, 100% 40px, 100% 12px, 100% 12px;
|
||||||
|
background-attachment: local, local, scroll, scroll;
|
||||||
|
|
||||||
.Icon {
|
.Icon {
|
||||||
--size: #{$iconSize};
|
--size: #{$iconSize};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user