/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiSkipLink {
  transition: none !important; // sass-lint:disable-line no-important

  &:focus {
    animation: none !important; // sass-lint:disable-line no-important
  }

  // Set positions on focus only as to no override screenReaderOnly position
  // When positioned absolutely, consumers still need to tell it WHERE (top,left,etc...)
  &.ouiSkipLink--absolute:focus {
    position: absolute;
  }

  &.ouiSkipLink--fixed:focus {
    position: fixed;
    top: $ouiSizeXS;
    left: $ouiSizeXS;
    z-index: $ouiZHeader + 1;
  }
}
