diff --git a/css/components/landing_page.css b/css/components/landing_page.css index e16418a..17699df 100755 --- a/css/components/landing_page.css +++ b/css/components/landing_page.css @@ -18,6 +18,7 @@ figure.logo--ilivesnews h1 { border-bottom: 6px double #909090; padding: 10px 15px 14px 15px; border-spacing: 10px; + text-align: center; } figure.logo--ilivesnews a { @@ -29,7 +30,6 @@ figure.logo--ilivesnews a:hover { color: var(--color--upei-red); } - /* ============================================================ HERO ============================================================ */ @@ -44,7 +44,6 @@ figure.logo--ilivesnews a:hover { background: #dbdbdb; } - /* ============================================================ SITE BRANDING ============================================================ */ @@ -53,7 +52,6 @@ figure.logo--ilivesnews a:hover { color: #fff; } - /* ============================================================ LANDING PAGE ============================================================ */ @@ -79,7 +77,6 @@ article.node.node--type-landing-page h2 { margin-bottom: 0; } - /* ============================================================ MEDIA QUERIES ============================================================ */ @@ -92,16 +89,21 @@ article.node.node--type-landing-page h2 { } @media (min-width: 43.75rem) { - #block-olivesnews-views-block-front-page-featured-books-block-1 .view-content { + #block-olivesnews-views-block-front-page-featured-books-block-1 + .view-content { display: flex; justify-content: space-between; } - #block-olivesnews-views-block-front-page-featured-books-block-1 .view-content .views-field.views-field-title { + #block-olivesnews-views-block-front-page-featured-books-block-1 + .view-content + .views-field.views-field-title { height: 7em; } - #block-olivesnews-views-block-front-page-featured-books-block-1 .view-content .views-row { + #block-olivesnews-views-block-front-page-featured-books-block-1 + .view-content + .views-row { width: 32%; } } diff --git a/js/custom.js b/js/custom.js index f43292e..45dbf2a 100644 --- a/js/custom.js +++ b/js/custom.js @@ -1,35 +1,35 @@ -(function (Drupal, once) { - Drupal.behaviors.removeTrailingZeros = { - attach: function (context) { - once("from-slider", "#nouislider-input-from", context).forEach(function ( - inputField - ) { - inputField.value = parseInt(inputField.value, 10); - }); - - once("to-slider", "#nouislider-input-to", context).forEach(function ( - inputField - ) { - inputField.value = parseInt(inputField.value, 10); - }); - }, - }; -})(Drupal, once); -// (function (Drupal) { -// window.onload = function () { -// var inputField = document.getElementById("nouislider-input-from"); -// var str = inputField.value.toString(); -// str = str.slice(0, -3); -// str = parseInt(str); -// inputField.value = str; +// (function (Drupal, once) { +// Drupal.behaviors.removeTrailingZeros = { +// attach: function (context) { +// once("from-slider", "#nouislider-input-from", context).forEach(function ( +// inputField +// ) { +// inputField.value = parseInt(inputField.value, 10); +// }); // -// var inputField = document.getElementById("nouislider-input-to"); -// var str = inputField.value.toString(); -// str = str.slice(0, -3); -// str = parseInt(str); -// inputField.value = str; +// once("to-slider", "#nouislider-input-to", context).forEach(function ( +// inputField +// ) { +// inputField.value = parseInt(inputField.value, 10); +// }); +// }, // }; -// })(Drupal); +// })(Drupal, once); +(function (Drupal) { + window.onload = function () { + var inputField = document.getElementById("nouislider-input-from"); + var str = inputField.value.toString(); + str = str.slice(0, -3); + str = parseInt(str); + inputField.value = str; + + var inputField = document.getElementById("nouislider-input-to"); + var str = inputField.value.toString(); + str = str.slice(0, -3); + str = parseInt(str); + inputField.value = str; + }; +})(Drupal); //(function (Drupal, once) {