// Hide Content
// @see https://make.wordpress.org/core/2017/10/22/changes-to-the-screen-reader-text-css-class-in-wordpress-4-9/
@mixin screen-reader-text {
  & {
    clip:     rect(1px, 1px, 1px, 1px);
    height:   1px;
    margin:   0;
    overflow: hidden;
    padding:  0;
    position: absolute !important;
    width:    1px;

    &:focus {
      background-color: $color-background;
      border-radius:    3px;
      box-shadow:       0 0 2px 2px rgba(0, 0, 0, 0.6);
      clip:             auto !important;
      color:            #21759b;
      display:          block;
      font-size:        14px;
      font-size:        0.875rem;
      font-weight:      bold;
      height:           auto;
      left:             5px;
      line-height:      normal;
      padding:          15px 23px 14px;
      text-decoration:  none;
      top:              5px;
      width:            auto;
      z-index:          100000; // Above WP toolbar.
    }
  }
}

@mixin unscreen-reader-text {
  clip:     auto;
  position: static;
  height:   auto;
  width:    auto;
  overflow: initial; // If create issue, have a look at the main nav sub-menu item 2 Depth.
}

@mixin hide {
  // When we want to hide must be sure that the element will be hidden.
  // scss-lint:disable ImportantRule
  display: none !important;
}

.screen-reader-text {
  @include screen-reader-text;
}

// Unhide text
.unscreen-reader-text {
  @include unscreen-reader-text;
}

// Display None
.hidden {
  @include hide;
}
