improved centering of product thumbnails
[ryf-theme.git] / css / style.css
index 10bd6d7337041399f463666f8103dc5cd098a56c..7b89ed70a2ca3d437e88ba8879e06b7afcc6df63 100644 (file)
@@ -103,6 +103,12 @@ a { transition: 0.3s; }
 /* RYF List */
 
 
+.ryf-list-row ul {
+  padding: 0;
+  margin: 0 auto;
+  overflow: auto;
+}
+
 .ryf-list {
   float: left;
   margin: 0;
@@ -180,6 +186,30 @@ a { transition: 0.3s; }
   text-align: right;
 }
 
+@media screen and (min-width: 450px) and (max-width: 659px) {
+  .ryf-list-row ul {
+    max-width: 600px;
+  }
+  .ryf-list {
+    max-width: 300px;
+    float: none;
+    margin: 0 auto;
+  }
+}
+@media screen and (min-width: 660px) and (max-width: 767px) {
+  .ryf-list-row ul {
+    max-width: 600px;
+  }
+  .ryf-list-row {
+    margin: 0 auto;
+    max-width: 660px;
+  }
+  .ryf-list {
+    max-width: 300px;
+    float: left;
+  }
+}
+
 
 /* Vendors list */
 
@@ -192,6 +222,8 @@ a { transition: 0.3s; }
   .vendors-list {
     margin-bottom: 40px;
     list-style: none;
+
+    overflow: auto;
   }
 
   .vendors-list .views-field-field-icon {
@@ -226,6 +258,8 @@ a { transition: 0.3s; }
   .vendors-list {
     list-style: none;
     clear: left;
+
+    overflow: auto;
   }
 
   .vendors-list .views-field-field-icon {
@@ -261,6 +295,67 @@ 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;
+
+    overflow: auto;
+  }
+
+  .view-taxonomy-term .view-header .field--name-field-icon {
+    margin: 0 auto 20px auto;
+    width: 220px;
+  }
+
+  .view-taxonomy-term .view-header .field--name-description {
+    max-width: 360px;
+    margin: 0 auto;
+    padding: 0 10px;
+  }
+
+}
+
+@media screen and (min-width: 560px) {
+  .view-taxonomy-term .view-header {
+    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-description {
+    margin-left: 260px;
+  }
+
+}
+
+@media screen and (min-width: 768px) {
+  .view-taxonomy-term .view-header {
+    width: 700px;
+  }
+}
+
+
 /* Product */