/* Table of Contents ================================================== # Canvas # Canvas Alt # Media Queries */ /* # Canvas ================================================== */ .canvas { clear: both; display: block; max-height: 100%; height: 100%; max-width: 100%; width: 100%; } .canvas-content, .canvas-sidebar, .canvas-toolbar { box-sizing: border-box; display: block; float: left; max-height: 100%; height: 100%; @include overflow-scrolling(touch); } .canvas-content { overflow: scroll; padding: 30px 0; max-width: 100%; width: 100%; } .canvas-content-with-sidebar { max-width: calc(100% - 280px); width: calc(100% - 280px); } .canvas-content-with-toolbar { max-width: calc(100% - 55px); width: calc(100% - 55px); } .canvas-content-with-sidebar-and-toolbar { max-width: calc(100% - 335px); width: calc(100% - 335px); } .canvas-sidebar { max-width: 280px; width: 280px; } .canvas-toolbar { max-width: 55px; width: 55px; } .canvas-section-with-header, .canvas-section-with-header-and-footer { margin-top: 60px; } .canvas-section-with-header-condensed, .canvas-section-with-header-condensed-and-footer { margin-top: 50px; } .canvas-section-with-header { max-height: calc(100% - 60px); height: calc(100% - 60px); } .canvas-section-with-header-condensed { max-height: calc(100% - 50px); height: calc(100% - 50px); } .canvas-section-with-header-and-footer { max-height: calc(100% - 90px); height: calc(100% - 90px); } .canvas-section-with-header-condensed-and-footer { max-height: calc(100% - 80px); height: calc(100% - 80px); } .canvas-section-with-footer { max-height: calc(100% - 30px); height: calc(100% - 30px); } /* # Media Queries ================================================== */ @media only screen and (max-width: 1365px) { .canvas-sidebar { max-width: 250px; width: 250px; } .canvas-content-with-sidebar { max-width: calc(100% - 250px); width: calc(100% - 250px); } .canvas-content-with-sidebar-and-toolbar { max-width: calc(100% - 305px); width: calc(100% - 305px); } } @media only screen and (max-width: 1199px) { .canvas-sidebar { max-width: 220px; width: 220px; } .canvas-content-with-sidebar { max-width: calc(100% - 220px); width: calc(100% - 220px); } .canvas-content-with-sidebar-and-toolbar { max-width: calc(100% - 275px); width: calc(100% - 275px); } } @media only screen and (max-width: 959px) { .canvas-sidebar { display: none; } .canvas-content-with-sidebar { max-width: 100%; width: 100%; } .canvas-content-with-sidebar-and-toolbar { max-width: calc(100% - 55px); width: calc(100% - 55px); } } @media only screen and (max-width: 767px) { .canvas-sidebar, .canvas-toolbar { display: none; } .canvas-content-with-sidebar, .canvas-content-with-toolbar, .canvas-content-with-sidebar-and-toolbar { max-width: 100%; width: 100%; } .canvas-section-with-header, .canvas-section-with-header-and-footer, .canvas-section-with-header-and-navbar, .canvas-section-with-header-condensed, .canvas-section-with-header-condensed-and-footer, .canvas-section-with-header-condensed-and-navbar { margin-top: 50px; } .canvas-section-with-header-and-navbar, .canvas-section-with-header-condensed-and-navbar { max-height: calc(100% - 100px); height: calc(100% - 100px); } .canvas-section-with-navbar { max-height: calc(100% - 50px); height: calc(100% - 50px); } }