Sha256: ef4627cff19e2a7205aeffee35ac6a3b59efde4409af2efcbd6bab83d1be6fe5
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 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: 813px) 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: 812px) { .layout-body, .layout-sidebar { height: initial; min-height: 100%; margin: 0; max-width: 100%; width: 100%; &.with-sticky-header { margin: 0; min-height: 100%; } } .layout-body { &.with-sticky-header { height: initial; padding-top: 54px; &.with-sticky-navbar { padding-bottom: calc(54px + env(safe-area-inset-bottom)); } } } .layout-sidebar { &.with-sticky-header { height: calc(100% - 54px); margin-top: 54px; min-height: calc(100% - 54px); } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_frontend-16.1.7 | vendor/assets/stylesheets/components/_layout.scss |