@import "variables"; body { display: flex; flex-flow: row nowrap; align-items: stretch; justify-content: space-between; @media (max-width: $mobile-breakpoint) { flex-flow: column nowrap; } } #sidebar { @media (min-width: $mobile-breakpoint) { flex: 0 0 auto; height: 100vh; } @media (max-width: $mobile-breakpoint) { flex: 1 0 auto; width: 100vw; } } #sidebar-links { display: flex; flex-flow: column nowrap; justify-content: space-between; align-items: stretch; @media (max-width: $mobile-breakpoint) { flex-flow: row nowrap; } } .post-header { h1 { margin-top: 0; } .byline { display: flex; justify-content: space-between; margin-bottom: 1.375rem; @media (max-width: $tablet-breakpoint) { margin-bottom: 1.375rem; } @media (max-width: $mobile-breakpoint) { margin-bottom: 1.25rem; } } } #main { flex: 1 1 0; @media (min-width: $mobile-breakpoint) { height: 100vh; overflow-y: scroll; } } #prev-next { display: flex; align-items: center; flex-flow: row nowrap; justify-content: space-between; .prev, .next { display: flex; align-items: center; flex-flow: row nowrap; flex: 1 1 50%; fill: currentColor; text-decoration: none; .icon { flex: 0 0 1em; height: 1em; width: 1em; } .nav-text { flex: 1 1 0; margin-left: 1em; margin-right: 1em; text-align: center; } } }