X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=css%2Fstyle.css;h=43d39767972ae3516857e3fc0905acf7fe52b742;hb=de63e94381ae62f9f4515f8ee8bfd7bb7abbd02e;hp=45ee13b3e641771bc1d2d5cddb58a052bc2c6a98;hpb=658e30ec63f1630394d0a875ea5cb8ec2ab648d8;p=ryf-theme.git diff --git a/css/style.css b/css/style.css index 45ee13b..43d3976 100644 --- a/css/style.css +++ b/css/style.css @@ -13,15 +13,12 @@ a { transition: 0.3s; } 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; @@ -29,36 +26,34 @@ 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; } +.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav>li>a { +.navbar-default .navbar-nav > li > a { color: #FFF; + background: #000; border-bottom: 2px solid transparent; + padding-bottom: 10px; + margin-bottom: 5px; } -.navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav>li>a:hover { +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > li > a:hover { color: #edd400; border-bottom: 2px solid #edd400; padding-bottom: 5px; - background: #000; - margin-bottom: 5px; -} - -#block-bootstrap-main-menu { - margin-left: 200px; - width: 100%; + margin-bottom: 10px; } .page-header { @@ -71,6 +66,37 @@ 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) { + .form-inline .form-item .select-wrapper { + display: block; + } + .form-inline .form-actions { + margin-top: 21px; + } +} + /* RYF List */ .ryf-list { @@ -95,6 +121,7 @@ a { transition: 0.3s; } .ryf-list .field--type-image { width: 100%; + height: 150px; background: #fff; border-radius: 10px; display: flex; @@ -103,7 +130,6 @@ a { transition: 0.3s; } .ryf-list img { max-width: 150px; - min-height: 150px; overflow: hidden; } @@ -147,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 { @@ -154,6 +294,11 @@ a { transition: 0.3s; } color: #FFF; } +/* full page width for footer */ +.footer { + width: 100%; +} + .footer a { color: #edd400; } .footer a:hover { color: #FFF; } @@ -162,3 +307,7 @@ a { transition: 0.3s; } .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; } +#fsf-logo-footer { margin-bottom: 10px; } + +@media print { #fsf-logo-footer { filter: invert(100%) } } +