html { body.overflow { overflow: auto; } } /* New flexbox layout */ html, body { height: 100%; } html { body { overflow: hidden; display: flex; flex-direction: column; > header { flex: 0 0 auto; background-color: #dcdcdc; } /* main is a wrapper about non-header content */ > main { display: flex; height: 100%; min-height: 0; > nav { width: $patient-side-nav-width; min-width: $patient-side-nav-width; } > .main-content { position: relative; /* need this to position inner content */ width: 100%; } > nav, > .main-content { flex: 1 1 auto; height: 100%; min-height: 100%; padding-bottom: 2rem; overflow-y: auto; @media print { overflow-y: visible; } } .layout-wrapper { padding-bottom: 3rem; } } > footer { flex: 0 0 auto; } } /* When patient menu hidden/shown */ body.collapse-patient-menu nav.patient-side-nav { margin-left: -15rem; left: 0; } .full-screenable { transition: margin .2s ease 0s; } } /* End new flexbox layout */ footer { background-color: $footer-bg-colour; border-top: 1px solid $light-grey; color: $footer-colour; font-size: .8rem; padding: 0 1rem; text-align: right; } .page-heading { .warning-block { background-color: $table-toggled-content-colour; margin: 0.7rem; i { margin-right: 0.5rem; } } } .embedded-scroll { overflow: auto; } .inline { display: inline; } section.display { h4 { margin: .1rem 1rem 0 0; float: left; clear: left; font-size: 1.3rem; color: $dark-grey; } .section-actions { float: left; clear: right; a { @extend .button; padding: .3rem 1rem; font-size: .9rem; margin: 0; } } .section-content { display: block; margin-top: .2rem; dl { clear: both; } } } .half-collapse { .columns { padding-left: $column-gutter / 2; padding-right: $column-gutter / 2; } } .non-patient-page { padding-bottom: 3rem; .non-patient-page-header { margin: 0; padding:0; margin-bottom: .5rem; &.with-tabs { border-bottom: 1px solid $tab-border-color; margin-bottom: 1.5rem; .page-heading { margin-bottom: .8rem; } } } ul, dl { float: none; display: block; margin-bottom: 0; } .sub-nav { top: 1px; position: relative; } .page-heading { padding: 1.4rem 0 .7rem; margin: 0; float: left; clear: both; } }