@import 'import/colors.scss'; @import 'import/main.scss'; @import 'import/nav.scss'; @import 'import/footer.scss'; @import 'import/include.scss'; .section.header { background: $bg60; @include a-underlined; header { margin: 60px auto; max-width: 600px; text-align: center; h2 { font-size: 2.5em; margin: auto; } } .section.contact { background: $bg70; border-radius: 5px; display: flex; padding: 20px; margin: 60px auto; max-width: 500px; .table.contact { margin: 0 auto; white-space: nowrap; tr { td { &:first-of-type { padding: 5px 30px 5px 0; text-align: right; } } } } } } main { .latest { color: $white-dark; display: block; font-size: 1.5em; text-align: center; margin: -7px; a { color: $white; font-weight: bold; transition: border .2s, color .2s; &:hover { color: $red; text-decoration: none; } } } .section.projects { .inner { display: grid; grid-gap: 1rem; grid-template-columns: repeat(4, 1fr); margin: 40px 0; a { color: $white-light; text-decoration: none; } article { background: $bg60; border-radius: 5px; color: $white; display: flex; flex-flow: column; height: 100%; padding: 20px 40px; transition: background .2s; &:hover { background: $bg50; } h2 { color: $white; font-size: 18px; font-weight: 400; margin: 0; text-align: center; } p.meta { color: $white-dark; font-size: 14px; margin: 0; text-align: center; } } } } @include posts; } @media (max-width: 900px) { main { .section.projects.inner { grid-template-columns: repeat(2, 1fr); } } } @media (max-width: 600px) { .section.header { .section.contact { border-radius: 0; padding: 10px; margin: 60px -20px; max-width: none; overflow-x: auto; width: 100vw; .table.contact { margin: 0 auto; white-space: nowrap; tr { td { &:first-of-type { padding: 5px 20px 5px 0; } } } } } } main { .section.projects.inner { grid-template-columns: repeat(1, 1fr); } } }