.posts { width: 100%; max-width: 800px; text-align: left; padding: 20px; margin: 20px auto; @media #{$media-size-tablet} { max-width: 660px; } &:not(:last-of-type) { // Default border-bottom: 1px solid $light-border-color; @media (prefers-color-scheme: dark) { border-bottom: 1px solid $dark-border-color; } @media (prefers-color-scheme: light) { border-bottom: 1px solid $light-border-color; } [data-theme=dark] & { border-bottom: 1px solid $dark-border-color; } [data-theme=light] & { border-bottom: 1px solid $light-border-color; } } &-group { display: flex; margin-bottom: 1.9em; line-height: normal; @media #{$media-size-tablet} { display: block; } } &-list { flex-grow: 1; margin: 0; padding: 0; list-style: none; } .post { &-title { font-size: 1rem; margin: 5px 0 5px 0; &.em { font-style: italic; } } &-year { padding-top: 6px; margin-right: 1.8em; font-size: 1.6em; @include dimmed; @media #{$media-size-tablet} { margin: -6px 0 4px; } } &-item { border-bottom: 1px grey dashed; a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; text-decoration: none; position: relative; &:hover .post-emoji { opacity: 1; } } } &-day { flex-shrink: 0; margin-left: 1em; @include dimmed; } &-emoji { position: absolute; left: -1.5em; line-height: 1.8em; opacity: 0; transition: opacity 0.2s ease-in-out; } } } .side-by-side .post-item a { padding: 0.2em 0; }