Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
add styling for preview page
Browse files Browse the repository at this point in the history
  • Loading branch information
krcardoza committed Sep 9, 2022
1 parent 32f52ec commit d8f4cb5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
15 changes: 15 additions & 0 deletions build/style-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/style-index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/gallery-block/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function render_block_core_gallery_block( $attributes ) {
esc_url( $post_link ),
$featured_image
);
$gallery_markup .= '<div class="basic-card__info-wrapper"><h3 class="basic-card__title mb-0"><span>';
$gallery_markup .= '<div class="basic-card__info-wrapper"><h3 class="basic-card__title"><span>';
$gallery_markup .= sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( $post_link ),
Expand Down
18 changes: 18 additions & 0 deletions src/gallery-block/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.gallery-container {
display: flex;
flex-direction: column;
.basic-card {
&__title{
margin: 0 0 1rem;
a {
text-decoration: none;
}
}
}
}

@media (min-width: 768px) {
.gallery-container {
flex-direction: row;
}
}

0 comments on commit d8f4cb5

Please sign in to comment.