From a2548ca738d0ba60968e711314c5825ca83226d2 Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Thu, 12 Dec 2024 16:09:36 +0000 Subject: [PATCH] Classic Theme Helper : Add testimonials-shortcode.css file to package (#40592) --- .../add-testimonial-shortcode-css-package | 4 + .../css/testimonial-shortcode.css | 102 ++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 projects/packages/classic-theme-helper/changelog/add-testimonial-shortcode-css-package create mode 100644 projects/packages/classic-theme-helper/src/custom-post-types/css/testimonial-shortcode.css diff --git a/projects/packages/classic-theme-helper/changelog/add-testimonial-shortcode-css-package b/projects/packages/classic-theme-helper/changelog/add-testimonial-shortcode-css-package new file mode 100644 index 0000000000000..2458f5419f19d --- /dev/null +++ b/projects/packages/classic-theme-helper/changelog/add-testimonial-shortcode-css-package @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Testimonials: Include shortcode CSS file. diff --git a/projects/packages/classic-theme-helper/src/custom-post-types/css/testimonial-shortcode.css b/projects/packages/classic-theme-helper/src/custom-post-types/css/testimonial-shortcode.css new file mode 100644 index 0000000000000..57a35bc892c18 --- /dev/null +++ b/projects/packages/classic-theme-helper/src/custom-post-types/css/testimonial-shortcode.css @@ -0,0 +1,102 @@ +.jetpack-testimonial-shortcode { + clear: both; + margin: 0; + overflow: hidden; + padding: 0; +} + +.testimonial-entry { + float: left; + margin: 0 0 3em; + padding: 0; + width: 100%; +} + +/* Column setting */ +.testimonial-entry-column-1 { + width: 100%; +} + +.testimonial-entry-column-2 { + margin-right: 4%; + width: 48%; +} + +.testimonial-entry-column-3 { + margin-right: 3.5%; + width: 31%; +} + +.testimonial-entry-column-4 { + margin-right: 3%; + width: 22%; +} + +.testimonial-entry-column-5 { + margin-right: 2.5%; + width: 18%; +} + +.testimonial-entry-column-6 { + margin-right: 2%; + width: 15%; +} +.testimonial-entry-first-item-row { + clear: both; +} +.testimonial-entry-last-item-row { + margin-right: 0; +} + +@media screen and (max-width:768px) { + .testimonial-entry-mobile-first-item-row{ + margin-right: 4%; + width: 48%; + clear:both; + } + .testimonial-entry-first-item-row { + clear:none; + } + .testimonial-entry-mobile-last-item-row{ + width: 48%; + margin-right: 0; + } +} + +.testimonial-featured-image { + padding: 0; + margin: 0; +} + +.testimonial-featured-image img { + border: 0; + height: auto; + max-width: 100%; + vertical-align: middle; +} + +.testimonial-entry-title { + font-weight: 700; + margin: 0; + padding: 0; + display: block; +} + +.testimonial-featured-image + .testimonial-entry-title { + margin-top: 1.0em; +} + +.testimonial-entry-title a { + border: 0; + text-decoration: none; +} + +/* Entry Content */ +.testimonial-entry-content { + margin: 0.75em 0; + padding: 0; +} + +.testimonial-entry-content > :last-child { + margin: 0; +} \ No newline at end of file