//
// Copyright IBM Corp. 2016, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@import 'vars';
@import 'css--reset';
@import 'typography';
@import './vendor/@rocketsoftware/elements/scss/import-once/import-once';

/// Include styles for screen reader/assistive text
/// @access public
/// @group global-helpers
@mixin css-helpers {
  .#{$prefix}--assistive-text,
  .#{$prefix}--visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    visibility: inherit;
    clip: rect(0, 0, 0, 0);
  }

  .#{$prefix}--body {
    @include reset;
    @include type-style('body-short-01');

    color: $text-01;
    line-height: 1;
    background-color: $ui-background;
  }
}

@include exports('css--helpers') {
  @if variable-exists('css--helpers') == false or $css--helpers == true {
    @include css-helpers;
  }
}
