be more specific for search results elements
[ryf-theme.git] / css / style.css
index 84c38ea6dc4f433a1c084d213bc90eb467543893..6b4166f381cee15ab6ba03d9ae09b7446e1f247e 100644 (file)
@@ -7,6 +7,26 @@ body { margin: 0; min-width: 320px; }
 
 a { transition: 0.3s; }
 
+
+/* etcetera */
+
+
+.feed-icons,
+.more-link {
+  margin-top: 15px;
+  clear: both;
+}
+.more-link {
+  font-weight: bold;
+}
+
+.block-views {
+  margin-top: 20px;
+}
+
+/* Navbar */
+
+
 .navbar-default {
   background: #000;
   color: #FFF;
@@ -18,7 +38,8 @@ a { transition: 0.3s; }
   min-height: 100px;
 }
 
-.navbar-header, #navbar-collapse {
+.navbar-header,
+#navbar-collapse {
   max-width: 1150px;
   padding: 0;
   margin: 0 auto;
@@ -103,6 +124,12 @@ a { transition: 0.3s; }
 /* RYF List */
 
 
+.ryf-list-row {
+  padding: 0;
+  margin: 0 auto;
+  overflow: auto;
+}
+
 .ryf-list {
   float: left;
   margin: 0;
@@ -133,11 +160,13 @@ a { transition: 0.3s; }
 }
 
 .ryf-list .field--name-field-image {
-  margin: 0 auto;
+  margin: 0 auto 10px auto;
 }
 
 .ryf-list img {
   max-width: 150px;
+  max-height: 150px;
+  object-fit: contain;
   overflow: hidden;
 }
 
