Sha256: 5cc61ca4f43b7dea8faaafe22d8fc0a7c5b57b2acee2566f480cc6243207ee6e

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

@import "../../../../vendor/assets/stylesheets/tiny-slider";

.browse-group-categories-block {
  padding-bottom: $spacer * .75;
  padding-top: $spacer * .75;
  
  .browse-categories .browse-category {
    .category-caption {
      z-index: 100;
    }
  }
  
  .spotlight-flexbox.browse-categories .box {
    display: flex;
  }

  .browse-group-categories-controls {
    list-style: none;
    li {
      display: inline-block;
      cursor: pointer;
    }

    .blacklight-icons-arrow-alt-circle-left, .blacklight-icons-arrow-alt-circle-right {
      display: inline-block;
      fill: $gray-600;
      height: 44px;
      width: 44px;
      
      &:hover,&:focus {
        fill: $gray-700;
      }
    }

    li[aria-disabled="true"] {
      cursor: auto;
    }

    [aria-disabled="true"] {
      .blacklight-icons-arrow-alt-circle-left, .blacklight-icons-arrow-alt-circle-right {
        fill: $gray-400;

        &:hover,&:focus {
          fill: $gray-400;
        }
      }
    }
  }

  // Coming from tiny-slider, make sure these disappear when navigating via turbolinks
  .tns-controls {
    display: none;
  }

  @media screen and (min-width: breakpoint-min("md")) {
    .browse-group-categories-controls {
      .blacklight-icons-arrow-alt-circle-left, .blacklight-icons-arrow-alt-circle-right {
        height: 32px;
        width: 32px;
      }
    }

    &[data-browse-group-categories-count="2"],&[data-browse-group-categories-count="3"] {
      .browse-group-categories-controls {
        display: none !important;
      }
    }
  }
}

[dir="rtl"] {
  .browse-group-categories-block .blacklight-icons-arrow-alt-circle-left, .blacklight-icons-arrow-alt-circle-right{
    transform: rotate(180deg);
  }
  // Hack to override overflow issue not fixed in RTL upstream in tiny-slider
  .tns-visually-hidden {
    left: 0;
    right: -10000em;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-4.7.0 app/assets/stylesheets/spotlight/browse_group_categories_block.scss