//
// Copyright IBM Corp. 2020, 2021
//
// 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 '../../global/styles/project-settings';

@import 'carbon-components/scss/components/ui-shell/ui-shell';
@import 'carbon-components/scss/components/data-table/data-table';
@import 'carbon-components/scss/components/button/button';

$story-class: 'page-header-stories';

// cspell:disable-next-line
.sbdocs .#{$story-class}__viewport {
  max-height: 500px;
  background-color: $ui-background;
  box-shadow: 0 0 4px 1px $ui-03;
  color: $text-01;
  overflow-y: auto;
}

.#{$story-class}__content-switcher {
  justify-content: flex-start;
}

.#{$story-class}__content-switcher button {
  width: auto;
}

.#{$story-class}__dummy-content {
  position: relative; // used to raise the stacking context and check it still goes under the page header
  padding-top: $spacing-05;
  margin-top: $spacing-05;
  background-color: $ui-background;
  color: $text-01;
}

.#{$story-class}__dummy-content-block {
  min-height: 120vh;
  background: $ui-01;
  background-clip: content-box;
}

.#{$story-class}__dummy-content-text {
  padding: $spacing-05;
}

.#{$story-class}__status-icon {
  fill: $support-02;
  vertical-align: middle;
}

.#{$story-class}__app {
  position: relative;
  display: flex;
  // min and max height needed to prevent scroll off screen (verify on in context page)
  min-height: 100vh;
  max-height: 100vh;
  flex-direction: column;
}

.#{$story-class}__app--whole-page-scroll {
  overflow: hidden;
}

.#{$story-class}__content-container {
  height: 100%;
  padding: 0;
}

.#{$story-class}__app--whole-page-scroll .#{$story-class}__content-container {
  overflow-y: auto;
}
