Browse Source

Skatepark: Use flex at smaller resolutions

Rather than display block
Sarah Norris 4 years ago
parent
commit
68cb53b0ca
2 changed files with 6 additions and 6 deletions
  1. 3 3
      skatepark/assets/theme.css
  2. 3 3
      skatepark/sass/block-patterns/_testimonial.scss

+ 3 - 3
skatepark/assets/theme.css

@@ -188,7 +188,8 @@
 
 @media (max-width: 599px) {
 	.testimonial .wp-block-quote {
-		display: block;
+		flex-direction: column;
+		gap: calc( var(--wp--custom--margin--vertical) * 0.75);
 	}
 }
 
@@ -199,14 +200,13 @@
 	font-size: var(--wp--preset--font-size--normal);
 	font-style: normal;
 	font-weight: 500;
-	margin-right: 0.65em;
 	padding-top: calc( var(--wp--custom--margin--baseline) * 1.35);
 	text-align: right;
 }
 
 @media (max-width: 599px) {
 	.testimonial .wp-block-quote cite {
-		margin-top: var(--wp--custom--margin--baseline);
+		text-align: left;
 	}
 }
 

+ 3 - 3
skatepark/sass/block-patterns/_testimonial.scss

@@ -8,7 +8,8 @@
 		padding-left: 0;
 
 		@include break-small-only() {
-			display: block;
+			flex-direction: column;
+			gap: calc( var(--wp--custom--margin--vertical) * 0.75);
 		}
 
 		cite {
@@ -18,12 +19,11 @@
 			font-size: var(--wp--preset--font-size--normal);
 			font-style: normal;
 			font-weight: 500;
-			margin-right: 0.65em;
 			padding-top: calc( var(--wp--custom--margin--baseline) * 1.35);
 			text-align: right;
 
 			@include break-small-only() {
-				margin-top: var(--wp--custom--margin--baseline);
+				text-align: left;
 			}
 		}