Browse Source

Skatepark: Remove testimonial block pattern

Sarah Norris 3 years ago
parent
commit
d0f8230640

+ 0 - 41
skatepark/assets/theme.css

@@ -343,47 +343,6 @@
 	--wp--custom--button--spacing--padding--bottom: 0.5em;
 }
 
-.testimonial .wp-block-quote {
-	border: 0;
-	display: flex;
-	flex-direction: row-reverse;
-	gap: calc( var(--wp--custom--margin--horizontal) * 1.6);
-	margin: 0;
-	padding-left: 0;
-}
-
-@media (max-width: 599px) {
-	.testimonial .wp-block-quote {
-		flex-direction: column;
-		gap: calc( var(--wp--custom--margin--vertical) * 0.75);
-	}
-}
-
-.testimonial .wp-block-quote cite {
-	box-shadow: inset 0px 3px 0px 0px var(--wp--custom--color--primary);
-	display: inline-block;
-	flex: 1 0 0;
-	font-size: var(--wp--preset--font-size--normal);
-	font-style: normal;
-	font-weight: 500;
-	padding-top: calc( var(--wp--custom--margin--baseline) * 1.35);
-	text-align: right;
-}
-
-@media (max-width: 599px) {
-	.testimonial .wp-block-quote cite {
-		text-align: left;
-	}
-}
-
-.testimonial .wp-block-quote p, .testimonial .wp-block-quote div.block-editor-rich-text__editable {
-	flex: 0 0 66.66%;
-	font-size: calc( var(--wp--preset--font-size--huge) * 1.34);
-	font-weight: bold;
-	line-height: 115%;
-	margin-bottom: 0;
-}
-
 h1.is-style-skatepark-heading-border, h2.is-style-skatepark-heading-border, h3.is-style-skatepark-heading-border, h4.is-style-skatepark-heading-border, h5.is-style-skatepark-heading-border, h6.is-style-skatepark-heading-border {
 	display: inline-block;
 	border-top: 2px solid var(--wp--custom--color--primary);

+ 0 - 1
skatepark/inc/block-patterns.php

@@ -21,7 +21,6 @@ if ( ! function_exists( 'skatepark_register_block_patterns' ) ) :
 				'pre-footer',
 				'text-list-with-button',
 				'full-width-image-with-aside-caption',
-				'testimonial',
 				'two-columns-of-text',
 			);
 

+ 0 - 17
skatepark/inc/patterns/testimonial.php

@@ -1,17 +0,0 @@
-<?php
-/**
- * Testimonial.
- *
- * @package Skatepark
- */
-
-return array(
-	'title'      => __( 'Testimonial', 'skatepark' ),
-	'categories' => array( 'skatepark' ),
-	'content'    => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"80px","bottom":"80px"}}},"className":"testimonial"} -->
-	<div class="wp-block-group alignwide testimonial" style="padding-top:80px;padding-bottom:80px">
-	<!-- wp:quote -->
-	<blockquote class="wp-block-quote"><p>Add a testimonial from someone who loves what you do.</p><cite>Jane Doe</cite></blockquote>
-	<!-- /wp:quote --></div>
-	<!-- /wp:group -->',
-);

+ 0 - 38
skatepark/sass/block-patterns/_testimonial.scss

@@ -1,38 +0,0 @@
-.testimonial {
-	.wp-block-quote {
-		border: 0;
-		display: flex;
-		flex-direction: row-reverse;
-		gap: calc( var(--wp--custom--margin--horizontal) * 1.6);
-		margin: 0;
-		padding-left: 0;
-
-		@include break-small-only() {
-			flex-direction: column;
-			gap: calc( var(--wp--custom--margin--vertical) * 0.75);
-		}
-
-		cite {
-			box-shadow: inset 0px 3px 0px 0px var(--wp--custom--color--primary);
-			display: inline-block;
-			flex: 1 0 0;
-			font-size: var(--wp--preset--font-size--normal);
-			font-style: normal;
-			font-weight: 500;
-			padding-top: calc( var(--wp--custom--margin--baseline) * 1.35);
-			text-align: right;
-
-			@include break-small-only() {
-				text-align: left;
-			}
-		}
-
-		p, div.block-editor-rich-text__editable {
-			flex: 0 0 66.66%;
-			font-size: calc( var(--wp--preset--font-size--huge) * 1.34);
-			font-weight: bold;
-			line-height: 115%;
-			margin-bottom: 0;
-		}
-	}
-}

+ 0 - 1
skatepark/sass/theme.scss

@@ -8,7 +8,6 @@
 @import "block-styles/indented-paragraph";
 @import "block-styles/testimonial-quote";
 @import "block-patterns/pre-footer";
-@import "block-patterns/testimonial";
 @import "elements/headings";
 @import "elements/links";
 @import "templates/header";