Sha256: 1a80cad8c20fbd4b2bd0d43592057300fd7d362aa8bc47bb13fffe81143ca0dc

Contents?: true

Size: 1.31 KB

Versions: 36

Compression:

Stored size: 1.31 KB

Contents

// Table of Contents
// ==================================================
// Layout
// Styles
// 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;
}
.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-sidebar {
    width: 260px;

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
active_frontend-14.0.32 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.31 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.30 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.29 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.28 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.27 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.26 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.25 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.24 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.23 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.22 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.21 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.20 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.19 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.18 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.17 vendor/assets/stylesheets/components/_layout.scss