Sha256: 213d24f29124c49ea95fc60b062009807fcbf409216bc924010416d838e93598

Contents?: true

Size: 1.53 KB

Versions: 8

Compression:

Stored size: 1.53 KB

Contents

.usa-header {
  .usa-nav {
    @if variable-exists(top-nav-bg) {
      background-color: $top-nav-bg;
    }
  }

  .usa-nav-primary {
    a,
    button {
      &:hover {
        @if variable-exists(top-nav-link-hover-bg) {
          background-color: $top-nav-link-hover-bg;
        }
      }
    }

    .usa-nav-link {
      span {
        @if variable-exists(top-nav-link) {
          color: $top-nav-link;
        }
      }

      &:hover {
        @if variable-exists(top-nav-link-hover) {
          color: $top-nav-link-hover;
        }

        span {
          @if variable-exists(top-nav-link-current) {
            border-bottom-color: $top-nav-link-current;
          }
          @if variable-exists(top-nav-link-hover) {
            color: $top-nav-link-hover;
          }
        }
      }
    }

    .usa-current,
    button[aria-expanded=true] {
      span {
        @if variable-exists(top-nav-link-current) {
          border-color: $top-nav-link-current;
        }
        @if variable-exists(top-nav-link-current) {
          color: $top-nav-link-current;
        }
      }
    }
  }

  button[aria-expanded=true],
  button[aria-expanded=true]:hover,
  .usa-nav-submenu {
    @if variable-exists(top-nav-dropdown-bg) {
      background-color: $top-nav-dropdown-bg;
    }
  }

  .usa-nav-submenu {
    a:hover {
      @if variable-exists(top-nav-dropdown-link-hover-bg) {
        background-color: $top-nav-dropdown-link-hover-bg;
      }
      @if variable-exists(top-nav-dropdown-link) {
        color: $top-nav-dropdown-link;
      }
    }
  }
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
federalist-basic-report-theme-0.1.7 _sass/components/_top-nav.scss
uswds-jekyll-4.2.0 _sass/components/_top-nav.scss
federalist-basic-report-theme-0.1.5 _sass/components/_top-nav.scss
federalist-basic-report-theme-0.1.4 _sass/components/_top-nav.scss
federalist-basic-report-theme-0.1.3 _sass/components/_top-nav.scss
federalist-basic-report-theme-0.1.0 _sass/components/_top-nav.scss
uswds-jekyll-4.1.0 _sass/components/_top-nav.scss
uswds-jekyll-4.0.0 _sass/components/_top-nav.scss