.wp-block-rss { padding-left: 0; > li { list-style: none; } // Vertical margins logic &:not(.is-grid) > li { margin-bottom: var(--global--spacing-vertical-large); &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } &.is-grid { > li { font-size: 30px; // spacing base value margin-bottom: var(--global--spacing-vertical); &:last-child { margin-bottom: 0; } } // Remove bottom margins in grid columns &.columns-2 > li:nth-last-child(-n + 2):nth-child(2n + 1), &.columns-2 > li:nth-last-child(-n + 2):nth-child(2n + 1) ~ li, &.columns-3 > li:nth-last-child(-n + 3):nth-child(3n + 1), &.columns-3 > li:nth-last-child(-n + 3):nth-child(3n + 1) ~ li, &.columns-4 > li:nth-last-child(-n + 4):nth-child(4n + 1), &.columns-4 > li:nth-last-child(-n + 4):nth-child(4n + 1) ~ li, &.columns-5 > li:nth-last-child(-n + 5):nth-child(5n + 1), &.columns-5 > li:nth-last-child(-n + 5):nth-child(5n + 1) ~ li, &.columns-6 > li:nth-last-child(-n + 6):nth-child(6n + 1), &.columns-6 > li:nth-last-child(-n + 6):nth-child(6n + 1) ~ li { margin-bottom: 0; } } > li > * { margin-bottom: var(--global--spacing-vertical-sm); &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } // Post title .wp-block-rss__item-title { margin-bottom: var(--global--spacing-vertical-sm); > a { display: inline-block; @include title-box-style(); } } // Post author .wp-block-rss__item-author { @include meta-style(); margin-bottom: var(--global--spacing-vertical-sm); display: inline-block; padding-right: 10px; } // Post date .wp-block-rss__item-publish-date { @include meta-style(); padding-right: 10px; margin-bottom: var(--global--spacing-vertical-sm); display: inline-block; [class*="inner-container"] &, .has-background & { color: currentColor; } } // Post content .wp-block-rss__item-excerpt, .wp-block-rss__item-full-content { font-family: var(--latest-posts--description-font-family); font-size: var(--latest-posts--description-font-size); line-height: var(--global--line-height-body); } // Utility classes &.alignfull { padding-left: var(--global--spacing-unit); padding-right: var(--global--spacing-unit); .entry-content [class*="inner-container"] &, .entry-content .has-background & { padding-left: 0; padding-right: 0; } } }