From: Andrew Engelbrecht Date: Fri, 26 Jul 2019 19:17:17 +0000 (-0400) Subject: initial css code for product views X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4d7da022a3daa6f0fdf7d3e07a24c7f1640997bf;p=ryf-theme.git initial css code for product views --- diff --git a/css/style.css b/css/style.css index 2c6da80..f5f277f 100644 --- a/css/style.css +++ b/css/style.css @@ -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 {