.article-preview { font-size: 0.95em; padding-inline: 0.5em; padding-block: 0.5em; margin-block-end: 0.5em; border-radius: 3px; background-color: hsl(33, 100%, 98%); & > p { font-size: 0.9em; line-height: 1.4; margin-inline-start: 0.3em; margin-block: 0; } & > .title { margin-block-start: 0; margin-block-end: 0.3em; } & > .date { font-size: small; float: right; margin-inline-end: 1.5em; color: hsl(0, 0%, 25%); } & > .content { overflow: hidden; height: 3lh; } } html[data-theme="dark"] { & .article-preview { background-color: hsl(0, 0%, 3%); & > .date { color: hsl(0, 0%, 75%); } } }