Browse Source

ORCID styling by rdrew.

9471-orcid
Alexander O'Neill 3 years ago
parent
commit
2c6205455e
  1. 15
      css_overrides.css
  2. 3
      templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig

15
css_overrides.css

@ -45,3 +45,18 @@ span.citeproc-container-title {
margin: 0.5%;
padding: 0;
}
.paragraph--type--author-with-affiliation {
display: flex;
}
img.orcid_logo {
width: 22px;
margin-bottom: 9px;
}
.orcid-short-link {
margin-left: 12px;
font-weight: normal;
font-style: normal;
font-size: smaller;
line-height: 2;
}

3
templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig

@ -28,4 +28,5 @@
'orcid-short-link',
]
%}
<a href="https://orcid.org/{{ items.0 }}" {{ attributes.addClass(classes) }}>{{ items }}</a>
<a href="https://orcid.org/{{ items.0 }}" {{ attributes.addClass(classes) }}><img class="orcid_logo" alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" />
{#{{ items }}#}</a>

Loading…
Cancel
Save