/**
 *
 * @ai-apps/angular v2.152.0 | SideNav.story.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


@import '../../globals/vars';

.#{$iot-prefix}--main-content {
  padding-top: $spacing-09;
  height: 100%;
  transition: all $duration--fast-02 cubic-bezier(0.2, 0, 1, 0.9);
  width: 100%;

  @media (min-width: 66em) {
    width: calc(100% - 3rem);

    .#{$iot-prefix}--side-nav--expanded + & {
      width: calc(100% - 16rem);
    }

    html:not([dir='rtl']) & {
      transform: translateX(3rem);
    }

    html:not([dir='rtl']) .#{$iot-prefix}--side-nav--expanded + & {
      transform: translateX(16rem);
    }

    html[dir='rtl'] & {
      transform: translateX(-3rem);
    }

    html[dir='rtl'] .#{$iot-prefix}--side-nav--expanded + & {
      transform: translateX(-16rem);
    }
  }
}
