Browse Source

Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme

dependabot/npm_and_yarn/acorn-5.7.4
Rob Drew 6 years ago
parent
commit
e2f280b9f5
  1. 30
      \
  2. 20
      css/style.css
  3. 2
      js/js.js
  4. 2
      src/js/js.js
  5. 7
      src/scss/_article-pages.scss
  6. 14
      src/scss/_cite-this.scss
  7. 2
      src/scss/style.scss

30
\

@ -1,30 +0,0 @@
{% if fields.type.content|striptags|trim == "Article" %}
{% set _icon_ = 'fa-file-text-o' %}
{% set _color_ = 'green' %}
{% elseif fields.type.content|striptags|trim == "Audio/visual art" %}
{% set _icon_ = 'fa-file-text-o' %}
{% set _color_ = 'green' %}
{% else %}
{% set _icon_ = '' %}
{% set _color_ = '' %}
{% endif %}
{#{{dump(fields)}}#}
<div class="{{_color_}} teaser-card card mb-4 shadow-sm">
{{ fields.field_article_highlight_image.content }}
<span class="teaser-card__icon">
<i class="fa {{_icon_}}" aria-hidden="true"></i>
</span>
<div class="teaser-card__category">
{{ fields.type.content}}
</div>
<div class="teaser-card__body card-body">
<p class="teaser-card__title"> {{ fields.title.content }} </p>
</div>
{#<i class="fa fa-camera-retro"></i>#}
{#<i class="fa fa-newspaper-o" aria-hidden="true"></i>#}
{#<i class="fa fa-video-camera" aria-hidden="true"></i>#}
{#<i class="fa fa-file-text-o" aria-hidden="true"></i>#}
{#<i class="fa fa-film" aria-hidden="true"></i>#}
</div>

20
css/style.css

File diff suppressed because one or more lines are too long

2
js/js.js

@ -49,7 +49,7 @@
Drupal.behaviors.article_keyword_copier = { Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections"); $('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
} }
}; };
Drupal.behaviors.ckSliderInit = { Drupal.behaviors.ckSliderInit = {

2
src/js/js.js

@ -49,7 +49,7 @@
Drupal.behaviors.article_keyword_copier = { Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections"); $('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
} }
}; };
Drupal.behaviors.ckSliderInit = { Drupal.behaviors.ckSliderInit = {

7
src/scss/_article-pages.scss

@ -261,3 +261,10 @@ h3.field-group-format-toggler.accordion-item {
display: block; display: block;
} }
} }
.back-to-top {
display: none;
}
.footnote-list > div {
padding: 0;
//margin: 0;
}

14
src/scss/_cite-this.scss

@ -0,0 +1,14 @@
.block-cite-this-block {
@extend .container;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
width: 1170px;
//=====================
.title {
text-align: left;
}
}

2
src/scss/style.scss

@ -10,6 +10,8 @@
@import 'menus'; @import 'menus';
@import 'toc'; @import 'toc';
@import 'static-pages'; @import 'static-pages';
@import 'cite-this';
/*on-scroll menu */ /*on-scroll menu */
.fixed-header-enabled.onscroll .header-container ul.menu { .fixed-header-enabled.onscroll .header-container ul.menu {

Loading…
Cancel
Save