generlized shared code between screen sizes
[ryf-theme.git] / css / style.css
index 1bd999d15549f78c7a082d5fca180d526606bcb9..5dbe19d84aea0efb0946e52279c91e79bb58d59d 100644 (file)
@@ -19,7 +19,6 @@ a { transition: 0.3s; }
 }
 
 .navbar-header, #navbar-collapse {
-  width: 95%;
   max-width: 1150px;
   padding: 0;
   margin: 0 auto;
@@ -71,6 +70,7 @@ a { transition: 0.3s; }
   .logo img { margin-left: 50px; }
   #block-ryf-main-menu .navbar-nav { margin-left: 230px; }
 }
+
 @media screen and (min-width: 600px) and (max-width: 767px) {
   .logo img { margin-left: 100px; }
   #block-ryf-main-menu .navbar-nav { margin-left: 280px; }
@@ -173,6 +173,120 @@ a { transition: 0.3s; }
 }
 
 
+/* Sidebars */
+
+
+@media screen and (max-width: 767px) {
+  .path-products #block-views-block-categories-categories-block { display: none; }
+}
+
+
+/* Product */
+
+@media screen and (max-width: 767px) {
+  .page-node-type-product .product {
+    max-width: 382px;
+    margin: 0 auto;
+  }
+}
+
+@media screen and (min-width: 768px) and (max-width: 991px) {
+  .page-node-type-product .product {
+    width: 700px;
+    margin: 0 auto;
+  }
+}
+
+@media screen and (min-width: 992px) {
+  .page-node-type-product .product {
+    width: 800px;
+    margin: 0 auto;
+  }
+}
+
+.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-extra-images {
+  padding: 5px;
+
+  display: flex;
+  align-items: center;
+
+  border: 1px solid #888;
+  border-radius: 10px;
+}
+
+.page-node-type-product .product .field--name-field-extra-images .field--item {
+  display: inline-block;
+  margin: auto;
+  padding: 5px;
+}
+
+.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;
+}
+
+@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 {
+    margin-bottom: 20px;
+  }
+
+  .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
+    float: left;
+  }
+
+  .page-node-type-product .product .field--name-body {
+    clear: both;
+  }
+}
+
+
+@media screen and (min-width: 768px) {
+  .page-node-type-product .product .field--name-field-image {
+    width: 382px;
+    float: left;
+  }
+
+  .page-node-type-product .product .field--name-field-extra-images {
+    float: left;
+    clear: left;
+
+    width: 382px;
+    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 {
+    margin-left: 400px;
+    margin-bottom: 20px;
+  }
+
+  .page-node-type-product .product .field--name-field-categories {
+    float: left;
+    clear: left;
+  }
+
+  .page-node-type-product .product .field--name-field-vendor {
+    float: left;
+  }
+
+}
+
+
 /* Footer */
 
 .footer {
@@ -182,9 +296,6 @@ a { transition: 0.3s; }
 
 /* full page width for footer */
 .footer {
-  position: absolute;
-  left: 0;
-  right: 0;
   width: 100%;
 }
 
@@ -198,3 +309,5 @@ a { transition: 0.3s; }
 
 #fsf-logo-footer { margin-bottom: 10px; }
 
+@media print { #fsf-logo-footer { filter: invert(100%) } }
+