main { padding: 1rem 2rem; @include media-max(small) { padding: 1rem; } &#dashboard { width: 100%; display: grid; grid-row-gap: 2rem; grid-template-areas: "stats" "contributions"; } &.center-column { display: flex; flex-direction: column; align-items: center; section { width: 600px; max-width: 100%; header { text-align: center; } } } section { .content { a { font-size: inherit; } &.text-lg { p { font-size: 1.2rem; margin-bottom: 1em; line-height: 1.5em; } } &.text-center { text-align: center; } p { &.mg-bottom-md { margin-bottom: 2rem; } &.actions { text-align: center; padding-top: 2rem; } } } } } @media (min-width: 550px) { main { &#dashboard { grid-column-gap: 4rem; grid-row-gap: 2rem; grid-template-columns: 2fr 4fr; grid-template-areas: "stats contributions"; &.with-details { grid-column-gap: 3rem; grid-template-columns: 2fr 4fr 2fr; grid-template-areas: "stats contributions details"; } } } } main section { margin-bottom: 5rem; &:first-of-type { margin-top: 2rem; } @include media-max(small) { margin-bottom: 5rem; } header { margin-bottom: 3rem; &.with-nav { display: grid; grid-template-columns: auto 5rem; grid-template-areas: "title" "actions"; } h2 { display: inline-block; // padding-left: 1.2rem; } nav { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; } @include media-max(small) { margin-bottom: 2rem; } } }