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.52 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.51 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.50 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.49 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.48 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.47 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.46 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.45 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.44 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.43 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.42 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.41 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.40 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.39 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.38 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.37 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.36 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.35 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.34 vendor/assets/stylesheets/components/_layout.scss
active_frontend-14.0.33 vendor/assets/stylesheets/components/_layout.scss