Sha256: d54a7b58ee2b5e838b871013deb54ae5784f07f54b8b9b4025125ef09ef5e42d

Contents?: true

Size: 1.57 KB

Versions: 41

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% - 54px);
      margin-top: 54px;

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

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

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
active_frontend-16.0.13 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.12 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.11 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.10 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.9 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.8 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.7 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.6 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.5 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.4 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.3 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.2 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.1 vendor/assets/stylesheets/components/_layout.scss
active_frontend-16.0.0 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.6 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.5 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.4 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.3 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.2 vendor/assets/stylesheets/components/_layout.scss
active_frontend-15.1.1 vendor/assets/stylesheets/components/_layout.scss