initial css code for product views
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 26 Jul 2019 19:17:17 +0000 (15:17 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 26 Jul 2019 19:17:17 +0000 (15:17 -0400)
css/style.css

index 2c6da805ae5b5270bd98782a7efaa9a11f3447e2..f5f277fde9356002d5d9a8fa1441ce70382d49ab 100644 (file)
@@ -181,6 +181,76 @@ a { transition: 0.3s; }
 }
 
 
 }
 
 
+/* Product */
+
+.page-node-type-product .product {
+  width: 800px;
+  margin: 0 auto;
+}
+
+.page-node-type-product .product .field--name-field-image {
+  width: 380px;
+  float: left;
+
+  height: 380px;
+  width: 380px;
+  margin-top: 20px;
+  display: flex;
+  align-items: center;
+
+  border: 1px solid #888;
+  border-radius: 10px;
+}
+
+.page-node-type-product .product .field--name-field-image img {
+  margin-left: 10px;
+}
+
+.page-node-type-product .product .field--name-field-image {
+  margin: auto;
+}
+
+.page-node-type-product .product .field--name-field-extra-images {
+  float: left;
+  clear: left;
+
+  height: 100px;
+  width: 380px;
+  margin-top: 10px;
+  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: 5px 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-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;
+}
+
+.page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
+  margin: 10px 10px 10px 0px;
+  padding: 10px;
+  border: 1px solid #888;
+  border-radius: 10px;
+}
+
+
 /* Footer */
 
 .footer {
 /* Footer */
 
 .footer {