X-Git-Url: https://vcs.fsf.org/?p=ryf-theme.git;a=blobdiff_plain;f=css%2Fstyle.css;h=b8c3d450be58e1c557f127a56e86190c37a8863a;hp=3de675c0de6d23e82ee27d1be7a6ba9f76013ecf;hb=21d9e444c80888b12154fc7bfa9c02399fc0b07f;hpb=06d8ab9ff76663fcf7fefd7175f86564f805a10e diff --git a/css/style.css b/css/style.css index 3de675c..b8c3d45 100644 --- a/css/style.css +++ b/css/style.css @@ -7,25 +7,18 @@ body { margin: 0; min-width: 320px; } a { transition: 0.3s; } -@media screen and (max-width: 767px) { - .logo img { width: 150px; } -} - .navbar-default { background: #000; color: #FFF; border: none; border-radius: 0px; box-sizing: content-box; - display: flex; - flex-direction: column-reverse; align-items: center; margin-bottom: 100px; min-height: 100px; } .navbar-header, #navbar-collapse { - width: 95%; max-width: 1150px; padding: 0; margin: 0 auto; @@ -33,14 +26,14 @@ a { transition: 0.3s; } overflow: hidden; } -.navbar-default .navbar-toggle { z-index: 999; } +.navbar-default .navbar-toggle { display: none; } .navbar-header { position: absolute; top: 5px; } -.navbar-brand { text-indent: -1000px; } +.navbar-brand { display: none; } #block-ryf-main-menu .navbar-nav { margin-left: 180px; } @@ -63,11 +56,6 @@ a { transition: 0.3s; } margin-bottom: 10px; } -#block-bootstrap-main-menu { - margin-left: 200px; - width: 100%; -} - .page-header { border-bottom: 2px solid #000; font-size: 2em; @@ -78,6 +66,26 @@ a { transition: 0.3s; } float: right; } +@media screen and (min-width: 520px) and (max-width: 599px) { + .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; } +} + +@media screen and (max-width: 767px) { + .logo img { height: 150px; margin-top: 25px; } + .navbar-default { min-height: 230px; margin-bottom: 30px; } + #block-ryf-main-menu .navbar-nav { max-width: 130px; } +} + +@media screen and (min-width: 768px) { + .navbar-nav { margin-top: 40px; } +} + /* Selectors */ @media screen and (min-width: 768px) { @@ -165,6 +173,139 @@ 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 (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; + } +} + +@media screen and (max-width: 767px) { + .page-node-type-product .product { + max-width: 382px; + 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 { + margin: 10px auto 0px auto; + 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-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; + margin: 10px 10px 20px 0px; + padding: 10px; + border: 1px solid #888; + border-radius: 10px; + } + + .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; + padding: 10px; + + display: flex; + align-items: center; + + float: left; + + border: 1px solid #888; + border-radius: 10px; + } + + .page-node-type-product .product .field--name-field-extra-images { + float: left; + clear: left; + + width: 382px; + padding: 5px; + 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: auto; + padding: 5px; + } + + .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 20px 0px; + padding: 10px; + border: 1px solid #888; + border-radius: 10px; + } +} + + /* Footer */ .footer { @@ -174,9 +315,6 @@ a { transition: 0.3s; } /* full page width for footer */ .footer { - position: absolute; - left: 0; - right: 0; width: 100%; } @@ -190,3 +328,5 @@ a { transition: 0.3s; } #fsf-logo-footer { margin-bottom: 10px; } +@media print { #fsf-logo-footer { filter: invert(100%) } } +