/* 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-x: hidden; overflow-y: auto; 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 { max-height: calc(100% - 60px); height: calc(100% - 60px); } .canvas-section-with-header-and-footer { max-height: calc(100% - 90px); height: calc(100% - 90px); } .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 { max-width: 200px; width: 200px; } .canvas-content-with-sidebar { max-width: calc(100% - 200px); width: calc(100% - 200px); } .canvas-content-with-sidebar-and-toolbar { max-width: calc(100% - 255px); width: calc(100% - 255px); } } @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 { margin-top: 50px; } .canvas-section-with-header { max-height: calc(100% - 50px); height: calc(100% - 50px); } .canvas-section-with-header-and-footer { max-height: calc(100% - 80px); height: calc(100% - 80px); } .canvas-section-with-header-and-navbar { max-height: calc(100% - 99px); height: calc(100% - 99px); } .canvas-section-with-navbar { max-height: calc(100% - 49px); height: calc(100% - 49px); } }