Sha256: d9ed7f683aa9ec7c6ec18e3ba3c906a69b1068a22d270373834ff8290eb914dc

Contents?: true

Size: 1.97 KB

Versions: 29

Compression:

Stored size: 1.97 KB

Contents

// Table of Contents
// ==================================================
// Layout
// Media Queries

// Layout
// ==================================================
.layout {
  height: 100%;
  width: 100%;
}
.layout-body,
.layout-sidebar {
  @include overflow-scrolling(touch);
  float: left;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  &.with-sticky-header {
    height: calc(100% - 76px);
    margin-top: 76px;
  }
}
.layout-body { width: 100%; }
.layout-sidebar {
  width: 300px;

  &:not(.hidden) + .layout-body { width: calc(100% - 300px); }

  &.fixed {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1060;

    + .layout-body { width: 100%; }
  }
}

// Media Queries
// ==================================================
@media only screen and (min-width: breakpoint-min-width(b)) and (max-width: breakpoint-max-width(l)) {
  .layout-sidebar {
    width: 260px;

    &:not(.hidden) + .layout-body { width: calc(100% - 260px); }
    &.fixed + .layout-body { width: 100%; }
  }
}
@media only screen and (min-width: breakpoint-min-width(s)) and (max-width: breakpoint-max-width(b)) {
  .layout-sidebar {
    width: 220px;

    &:not(.hidden) + .layout-body { width: calc(100% - 220px); }
    &.fixed + .layout-body { width: 100%; }
  }
}
@media only screen and (max-width: breakpoint-max-width(s)) {
  .layout-body,
  .layout-sidebar {
    height: initial;
    min-height: 100%;
    margin: 0;
    max-width: 100%;
    width: 100%;

    &.with-sticky-header { margin: 0; }
  }
  .layout-body {
    &.with-sticky-header {
      height: initial;
      min-height: initial;
      padding-top: 54px;

      &.with-sticky-navbar {
        padding-bottom: 54px;
        padding-bottom: calc(54px + constant(safe-area-inset-bottom));
        padding-bottom: calc(54px + env(safe-area-inset-bottom));
      }
    }
  }
  .layout-sidebar {
    &.with-sticky-header {
      height: calc(100% - 54px);
      margin-top: 54px;
      min-height: calc(100% - 54px);
    }
  }
}

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
active_frontend-18.0.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-18.0.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.7.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.6.3 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.6.2 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.6.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.6.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.5.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.5.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.4.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.4.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.3.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.3.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.2.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.1.4 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.1.3 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.1.2 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.1.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.1.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-17.0.4 vendor/assets/stylesheets/components/_layout.scss