@@ -181,6 +210,9 @@ a { transition: 0.3s; }
 }
 
 @media screen and (min-width: 450px) and (max-width: 659px) {
+  .ryf-list-row {
+    max-width: 600px;
+  }
   .ryf-list {
     max-width: 300px;
     float: none;
@@ -188,6 +220,9 @@ a { transition: 0.3s; }
   }
 }
 @media screen and (min-width: 660px) and (max-width: 767px) {
+  .ryf-list-row {
+    max-width: 600px;
+  }
   .ryf-list-row {
     margin: 0 auto;
     max-width: 660px;
@@ -202,6 +237,12 @@ a { transition: 0.3s; }
 /* Vendors list */
 
 
+.vendors-list-row {
+  padding: 10px;
+  margin: 0 auto;
+  overflow: auto;
+}
+
 @media screen and (max-width: 767px) {
   .vendors-list-row {
     margin: 0px auto;
@@ -224,7 +265,8 @@ a { transition: 0.3s; }
     margin: 0 auto;
   }
 
-  .vendors-list .views-field-name, .vendors-list .views-field-description__value {
+  .vendors-list .views-field-name,
+  .vendors-list .views-field-description__value {
     max-width: 300px;
     margin: 0 auto 10px auto;
   }
@@ -263,7 +305,8 @@ a { transition: 0.3s; }
     margin: 0 auto;
   }
 
-  .vendors-list .views-field-name, .vendors-list .views-field-description__value {
+  .vendors-list .views-field-name,
+  .vendors-list .views-field-description__value {
     margin-left: 300px;
   }
 
@@ -286,6 +329,14 @@ 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;
@@ -298,22 +349,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 +370,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;
+    max-width: 700px;
   }
 }
 
@@ -402,13 +410,14 @@ a { transition: 0.3s; }
 .page-node-type-product .product .field--name-field-image {
   padding: 10px;
 
-  display: flex;
-  align-items: center;
-
   border: 1px solid #888;
   border-radius: 10px;
 }
 
+.page-node-type-product .product .field--name-field-image img {
+  margin: 0 auto;
+}
+
 .page-node-type-product .product .field--name-field-extra-images {
   padding: 5px;
 
@@ -425,27 +434,59 @@ a { transition: 0.3s; }
   padding: 5px;
 }
 
-.page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
+.page-node-type-product .product .field--name-field-categories,
+.page-node-type-product .product .field--name-field-vendor {
   margin: 10px 10px 20px 0px;
   padding: 10px;
   border: 1px solid #888;
   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: #f3f3f3;
+  border-color: #aaa;
+}
+.page-node-type-product .product .field--name-field-categories {
+  background-color: #def;
+  border-color: #8ad;
+}
+.page-node-type-product .product .field--name-field-vendor {
+  background-color: #dfe;
+  border-color: #8da;
+}
+
 @media screen and (max-width: 767px) {
   .page-node-type-product .product .field--name-field-extra-images {
     margin: 10px auto 0px auto;
   }
 
-  .page-node-type-product .product .field--name-body, .page-node-type-product .product .field--name-field-vendor-product-link, .page-node-type-product .product .field--name-field-certification-details, .page-node-type-product .product .field--name-field-certification-date, .page-node-type-product .product .field--name-field-source-code-links {
+  .page-node-type-product .product .field--name-body,
+  .page-node-type-product .product .field--name-field-vendor-product-link,
+  .page-node-type-product .product .field--name-field-certification-details,
+  .page-node-type-product .product .field--name-field-certification-date,
+  .page-node-type-product .product .field--name-field-source-code-links {
     margin-bottom: 20px;
   }
 
-  .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
+  .page-node-type-product .product .field--name-field-categories,
+  .page-node-type-product .product .field--name-field-vendor {
+    margin-bottom: 0px;
     float: left;
   }
 
   .page-node-type-product .product .field--name-body {
+    padding-top: 20px;
     clear: both;
   }
 }
@@ -465,7 +506,11 @@ a { transition: 0.3s; }
     margin-top: 10px;
   }
 
-  .page-node-type-product .product .field--name-body, .page-node-type-product .product .field--name-field-vendor-product-link, .page-node-type-product .product .field--name-field-certification-details, .page-node-type-product .product .field--name-field-certification-date, .page-node-type-product .product .field--name-field-source-code-links {
+  .page-node-type-product .product .field--name-body,
+  .page-node-type-product .product .field--name-field-vendor-product-link,
+  .page-node-type-product .product .field--name-field-certification-details,
+  .page-node-type-product .product .field--name-field-certification-date,
+  .page-node-type-product .product .field--name-field-source-code-links {
     margin-left: 400px;
     margin-bottom: 20px;
   }
@@ -482,6 +527,118 @@ a { transition: 0.3s; }
 }
 
 
+/* News and Product Announcements */
+
+
+.page-node-type-product-announcement .page-header,
+.page-node-type-product-announcement .tabs--primary,
+.page-node-type-product-announcement .region-content,
+.page-node-type-general-news-item .page-header,
+.page-node-type-general-news-item .tabs--primary,
+.page-node-type-general-news-item .region-content,
+.page-node-type-page .page-header,
+.page-node-type-page .tabs--primary,
+.page-node-type-page .region-content,
+.path-news .page-header,
+.path-news .tabs--primary,
+.path-news .region-content {
+  max-width: 800px;
+  margin: 0 auto;
+}
+
+/* don't apply above max-width rule to main page */
+.path-frontpage .page-header,
+.path-frontpage .tabs--primary,
+.path-frontpage .region-content {
+  max-width: 2000px; /* high number beyond the max */
+}
+
+.page-node-type-page .page-header {
+  margin-bottom: 20px;
+}
+
+.path-news h2,
+.block-views-blocknews-news-block article h2 {
+  font-size: 25px;
+}
+
+.page-node-type-product-announcement .author,
+.page-node-type-general-news-item .author {
+  margin: 10px 0 20px 0;
+  font-style: oblique;
+}
+
+.page-node-type-product-announcement .field--name-body,
+.page-node-type-general-news-item .field--name-body {
+  margin-bottom: 20px;
+}
+
+.page-node-type-product-announcement .field--name-field-external-news-link,
+.page-node-type-general-news-item .field--name-field-external-news-link {
+  margin-bottom: 20px;
+}
+
+.page-node-type-product-announcement .field--name-field-vendor-page,
+.page-node-type-product-announcement .field--name-field-announced-products {
+  margin-bottom: 20px;
+}
+
+
+/* Search Results */
+
+
+@media screen and (max-width: 600px) {
+  .path-search .region-content > ol {
+    width: 300px;
+  }
+}
+@media screen and (min-width: 601px) and (max-width 1000px) {
+  .path-search .region-content > ol {
+    width: 560px;
+  }
+}
+@media screen and (min-width: 1001px) {
+  .path-search .region-content > ol {
+    width: 900px;
+  }
+}
+
+.path-search .region-content > ol {
+  margin: 0 auto;
+  padding-left: 0;
+  overflow: auto;
+}
+
+.path-search .region-content > ol li {
+  width: 280px;
+  height: 280px;
+  margin: 0px auto;
+  padding: 10px;
+
+  float: left;
+
+  list-style: none;
+  overflow: hidden;
+}
+
+.path-search .region-content > ol li h3 {
+  text-align: center;
+}
+
+.path-search .region-content > ol li .search-image {
+  width: 100px;
+  height: 100px;
+
+  margin: 0 auto;
+
+  display: flex;
+  align-items: center;
+}
+
+.path-search .region-content > ol li img {
+}
+
+
 /* Footer */