Sha256: 1cf9d3594ff71e2c7e9c10b3f2c90d339f15bffca5967d95ba55b4bd9bc94552

Contents?: true

Size: 1.99 KB

Versions: 9

Compression:

Stored size: 1.99 KB

Contents

/* Table of Contents
==================================================
# Canvas
# Media Queries */

/* # Canvas
================================================== */
.canvas {
  height: 100%;
  min-height: 100%;
}
.canvas-content,
.canvas-sidebar {
  box-sizing: border-box;
  display: block;
  float: left;
  height: 100%;
  min-height: 100%;
}
.canvas-content {
  padding: 30px 0;
  max-width: calc(100% - 280px);
  width: calc(100% - 280px);
}
.canvas-content.canvas-content-without-sidebar {
  max-width: 100%;
  width: 100%;
}
.canvas-with-header > .canvas-content,
.canvas-with-header > .canvas-sidebar,
.canvas-with-header-and-footer > .canvas-content,
.canvas-with-header-and-footer > .canvas-sidebar { margin-top: 60px; }
.canvas-with-footer > .canvas-content,
.canvas-with-header-and-footer > .canvas-content { padding-bottom: 90px; }
.canvas-sidebar {
  max-width: 280px;
  width: 280px;
}
.canvas-with-header .sidebar,
.canvas-with-footer .sidebar {
  height: calc(100% - 60px);
  max-height: calc(100% - 60px);
}
.canvas-with-header-and-footer .sidebar {
  height: calc(100% - 120px);
  max-height: calc(100% - 120px);
}

/* # Media Queries
================================================== */
@media only screen and (max-width: 1365px) {
  .canvas-content {
    max-width: calc(100% - 250px);
    width: calc(100% - 250px);
  }
  .canvas-sidebar {
    max-width: 250px;
    width: 250px;
  }
}
@media only screen and (max-width: 1199px) {
  .canvas-content {
    max-width: calc(100% - 220px);
    width: calc(100% - 220px);
  }
  .canvas-sidebar {
    max-width: 220px;
    width: 220px;
  }
}
@media only screen and (max-width: 959px) {
  .canvas-content {
    max-width: 100%;
    width: 100%;
  }
  .canvas-sidebar { display: none; }
}
@media only screen and (max-width: 767px) {
  .canvas-with-header > .canvas-content,
  .canvas-with-header-and-footer > .canvas-content { margin-top: 50px; }
  .canvas-with-footer > .canvas-content,
  .canvas-with-header-and-footer > .canvas-content { padding-bottom: 80px; }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_frontend-2.0.13 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.12 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.11 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.10 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.9 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.8 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.7 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.6 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.5 vendor/assets/stylesheets/canvas.scss