Browse Source

search display

master
rdrew 3 weeks ago
parent
commit
aba857d531
  1. 16
      css/components/landing_page.css
  2. 60
      js/custom.js

16
css/components/landing_page.css

@ -18,6 +18,7 @@ figure.logo--ilivesnews h1 {
border-bottom: 6px double #909090; border-bottom: 6px double #909090;
padding: 10px 15px 14px 15px; padding: 10px 15px 14px 15px;
border-spacing: 10px; border-spacing: 10px;
text-align: center;
} }
figure.logo--ilivesnews a { figure.logo--ilivesnews a {
@ -29,7 +30,6 @@ figure.logo--ilivesnews a:hover {
color: var(--color--upei-red); color: var(--color--upei-red);
} }
/* ============================================================ /* ============================================================
HERO HERO
============================================================ */ ============================================================ */
@ -44,7 +44,6 @@ figure.logo--ilivesnews a:hover {
background: #dbdbdb; background: #dbdbdb;
} }
/* ============================================================ /* ============================================================
SITE BRANDING SITE BRANDING
============================================================ */ ============================================================ */
@ -53,7 +52,6 @@ figure.logo--ilivesnews a:hover {
color: #fff; color: #fff;
} }
/* ============================================================ /* ============================================================
LANDING PAGE LANDING PAGE
============================================================ */ ============================================================ */
@ -79,7 +77,6 @@ article.node.node--type-landing-page h2 {
margin-bottom: 0; margin-bottom: 0;
} }
/* ============================================================ /* ============================================================
MEDIA QUERIES MEDIA QUERIES
============================================================ */ ============================================================ */
@ -92,16 +89,21 @@ article.node.node--type-landing-page h2 {
} }
@media (min-width: 43.75rem) { @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; display: flex;
justify-content: space-between; 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; 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%; width: 32%;
} }
} }

60
js/custom.js

@ -1,35 +1,35 @@
(function (Drupal, once) { // (function (Drupal, once) {
Drupal.behaviors.removeTrailingZeros = { // Drupal.behaviors.removeTrailingZeros = {
attach: function (context) { // attach: function (context) {
once("from-slider", "#nouislider-input-from", context).forEach(function ( // once("from-slider", "#nouislider-input-from", context).forEach(function (
inputField // inputField
) { // ) {
inputField.value = parseInt(inputField.value, 10); // 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;
// //
// var inputField = document.getElementById("nouislider-input-to"); // once("to-slider", "#nouislider-input-to", context).forEach(function (
// var str = inputField.value.toString(); // inputField
// str = str.slice(0, -3); // ) {
// str = parseInt(str); // inputField.value = parseInt(inputField.value, 10);
// inputField.value = str; // });
// },
// }; // };
// })(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) { //(function (Drupal, once) {

Loading…
Cancel
Save