@import '../partials/main'; @import '../partials/nav'; .section-article { article { margin: 80px auto; max-width: 720px; .meta { color: rgb(215, 215, 235); } .title { font-size: 2em; margin-top: 20px; } img { border: 1px solid rgb(60, 60, 90); border-radius: 5px; margin-bottom: 15px; max-width: 100%; } a { border-bottom: 1px solid; color: rgb(245, 245, 255); margin: -5px; padding: 5px; transition: border .2s, color .2s; &:hover { color: rgb(255, 130, 130); text-decoration: none; } } h2 { font-size: .6em; } aside { margin-top: 80px; .tags { display: flex; list-style: none; margin-left: -15px; padding: 0; li { a { background: rgb(60, 60, 90); border: 0; border-radius: 5px; color: rgb(215, 215, 225); margin-left: 15px; padding: 10px; &:hover { background: rgb(50, 50, 75); color: rgb(255, 255, 255); } } } } } } } .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: rgb(50, 50, 75); 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: rgb(215, 215, 225); transition: border .2s, color .2s; &:hover { border-bottom: 1px solid; color: rgb(255, 130, 130); 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; } } } @import '../partials/footer';