diff --git a/functions.php b/functions.php index 8943060..3270743 100644 --- a/functions.php +++ b/functions.php @@ -14,6 +14,7 @@ include(TEMPLATEPATH . '/functions/profile-extra-fields.php'); include(TEMPLATEPATH . '/functions/romans.php'); include(TEMPLATEPATH . '/functions/reading-time.php'); include(TEMPLATEPATH . '/functions/cat-template.php'); +include(TEMPLATEPATH . '/functions/remove-block-library.php'); function wpb_custom_new_menu() { register_nav_menus( diff --git a/functions/remove-block-library.php b/functions/remove-block-library.php new file mode 100644 index 0000000..0ad3d1a --- /dev/null +++ b/functions/remove-block-library.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/scss/custom/_article.scss b/scss/custom/_article.scss index 03b7abe..6c449c5 100644 --- a/scss/custom/_article.scss +++ b/scss/custom/_article.scss @@ -40,5 +40,24 @@ &.size-full, &.size-large { text-align: center; + margin:auto; } -} \ No newline at end of file +} + +.wp-block-gallery { + display:flex; + justify-content: space-between; + align-items: start; + .wp-block-image { + width: 220px; + text-align: center; + align-self: start; + } + img { + width:200px; + height:200px; + object-fit: cover; + display:block; + margin:auto; + } +} diff --git a/style.css b/style.css index 57659dc..bc5d553 100644 --- a/style.css +++ b/style.css @@ -3050,7 +3050,23 @@ ul.social { margin-bottom: 0.4rem; } .wp-block-image.size-full, .wp-block-image.size-large { - text-align: center; } + text-align: center; + margin: auto; } + +.wp-block-gallery { + display: flex; + justify-content: space-between; + align-items: start; } + .wp-block-gallery .wp-block-image { + width: 220px; + text-align: center; + align-self: start; } + .wp-block-gallery img { + width: 200px; + height: 200px; + object-fit: cover; + display: block; + margin: auto; } #mobile-sidebar { position: fixed;