From 57bd9d4839eaaf9ea1eb43f5cad597a75638d702 Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Wed, 7 Sep 2022 15:15:08 +0530 Subject: [PATCH 1/2] Fix card margin --- plugin/assets/css/src/block/style/masonry.css | 4 ---- plugin/assets/css/src/components/card.css | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/assets/css/src/block/style/masonry.css b/plugin/assets/css/src/block/style/masonry.css index 408834d4..31ca16c4 100644 --- a/plugin/assets/css/src/block/style/masonry.css +++ b/plugin/assets/css/src/block/style/masonry.css @@ -54,7 +54,3 @@ .is-style-material-masonry.wp-block-query-loop.is-flex-container > li { width: 100% !important; } - -.entry-content h2.post-card__title { - margin: revert; -} diff --git a/plugin/assets/css/src/components/card.css b/plugin/assets/css/src/components/card.css index aca191ae..df88efdd 100644 --- a/plugin/assets/css/src/components/card.css +++ b/plugin/assets/css/src/components/card.css @@ -192,6 +192,7 @@ color: var(--md-sys-color-on-surface, #000); } +.entry-content h2.post-card__title, .post-card__title { margin: 0; padding: 0; From e10424e0705301c7a47e412599f769da0a5d8a74 Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Wed, 7 Sep 2022 15:53:49 +0530 Subject: [PATCH 2/2] Update default line-height --- plugin/php/customizer/class-controls.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/php/customizer/class-controls.php b/plugin/php/customizer/class-controls.php index 146ad431..3fd145c8 100644 --- a/plugin/php/customizer/class-controls.php +++ b/plugin/php/customizer/class-controls.php @@ -913,12 +913,12 @@ public function get_frontend_css() { esc_html( $font_style ) ); } elseif ( 'tracking' === $type ) { - $font_size = isset( $value['size'] ) ? $value['size'] : 16; - $line_height = $value[ $type ] / $font_size; - $font_vars[] = sprintf( + $font_size = isset( $value['size'] ) ? $value['size'] : 16; + $line_tracking = $value[ $type ] / $font_size; + $font_vars[] = sprintf( '%s: %srem !important;', esc_html( $var ), - esc_html( $line_height ) + esc_html( $line_tracking ) ); } else { $font_vars[] = sprintf( @@ -1714,9 +1714,9 @@ public function get_typography_extra_controls( $token ) { 'small' => 2.5, ], 'title' => [ - 'large' => 2, - 'medium' => 2, - 'small' => 1.75, + 'large' => 1.33, + 'medium' => 1.75, + 'small' => 1.57, ], 'label' => [ 'large' => 1.75,