Browse Source

fixed the footnote popups

dependabot/npm_and_yarn/acorn-5.7.4
rdrew 6 years ago
parent
commit
f7bc8684e3
  1. 50
      css/style.css
  2. 8
      js/js.js
  3. 8
      src/js/js.js
  4. 22
      src/scss/_article-pages.scss
  5. 47
      src/scss/_lp-preview-grid.scss

50
css/style.css

File diff suppressed because one or more lines are too long

8
js/js.js

@ -39,7 +39,13 @@
Drupal.behaviors.slickSliderInit = { Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$('.lp-slideshow').slick(); $('.lp-slideshow').slick({
fade: true,
cssEase: 'linear',
pauseOnHover: false,
autoplay: true,
autoplaySpeed: 5000
});
} }
}; };
//<a class="see-footnote" id="footnoterefviii_3w9ys6f" href="#footnoteviii_3w9ys6f">viii</a> //<a class="see-footnote" id="footnoterefviii_3w9ys6f" href="#footnoteviii_3w9ys6f">viii</a>

8
src/js/js.js

@ -39,7 +39,13 @@
Drupal.behaviors.slickSliderInit = { Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$('.lp-slideshow').slick(); $('.lp-slideshow').slick({
fade: true,
cssEase: 'linear',
pauseOnHover: false,
autoplay: true,
autoplaySpeed: 5000
});
} }
}; };
//<a class="see-footnote" id="footnoterefviii_3w9ys6f" href="#footnoteviii_3w9ys6f">viii</a> //<a class="see-footnote" id="footnoterefviii_3w9ys6f" href="#footnoteviii_3w9ys6f">viii</a>

22
src/scss/_article-pages.scss

@ -77,30 +77,40 @@ header.article-header {
//} //}
.article-info--wrapper { .article-info--wrapper {
} }
.article { .article-header--metadata {
&--contributor { .article--contributor {
font-size: 27px; font-size: 27px;
//line-height:36px; //line-height:36px;
font-family: 'Libre Baskerville', Georgia, Times New Roman, Serif; font-family: 'Libre Baskerville', Georgia, Times New Roman, Serif;
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
} }
&--contributor__affiliation { .field--name-field-affiliation-string,
.article--contributor__affiliation {
font-size: 18px; font-size: 18px;
text-transform: uppercase; text-transform: uppercase;
//line-height:18px; //line-height:18px;
//font-style: italic; font-weight: normal;
font-style: normal;
font-family: sans-serif;
} }
&--type { .article--type {
font-size: 18px; font-size: 18px;
//line-height:18px; //line-height:18px;
text-transform: uppercase; text-transform: uppercase;
a {
color: #fff;
}
} }
&--date-published { .article--date-published {
font-size: 18px; font-size: 18px;
text-transform: uppercase; text-transform: uppercase;
//line-height:18px; //line-height:18px;
margin-top: 6px; margin-top: 6px;
.field__label {
display: none;
}
} }
} }

47
src/scss/_lp-preview-grid.scss

@ -3,10 +3,46 @@
} }
.teaser-card { .teaser-card {
&.green {
.teaser-card__category,
.teaser-card__icon {
background: #226f23;
}
}
&.red {
.teaser-card__category,
.teaser-card__icon {
background: #d22b2e;
}
}
&.blue {
.teaser-card__category,
.teaser-card__icon {
background: #1377ba;
}
}
&.teal {
.teaser-card__category,
.teaser-card__icon {
background: #37868e;
}
}
&.purple {
.teaser-card__category,
.teaser-card__icon {
background: #7201a1;
}
}
&.aqua {
.teaser-card__category,
.teaser-card__icon {
background: #1fe5aa;
}
}
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
background: #fff; background: #fff;
margin-bottom: 16px; margin-bottom: 16px;
position:relative; position: relative;
p { p {
padding-bottom: 0; padding-bottom: 0;
} }
@ -28,23 +64,20 @@
padding-top: 4px; padding-top: 4px;
} }
&__category { &__category {
background: #226f23; color: #fff;
color:#fff; padding: 0.5rem 1.25rem;
padding: .5rem 1.25rem;
text-transform: uppercase; text-transform: uppercase;
} }
&__icon { &__icon {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
background: #226f23;
padding: 10px; padding: 10px;
color:#fff; color: #fff;
} }
img { img {
width: 100%; width: 100%;
} }
} }
/*====lp article preview cards==================*/ /*====lp article preview cards==================*/

Loading…
Cancel
Save