Browse Source

these files were changed on the prod server so commiting them

master
ppound 10 months ago
parent
commit
6ca7d04409
  1. 12
      css_overrides.css
  2. 20
      templates/news_articles/news--hero.html.twig
  3. 19
      templates/news_articles/news--hero.html.twig.old

12
css_overrides.css

@ -60,3 +60,15 @@ img.orcid_logo {
font-size: smaller;
line-height: 2;
}
.teaser-card__body .field--name-field-affiliation-string {
display:none;
}
.field--name-field-journal-article-abstract {
background: #eee;
padding: .5em;
margin-bottom:1.5em;
p:last-child {
padding-bottom: 0;
}
}

20
templates/news_articles/news--hero.html.twig

@ -1,7 +1,10 @@
{% if not (node.field_article_highlight_image.isEmpty == true) and content.field_article_highlight_image is defined %}
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %}
<header style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{{ imagePath }}')" class="article-title-banner node__header paragraph-responsive-typography-enabled article-header">
{% else %}
<header class="no_image article-title-banner node__header paragraph-responsive-typography-enabled article-header">
{% endif %}
<div class="container article-info--wrapper">
{% block title_area %}
{{ title_prefix }}
<h1{{ title_attributes.addClass('article--title title') }}>
@ -13,19 +16,8 @@
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<div class="left">
{#<div class="article--contributor">#}
{#Robert N. Drew#}
{#</div>#}
{#<div class="article--contributor__affiliation">University of Prince Edward Island</div>#}
</div>
<div class="right">
{#<div class="article--type">Article</div>#}
{#<div class="article--date-published">#}
{#Published September 20, 2018 #}
{#</div>#}
</div>
<div class="left"> </div>
<div class="right"> </div>
</section>
</div>
</header>

19
templates/news_articles/news--hero.html.twig.old

@ -0,0 +1,19 @@
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %}
<header style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{{ imagePath }}')" class="article-title-banner node__header paragraph-responsive-typography-enabled article-header">
<div class="container article-info--wrapper">
{% block title_area %}
{{ title_prefix }}
<h1{{ title_attributes.addClass('article--title title') }}>
{{ label }}
</h1>
<h1{{ title_attributes.addClass('article--title title sr-only') }}>
{{ label }}
</h1>
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<div class="left"> </div>
<div class="right"> </div>
</section>
</div>
</header>
Loading…
Cancel
Save