@use 'vars' as *; html, body { width: 100%; height: 100%; } body { display: flex; align-items: center; justify-content: center; } .l-container { width: 80%; height: 90%; margin: 0 auto; background-color: #f8f8ff; border: 1px solid $c-main; display: grid; grid-template-rows: 7% auto; grid-template-columns: auto; } .l-nav { grid-row: 1/2; display: flex; align-items: stretch; border-bottom: 1px solid $c-main; } .l-nav__tab { flex-grow: 1; border-right: 1px solid $c-main; padding: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; &:last-child { border-right: none; } } .l-page-nav { width: 100%; margin: 10px; display: flex; justify-content: stretch; align-items: center; column-gap: 20px; } .l-page-nav__links { flex-grow: 1; text-align: right; margin-right: 40px; } .l-page-nav__link { @extend %btn; text-decoration: none; } .l-main { grid-row: 2/3; padding: 10px 40px; overflow: auto; }