X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=css%2Fstyle.css;h=a722bb1ba4daf5f250e30db795146b02fbb89f18;hb=12b958fcc78fa5a28dc0125114f3b97d6e2fe83f;hp=d314151e4d564456cfc3b63225208c639abf6204;hpb=092ce1929878c0c25fa240bf472d79ed7d672ce2;p=ryf-theme.git diff --git a/css/style.css b/css/style.css index d314151..a722bb1 100644 --- a/css/style.css +++ b/css/style.css @@ -3,32 +3,104 @@ * your custom CSS modifications here. */ +/* Lato font */ + +@font-face { + font-family: "Lato"; + src: url("../fonts/Lato-Regular.ttf") format('truetype'); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: "Lato"; + src: url('../fonts/Lato-RegularItalic.ttf') format('truetype'); + font-weight: 400; + font-style: italic; +} + +@font-face { + font-family: "Lato"; + src: url('../fonts/Lato-Bold.ttf') format('truetype'); + font-weight: 700; + font-style: normal; +} + + +/* Universal */ + body { - font-family: "FreeSans", Helvetica, Arial, sans-serif; + font-family: "Lato", Helvetica, Arial, sans-serif; margin: 0; min-width: 320px; } a { transition: 0.3s; } +section { position: relative; } /* etcetera */ -.region-content { min-height: 300px; } +.visually-hidden.focusable:focus { + position: absolute !important; + background: #000; + color: #FFF; + padding: 0.5em; + z-index: 9999; +} + +.main-container { min-height: 50vh; } h2.block-title { - background: #000; + background: #337AB7; color: #FFF; - padding: 5px; + padding: 0.5em; } -.feed-icons, -.more-link { - margin-top: 15px; - clear: both; + + +h2.block-title a:visited, +h2.block-title a:focus, +h2.block-title a:active, +h2.block-title a { + color: #FFF; +} + +h2.block-title a:hover { + color: #FFF; +} + +.feed-icons a { + background: url('../images/rss.svg') top left no-repeat; + background-size: contain; + height: 20px; + overflow: hidden; + display: block; + text-indent: 25px; + font-size: 1em; + width: fit-content; + margin-top: 1em; + float: right; +} + +.view-display-id-news_page .feed-icons a { + margin-top: -30px; } + .more-link { + border: 1px solid #ddd; + border-radius: .5em; + padding: .5em; + text-align: center; + width: 50%; + margin: 0 auto; font-weight: bold; + margin-top: 2em; +} + +.more-link:hover { + background: #EEE; + color: #000; } .block-views { @@ -37,7 +109,6 @@ h2.block-title { /* Navbar */ - .navbar-default { background: #000; color: #FFF; @@ -45,7 +116,6 @@ h2.block-title { border-radius: 0px; box-sizing: content-box; align-items: center; - margin-bottom: 100px; min-height: 100px; } @@ -67,18 +137,15 @@ h2.block-title { .navbar-brand { display: none; } -#block-ryf-main-menu .navbar-nav { margin-left: 180px; } +#block-ryf-main-menu .navbar-nav { margin-left: 195px; } .navbar-default .navbar-nav > li > a:focus { outline: none; } -.navbar-default .navbar-nav > li > a, -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > li > a:link, -.navbar-default .navbar-nav > .active > a:link, -.navbar-default .navbar-nav > li > a:visited, -.navbar-default .navbar-nav > .active > a:visited { +.navbar-default .navbar-nav > li > a, +.navbar-default .navbar-nav > li > a:link, +.navbar-default .navbar-nav > li > a:visited { color: #FFF; background: #000; border-bottom: 2px solid transparent; @@ -86,13 +153,19 @@ h2.block-title { margin-bottom: 5px; } -.navbar-default .navbar-nav > li > a:hover, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > li > a:active, -.navbar-default .navbar-nav > .active > a:active { - color: #337AB7; +.navbar-default .navbar-nav > li > a:focus, +.navbar-default .navbar-nav > li.active > a:hover, +.navbar-default .navbar-nav > li > a:hover { + color: #edd400; + background: #000; + border-bottom: 2px solid #edd400; + padding-bottom: 5px; + margin-bottom: 10px; +} + +.navbar-default .navbar-nav > li > a.is-active { + border-bottom: 2px solid #FFF; background: #000; - border-bottom: 2px solid #337AB7; padding-bottom: 5px; margin-bottom: 10px; } @@ -107,24 +180,54 @@ h2.block-title { 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; } +nav .search-block-form { + position: absolute; + width: 300px; + right: 10%; + top: 30px; +} + +/* + * @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; } + * } + * + */ + +.region-navigation-collapsible .search-block-form { + float: right; + width: 210px; } @media screen and (min-width: 768px) { - .navbar-nav { margin-top: 40px; } + + .navbar-default { + margin-bottom: 100px; + } + .navbar-nav { + margin-top: 40px; + } + .region-header .breadcrumb { + position: absolute; + top: -70px; + left: 200px; + background: none; + } + .region-navigation-collapsible .search-block-form { + padding-top: 50px; + } } @@ -140,6 +243,36 @@ h2.block-title { } } +/* News */ + +.view-news article { + padding: 0.5em; + margin: 0 10%; +} + +.view-news p { + line-height: 1.5em; + font-size: 1.1em; +} + +.view-news .node-readmore { + padding: 0.5em 1em; + border: 1px solid #DDD; + border-radius: 0.5em; + float: right; +} + +.view-news .node-readmore:hover { + background: #EEE; + color: #000; +} + +.view-news footer { + color: #999; + padding: 0.5em; + text-align: right; +} + /* RYF List */ @@ -154,12 +287,12 @@ h2.block-title { float: left; margin: 0; padding: 0.5em; - position:relative; + position: relative; list-style: none; } .ryf-list article { - border: 1px solid #ececec; + border: 1px solid #bbb; border-radius: 5px; padding: 1em; box-shadow: 2px 2px 5px #ddd; @@ -171,62 +304,95 @@ h2.block-title { } .ryf-list .field--type-image { - width: 150px; - height: 150px; + border: 1px solid #ddd; + border-left: 0px; + border-right: 0px; background: #fff; - border-radius: 10px; - display: flex; - align-items: center; -} - -.ryf-list .field--name-field-image { - margin: 0 auto 10px auto; -} - -.ryf-list img { - max-width: 150px; - max-height: 150px; - object-fit: contain; + height: 150px; + width: 100%; overflow: hidden; + border-radius: 5px; + position: relative; + text-align: center; } -.ryf-list img:hover { - border-radius: 0; +.ryf-list img { + width: auto; + height: 100%; + margin: auto 0; + display: inline-block; } .ryf-list h2 { text-align: left; font-size: 1.5em; - font-weight: 500; line-height: 1.2em; margin: 0; padding: 0; - padding-bottom: 1em; +} + +.ryf-list .field--name-body { + display: block; + border-radius: 5px; + width: 100%; + height: 0px; + margin-top: 0px; + z-index: 99; + position: relative; + background: #00000088; + color: white; + padding: 0em; + transition: 0.2s; + cursor: default; + overflow: hidden; +} + +.ryf-list:hover .field--name-body { + height: 100px; + margin-top: -100px; + z-index: 99; + position: relative; + padding: 0.3em; + transition: 0.3s; } .ryf-list a { color: #337AB7; - text-decoration: none; } .ryf-list a:hover { color: #000; } -.ryf-list .node-readmore, -.ryf-list .tags, -.ryf-list .supplier { - width: 100%; - float: left; +.ryf-list .list-inline li { font-size: 0.9em; - border-top: 1px solid #ccc4c4; + border: 1px solid #ddd; + width: auto; + border-radius: 0.5em; + padding: 0.3em 0.5em; margin-top: 5px; - padding-top: 5px; - color: #afadad; + float: right; } -.ryf-list .node-readmore { - text-align: right; +.ryf-list h2 a { + display: inline-block; + height: 55px; + overflow: hidden; + position: relative; +} + +.ryf-list h2 a:after { + content: '(...)'; + float: right; + display: block; + position: absolute; + bottom:5px; + right: 2px; + font-size: 0.8em; +} + +.ryf-list .list-inline li:hover { + background: #eee; } @media screen and (min-width: 450px) and (max-width: 659px) { @@ -254,6 +420,14 @@ h2.block-title { .auto-clear .col-xs-12:nth-child(odd){clear:left;} } +@media screen and (min-width: 55em) { + + .ryf-list article { + min-height: 270px + } + +} + /* Vendors list */ @@ -287,6 +461,7 @@ h2.block-title { } .vendors-list .views-field-name, + .vendors-list .views-field-field-description-summary, .vendors-list .views-field-description__value { max-width: 300px; margin: 0 auto 10px auto; @@ -327,6 +502,7 @@ h2.block-title { } .vendors-list .views-field-name, + .vendors-list .views-field-field-description-summary, .vendors-list .views-field-description__value { margin-left: 300px; } @@ -366,7 +542,6 @@ h2.block-title { @media screen and (max-width: 559px) { .view-taxonomy-term.view-display-id-taxonomy_term_vendor .view-header { margin: 0 auto 40px auto; - overflow: auto; } @@ -376,6 +551,7 @@ h2.block-title { } .view-taxonomy-term .view-header .field--name-description, + .view-taxonomy-term .view-header .field--name-field-description-summary, .view-taxonomy-term .view-header .field--name-field-vendor-support-link, .view-taxonomy-term .view-header .field--name-field-vendor-support-email { max-width: 360px; @@ -388,17 +564,16 @@ h2.block-title { @media screen and (min-width: 560px) { .view-taxonomy-term.view-display-id-taxonomy_term_vendor .view-header { margin: 0 0 40px 0; - overflow: auto; } .view-taxonomy-term .view-header .field--name-field-icon { width: 220px; - float: left; } .view-taxonomy-term .view-header .field--name-description, + .view-taxonomy-term .view-header .field--name-field-description-summary, .view-taxonomy-term .view-header .field--name-field-vendor-support-link, .view-taxonomy-term .view-header .field--name-field-vendor-support-email { margin-left: 260px; @@ -450,10 +625,8 @@ h2.block-title { .page-node-type-product .product .field--name-field-extra-images { padding: 5px; - display: flex; align-items: center; - border: 1px solid #888; border-radius: 10px; } @@ -468,8 +641,6 @@ h2.block-title { .page-node-type-product .product .field--name-field-vendor { margin: 10px 10px 20px 0px; padding: 10px; - border: 1px solid #888; - border-radius: 10px; } .page-node-type-product .product .field--name-field-categories .field--item { @@ -478,6 +649,29 @@ h2.block-title { margin-left: 15px; } +#block-views-block-categories-categories-block ul { + margin: 0; padding: 0 10px; + list-style: none; +} + +#block-views-block-categories-categories-block li { + padding: 5px 10px; + border: 1px solid #DDD; + border-radius: 5px; + list-style: none; + margin: 5px 0; +} + +#block-views-block-categories-categories-block li:hover { + background: #EEE; + color: #000; +} + +#block-views-block-categories-categories-block a { + width: 100%; + display: block; +} + /* product page colors */ .page-node-type-product .product .field--name-field-image { background-color: #fff; @@ -487,14 +681,6 @@ h2.block-title { background-color: #f3f3f3; border-color: #aaa; } -.page-node-type-product .product .field--name-field-categories { - background-color: #def; - border-color: #8ad; -} -.page-node-type-product .product .field--name-field-vendor { - background-color: #dfe; - border-color: #8da; -} @media screen and (max-width: 767px) { .page-node-type-product .product .field--name-field-extra-images { @@ -531,7 +717,6 @@ h2.block-title { .page-node-type-product .product .field--name-field-extra-images { float: left; clear: left; - width: 382px; margin-top: 10px; } @@ -671,18 +856,28 @@ h2.block-title { /* Footer */ - .footer { background: #333; color: #FFF; } +#email-signup .email-input { + color: #000; + display: block; + margin-bottom: 10px; +} +#email-signup .action-button { + color: #000; + display: block; +} + /* full page width for footer */ + .footer { width: 100%; } -.footer a { color: #337AB7; } +.footer a { color: #edd400; } .footer a:hover { color: #FFF; }