Sha256: b9bf241ffefc22c73e04750fc070be251912238b480c30ab613bbb52b92d4cd3

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 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-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: 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: 767px) {
  .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: 50px; }
  .canvas-with-footer > .canvas-content,
  .canvas-with-header-and-footer > .canvas-content { padding-bottom: 80px; }
  .canvas-with-header .sidebar,
  .canvas-with-footer .sidebar {
    height: calc(100% - 50px);
    max-height: calc(100% - 50px);
  }
  .canvas-with-header-and-footer .sidebar {
    height: calc(100% - 100px);
    max-height: calc(100% - 100px);
  }
  .canvas-content {
    max-width: 100%;
    width: 100%;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_frontend-2.0.1 vendor/assets/stylesheets/canvas.scss
active_frontend-2.0.0 vendor/assets/stylesheets/canvas.scss