瀏覽代碼

Skatepark: Use existing class for text indent

Sarah Norris 3 年之前
父節點
當前提交
d87fb1d665

+ 0 - 4
skatepark/assets/theme.css

@@ -356,10 +356,6 @@
 	margin: 0 0 calc( var(--wp--custom--margin--vertical) * 0.89) 0;
 }
 
-.paragraph-with-quote div:nth-child(2) > p:first-of-type {
-	text-indent: 9.15em;
-}
-
 .paragraph-with-quote div:nth-child(2) p {
 	margin: calc( var(--wp--custom--margin--baseline) * 1.55) 0 0 0;
 }

+ 2 - 2
skatepark/inc/patterns/paragraph-with-quote.php

@@ -18,8 +18,8 @@ return array(
 	<h4>' . esc_html__( 'Why come to Skatepark?', 'skatepark' ) . '</h4>
 	<!-- /wp:heading -->
 	
-	<!-- wp:paragraph -->
-	<p>' . esc_html__( 'Skateboarding can teach people discipline, patience, and resiliency. It’s a great sport for kids with a lot of energy! We’ll help build up some structure and support in your life, all while you meet new people and have a ton of fun learning how to skateboard.', 'skatepark' ) . '</p>
+	<!-- wp:paragraph {"className":"is-style-indented-paragraph"} -->
+	<p class="is-style-indented-paragraph">' . esc_html__( 'Skateboarding can teach people discipline, patience, and resiliency. It’s a great sport for kids with a lot of energy! We’ll help build up some structure and support in your life, all while you meet new people and have a ton of fun learning how to skateboard.', 'skatepark' ) . '</p>
 	<!-- /wp:paragraph -->
 	
 	<!-- wp:paragraph -->

+ 1 - 5
skatepark/sass/block-patterns/_paragraph-with-quote.scss

@@ -4,11 +4,7 @@
     }
 
     div:nth-child(2) {    
-        > p:first-of-type {
-            text-indent: 9.15em;
-        }
-
-        p{
+        p {
             margin: calc( var(--wp--custom--margin--baseline) * 1.55 ) 0 0 0;
         }
     }