From 5df3859d29ef97688e7d7833940b629db87674eb Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 29 Jul 2019 16:42:41 -0400 Subject: [PATCH] condensed some duplicate code --- css/style.css | 57 ++++++++++++--------------------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/css/style.css b/css/style.css index 84c38ea..578b689 100644 --- a/css/style.css +++ b/css/style.css @@ -286,6 +286,18 @@ a { transition: 0.3s; } /* Vendor and Category taxonomy term pages */ +.view-taxonomy-term .view-header .field--name-field-icon img { + margin: 0 auto; +} + +.view-filters { + clear: left; +} + +.feed-icons { + clear: both; +} + @media screen and (max-width: 559px) { .view-taxonomy-term .view-header { margin: 0 auto 40px auto; @@ -298,22 +310,15 @@ a { transition: 0.3s; } width: 220px; } - .view-taxonomy-term .view-header .field--name-field-icon img { - margin: 0 auto; - } - .view-taxonomy-term .view-header .field--name-description { max-width: 360px; margin: 0 auto; padding: 0 10px; } - .feed-icons { - clear: both; - } } -@media screen and (min-width: 560px) and (max-width: 767px) { +@media screen and (min-width: 560px) { .view-taxonomy-term .view-header { margin: 0 0 40px 0; @@ -326,51 +331,15 @@ a { transition: 0.3s; } float: left; } - .view-taxonomy-term .view-header .field--name-field-icon img { - margin: 0 auto; - } - .view-taxonomy-term .view-header .field--name-description { margin-left: 260px; } - .view-filters { - clear: left; - } - - .feed-icons { - clear: both; - } } @media screen and (min-width: 768px) { .view-taxonomy-term .view-header { width: 700px; - margin: 0 0 40px 0; - - overflow: auto; - } - - .view-taxonomy-term .view-header .field--name-field-icon { - width: 220px; - - float: left; - } - - .view-taxonomy-term .view-header .field--name-field-icon img { - margin: 0 auto; - } - - .view-taxonomy-term .view-header .field--name-description { - margin-left: 260px; - } - - .view-filters { - clear: left; - } - - .feed-icons { - clear: both; } } -- 2.25.1