//
// 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 '../../globals/scss/vars';
@import '../../globals/scss/helper-mixins';
@import '../../globals/scss/functions';
@import '../../globals/scss/layer';
@import '../../globals/scss/vendor/@carbon/elements/scss/import-once/import-once';
@import '../../globals/scss/css--reset';
@import 'mixins';
@import 'left-nav-trigger';
@import 'global-header';
@import 'topnav';
@import 'left-nav';
@import 'account-switcher';

@mixin unified-header {
  @include deprecate(
    'The `unified-header` component in `carbon-components` has been deprecated. ' +
      'It will be removed in the next major release.'
  ) {
    .#{$prefix}--unified-header {
      @include reset;
      position: fixed;
      z-index: z('header');
    }
  }
}

@include exports('unified-header') {
  @if not(feature-flag-enabled('breaking-changes-x')) {
    @include unified-header;
  }
}
