diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
commit | a415c29efee45520ae252d2aa28f1083a521cd7b (patch) | |
tree | f4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/latest-posts/style.css | |
parent | Initial commit. (diff) | |
download | wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip |
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/latest-posts/style.css')
-rw-r--r-- | wp-includes/blocks/latest-posts/style.css | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/wp-includes/blocks/latest-posts/style.css b/wp-includes/blocks/latest-posts/style.css new file mode 100644 index 0000000..63f0115 --- /dev/null +++ b/wp-includes/blocks/latest-posts/style.css @@ -0,0 +1,88 @@ +.wp-block-latest-posts{ + box-sizing:border-box; +} +.wp-block-latest-posts.alignleft{ + margin-right:2em; +} +.wp-block-latest-posts.alignright{ + margin-left:2em; +} +.wp-block-latest-posts.wp-block-latest-posts__list{ + list-style:none; + padding-left:0; +} +.wp-block-latest-posts.wp-block-latest-posts__list li{ + clear:both; +} +.wp-block-latest-posts.is-grid{ + display:flex; + flex-wrap:wrap; + padding:0; +} +.wp-block-latest-posts.is-grid li{ + margin:0 1.25em 1.25em 0; + width:100%; +} +@media (min-width:600px){ + .wp-block-latest-posts.columns-2 li{ + width:calc(50% - .625em); + } + .wp-block-latest-posts.columns-2 li:nth-child(2n){ + margin-right:0; + } + .wp-block-latest-posts.columns-3 li{ + width:calc(33.33333% - .83333em); + } + .wp-block-latest-posts.columns-3 li:nth-child(3n){ + margin-right:0; + } + .wp-block-latest-posts.columns-4 li{ + width:calc(25% - .9375em); + } + .wp-block-latest-posts.columns-4 li:nth-child(4n){ + margin-right:0; + } + .wp-block-latest-posts.columns-5 li{ + width:calc(20% - 1em); + } + .wp-block-latest-posts.columns-5 li:nth-child(5n){ + margin-right:0; + } + .wp-block-latest-posts.columns-6 li{ + width:calc(16.66667% - 1.04167em); + } + .wp-block-latest-posts.columns-6 li:nth-child(6n){ + margin-right:0; + } +} + +.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{ + display:block; + font-size:.8125em; +} + +.wp-block-latest-posts__post-excerpt{ + margin-bottom:1em; + margin-top:.5em; +} + +.wp-block-latest-posts__featured-image a{ + display:inline-block; +} +.wp-block-latest-posts__featured-image img{ + height:auto; + max-width:100%; + width:auto; +} +.wp-block-latest-posts__featured-image.alignleft{ + float:left; + margin-right:1em; +} +.wp-block-latest-posts__featured-image.alignright{ + float:right; + margin-left:1em; +} +.wp-block-latest-posts__featured-image.aligncenter{ + margin-bottom:1em; + text-align:center; +}
\ No newline at end of file |