$list-item-image-size: 24px; .list { .header { display: flex; flex-direction: row; justify-content: space-between; h3 {} .view-all { display: flex; flex-direction: column; justify-content: center; a { text-decoration: none; &:after { content: "ยป"; } } } } .list-items-container { ul.list-items { list-style: none; padding: 0; li.list-item { display: flex; background-color: rgba(white, 0.05); transition: transform 150ms ease-in; border-radius: 16px; padding: 8px; user-select: none; &:not(:last-child) { margin-bottom: 1rem; } &[data-href] { cursor: pointer; &:hover { transform: translateX(2rem); @media (max-width: $xl) { transform: translateX(1rem); } @media (max-width: $lg) { transform: translateX(0.5rem); } } } .list-item-image { width: $list-item-image-size; height: $list-item-image-size; @media (max-width: $md) { width: $list-item-image-size * 0.75; height: $list-item-image-size * 0.75; } margin-right: 1rem; } .list-item-text { h4.list-item-title { line-height: $list-item-image-size; font-size: 1.2rem; margin: 0; } span.list-item-date { display: block } } } } } }