Sha256: ac71fafe5161a39a3244de663aa71acc76064c62a39a8f6395d86672d3709bd3

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

.scopes {
  margin-bottom: 0;

  dd {
    margin-bottom: 0;
  }

  &.grouped {
    @include media-breakpoint-up(md) {
      display: grid;
      grid-template-columns: auto 1fr;
    }


    @include media-breakpoint-down(sm) {
      .scope-group-empty:first-child {
        display: none;
      }
    }

    background: #fafafa;

    dd {
      padding: 0.375rem 0.5rem 0.375rem;
    }
  }

  &.columns {
    grid-template-rows: auto 1fr;
    grid-auto-flow: column;

    overflow-x: auto;
  }
}

.scope-group {
  line-height: 2;
  font-size: 0.85rem;
  padding: 0.5rem 1rem 0.25rem 0.75rem;

  background: #f7f7f7;
}

.scope-list {
  list-style: none;

  display: flex;
  flex-wrap: wrap;

  position: relative;
  align-items: center;

  margin-bottom: 0;
  padding: 0;

  li {
    margin: 0.125rem 0.35rem 0.125rem 0;

    &:last-child {
      margin-right: 0;
    }
  }
}

.scope {
  display: inline-block;

  background-color: $scope-bg;

  font-size: 0.8rem;
  font-weight: normal;
  white-space: nowrap;

  border-radius: 50rem;
  padding: $scope-padding;

  &, &:hover, &:focus {
    color: $scope-color;
  }

  &:hover, &:focus {
    background-color: $scope-hover-bg;
    text-decoration: none;
  }

  &.active {
    &, &:hover, &:focus, strong {
      color: $scope-active-color;
    }

    &, &:hover, &:focus {
      background-color: $scope-active-bg;
    }
  }

  strong {
    font-weight: 500;
    color: $scope-label-color;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.9.8 frontend/css/components/_scopes.scss
trestle-0.9.7 frontend/css/components/_scopes.scss
trestle-0.9.6 frontend/css/components/_scopes.scss
trestle-0.9.5 frontend/css/components/_scopes.scss