@import '../import/colors.scss'; @import '../import/syntax.scss'; @import '../import/main.scss'; @import '../import/nav.scss'; @import '../import/footer.scss'; @import '../import/include.scss'; .section-article { article { margin: 80px auto; max-width: 720px; .meta { color: $white-dark; } .title { font-size: 2em; margin-top: 20px; } img { border: 1px solid $bg60; border-radius: 5px; margin-bottom: 15px; max-width: 100%; } @include a-underlined; h2 { font-size: .6em; } aside { margin-top: 80px; .tags { display: flex; list-style: none; margin-left: -15px; padding: 0; li { a { background: $bg60; border: 0; border-radius: 5px; color: $white-dark; margin-left: 15px; padding: 10px; &:hover { background: $bg50; color: $white-light; } } } } } } } .section-articles { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 1rem; margin: 20px auto 0 auto; max-width: 720px; white-space: nowrap; &::after { background: $bg50; content: ''; height: 200px; left: 0; position: absolute; width: 100vw; z-index: -10; } article { display: flex; flex-flow: column; height: max-content; margin: 20px 0; a { border-bottom: 1px solid transparent; color: $white-dark; transition: border .2s, color .2s; &:hover { border-bottom: 1px solid; color: $red; text-decoration: none; } } } .next-article { margin-right: auto; } .previous-article { margin-left: auto; } } @media (max-width: 400px) { .section-articles { grid-template-columns: repeat(1, 1fr); &::after { height: 250px; } .next-article { margin: 20px auto 0 auto; } .previous-article { margin: 0 auto; } } }