/**
 * Copyright (c) OpenLens Authors. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */

.sidebarNav {
  @apply flex overflow-auto flex-col;
  width: var(--sidebar-width);
  padding-bottom: calc(var(--padding) * 3);

  /* 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;
}

.sidebarNav :global(.Icon) {
  box-sizing: content-box;
  padding: 3px;
  border-radius: 50%;
}
