Sha256: d11baa41904bf7454b5149d5e95765cfb3c23547c144d0f607cfdba56f80ebd0

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

.sidebar-menu {
  @apply p-4 flex-none w-full md:w-fit max-w-full md:max-w-xs;

  &__item {
    a,
    &-disabled {
      @apply gap-x-2 p-2 flex items-center text-sm truncate border border-gray-5 rounded;

      > svg {
        @apply w-4 h-4 flex-none text-gray fill-current;
      }
    }

    a {
      @apply text-secondary;
    }

    &.is-active > a,
    & > a:hover {
      @apply underline [&>svg]:text-secondary bg-white border;
    }

    &.is-active > a {
      @apply font-semibold;
    }

    ul {
      @apply ml-10;

      li {
        a {
          @apply px-2 py-1;

          .component-counter {
            @apply ml-auto inline-flex items-center justify-center w-5 h-5 text-xs font-semibold rounded-full bg-background-4 border-secondary;
          }
        }

        &.is-active a {
          @apply font-semibold;
        }

        &.is-active > a,
        & > a:hover {
          @apply underline [&>svg]:text-secondary bg-white;
        }
      }
    }
  }

  &__container {
    @apply flex flex-col md:flex-row items-stretch;

    [id*="dropdown-menu"] {
      @apply py-3.5;

      [aria-hidden="false"] {
        @apply block;
      }
    }
  }

  & + * {
    @apply grow;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-admin-0.28.0 app/packs/stylesheets/decidim/admin/_sidebar-menu.scss
decidim-admin-0.28.0.rc5 app/packs/stylesheets/decidim/admin/_sidebar-menu.scss
decidim-admin-0.28.0.rc4 app/packs/stylesheets/decidim/admin/_sidebar-menu.scss