Browse Source

changed perr reviewed icon

dependabot/npm_and_yarn/acorn-5.7.4
rdrew 6 years ago
parent
commit
c2d14fa661
  1. 7
      css/style.css
  2. 2
      css/style.css.map
  3. 4
      src/scss/_article-pages.scss
  4. 15
      src/scss/_lp-preview-grid.scss
  5. 56
      templates/views/;q

7
css/style.css

@ -443,12 +443,16 @@ nav > h2,
padding-bottom: 90px; }
.masonry-layout .masonry-item {
width: 30.5%;
width: 100%;
background-color: #f6f6f2;
border: 0;
margin: 0.5%;
padding: 0; }
@media (min-width: 768px) {
.masonry-layout .masonry-item {
width: 30.5%; } }
.page-node-type-landing-page .main-content {
background-color: #f8f9fa; }
@ -611,6 +615,7 @@ figure.align-left {
position: relative; }
.article-info--wrapper {
padding: 0;
position: absolute;
top: 50%;
left: 50%;

2
css/style.css.map

File diff suppressed because one or more lines are too long

4
src/scss/_article-pages.scss

@ -45,7 +45,11 @@ figure.align-left {
position: relative;
}
//hero text
.article--title {
//font-size: 25px;
}
.article-info--wrapper {
padding: 0;
position: absolute;
top: 50%;
left: 50%;

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

@ -1,6 +1,9 @@
//overrides
.masonry-layout .masonry-item {
width: 30.5%;
width: 100%;
@include breakpoint($tablet-up) {
width: 30.5%;
}
background-color: #f6f6f2;
border: 0;
margin: 0.5%;
@ -130,3 +133,13 @@
.preview-card__caption {
margin: 10px;
}
.masonry-layout {
//xxx
@include breakpoint(mobile-only) {
.masonry-item {
//position: initial !important;
}
}
}

56
templates/views/;q

@ -0,0 +1,56 @@
{#{% if fields.field_article_type.content|striptags|trim == "Article" %}#}
{#{{dump(fields.field_article_type.content|striptags|trim)}}#}
{% if fields.field_article_type.content|striptags|trim == "Article" %}
{% set _icon_ = 'fa-file-text-o' %}
{% set _color_ = 'blue' %}
{% elseif fields.field_article_type.content|striptags|trim == "Peer-reviewed article" %}
{% set _icon_ = 'fa-users' %}
{% set _color_ = 'red' %}
{% elseif fields.field_article_type.content|striptags|trim == "Audio/visual art" %}
{% set _icon_ = 'fa-volume-up' %}
{% set _color_ = 'red' %}
{% elseif fields.field_article_type.content|striptags|trim == "Blog post" %}
{% set _icon_ = 'fa-rss' %}
{% set _color_ = 'green' %}
{% elseif fields.field_article_type.content|striptags|trim == "Creative writing" %}
{% set _icon_ = 'fa-pencil-square-o' %}
{% set _color_ = 'teal' %}
{% elseif fields.field_article_type.content|striptags|trim == "News" %}
{% set _icon_ = 'fa-newspaper-o' %}
{% set _color_ = 'purple' %}
{% elseif fields.field_article_type.content|striptags|trim == "Note" %}
{% set _icon_ = 'fa-envelope-open-o' %}
{% set _color_ = 'aqua' %}
{% elseif fields.field_article_type.content|striptags|trim == "Notice" %}
{% set _icon_ = 'fa-exclamation-circle' %}
{% set _color_ = 'teal' %}
{% else %}
{% set _icon_ = '' %}
{% set _color_ = '' %}
{% endif %}
<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.field_article_type.content }}
{#{% if fields.field_article_peer_reviewed.content |striptags|trim == "Yes" %}#}
{#<span class="peer-reviewed">#}
{#- peer reviewed#}
{#</span>#}
{#{% endif %}#}
</div>
<div class="teaser-card__body card-body">
<p class="teaser-card__title"> {{ fields.title.content }} </p>
<p class="teaser-card__author"> {{ fields.field_authors_and_affiliations.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>
Loading…
Cancel
Save