Sha256: cbd906e0feff9759e2f56b620d4bb40404798c9022840819da7e135397418045

Contents?: true

Size: 1.57 KB

Versions: 99

Compression:

Stored size: 1.57 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: 960px) and (max-width: 1365px) {
  .layout-sidebar {
    width: 260px;

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

    &:not(.hidden) + .layout-body { width: calc(100% - 220px); }
    &.fixed + .layout-body { width: 100%; }
  }
}
@media only screen and (max-width: 767px) {
  .layout-body,
  .layout-sidebar {
    &.with-sticky-header {
      height: calc(100% - 50px);
      margin-top: 50px;

      &.with-sticky-navbar { height: calc(100% - 100px); }
    }
  }
  .layout-sidebar {
    width: 260px;

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

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
active_frontend-14.0.91 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.90 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.89 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.88 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.87 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.86 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.85 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.84 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.83 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.82 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.81 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.80 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.79 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.78 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.77 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.76 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.75 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.74 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.73 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.72 vendor/assets/stylesheets/components/_layout.scss