add some padding in vendors list on small screens
[ryf-theme.git] / css / style.css
index 5dbe19d84aea0efb0946e52279c91e79bb58d59d..b174b39f03f9dcc1431d5328e70b5d4e281e655c 100644 (file)
@@ -86,8 +86,10 @@ a { transition: 0.3s; }
   .navbar-nav { margin-top: 40px; }
 }
 
+
 /* Selectors */
 
+
 @media screen and (min-width: 768px) {
   .form-inline .form-item .select-wrapper {
     display: block;
@@ -97,8 +99,16 @@ a { transition: 0.3s; }
   }
 }
 
+
 /* RYF List */
 
+
+.ryf-list-row ul {
+  padding: 0;
+  margin: 0 auto;
+  overflow: auto;
+}
+
 .ryf-list {
   float: left;
   margin: 0;
@@ -120,16 +130,20 @@ a { transition: 0.3s; }
 }
 
 .ryf-list .field--type-image {
-  width: 100%;
+  width: 150px;
+  height: 150px;
   background: #fff;
   border-radius: 10px;
   display: flex;
-  justify-content: center;
+  align-items: center;
+}
+
+.ryf-list .field--name-field-image {
+  margin: 0 auto;
 }
 
 .ryf-list img {
   max-width: 150px;
-  min-height: 150px;
   overflow: hidden;
 }
 
@@ -172,6 +186,116 @@ a { transition: 0.3s; }
   text-align: right;
 }
 
+.feed-icons {
+  clear: both;
+}
+
+@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 */
+
+
+.vendors-list-row ul {
+  padding: 10px;
+  margin: 0 auto;
+  overflow: auto;
+}
+
+@media screen and (max-width: 767px) {
+  .vendors-list-row {
+    margin: 0px auto;
+  }
+
+  .vendors-list {
+    margin-bottom: 40px;
+    list-style: none;
+
+    overflow: auto;
+  }
+
+  .vendors-list .views-field-field-icon {
+    width: 220px;
+
+    margin: 0px auto 20px auto;
+  }
+
+  .vendors-list .views-field-field-icon img {
+    margin: 0 auto;
+  }
+
+  .vendors-list .views-field-name, .vendors-list .views-field-description__value {
+    max-width: 300px;
+    margin: 0 auto 10px auto;
+  }
+
+  .vendors-list .views-field-name {
+    font-weight: bold;
+    font-size: 18px;
+    text-align: center;
+  }
+
+}
+
+@media screen and (min-width: 768px) {
+  .vendors-list-row {
+    width: 600px;
+    margin: 0px auto;
+  }
+
+  .vendors-list {
+    list-style: none;
+    clear: left;
+
+    overflow: auto;
+  }
+
+  .vendors-list .views-field-field-icon {
+    width: 220px;
+    height: 220px;
+
+    margin-bottom: 40px;
+
+    float: left;
+  }
+
+  .vendors-list .views-field-field-icon img {
+    margin: 0 auto;
+  }
+
+  .vendors-list .views-field-name, .vendors-list .views-field-description__value {
+    margin-left: 300px;
+  }
+
+  .vendors-list .views-field-name {
+    margin-bottom: 10px;
+    font-weight: bold;
+    font-size: 18px;
+  }
+}
+
 
 /* Sidebars */
 
@@ -181,8 +305,66 @@ 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;
+}
+
+@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 {
+    max-width: 700px;
+  }
+}
+
+
 /* Product */
 
+
 @media screen and (max-width: 767px) {
   .page-node-type-product .product {
     max-width: 382px;
@@ -237,6 +419,30 @@ a { transition: 0.3s; }
   border-radius: 10px;
 }
 
+.page-node-type-product .product .field--name-field-categories .field--item {
+  display: list-item;
+  list-style: circle;
+  margin-left: 15px;
+}
+
+/* product page colors */
+.page-node-type-product .product .field--name-field-image {
+  background-color: #fff;
+  border-color: #aaa;
+}
+.page-node-type-product .product .field--name-field-extra-images {
+  background-color: #eee;
+  border-color: #aaa;
+}
+.page-node-type-product .product .field--name-field-categories {
+  background-color: #aef;
+  border-color: #0ad;
+}
+.page-node-type-product .product .field--name-field-vendor {
+  background-color: #afb;
+  border-color: #1a2;
+}
+
 @media screen and (max-width: 767px) {
   .page-node-type-product .product .field--name-field-extra-images {
     margin: 10px auto 0px auto;
@@ -289,6 +495,7 @@ a { transition: 0.3s; }
 
 /* Footer */
 
+
 .footer {
   background: #333;
   color: #FFF;