Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(eLife): Handle YAML frontmatter for authors, organizations, abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijay committed Oct 2, 2019
1 parent 5039d15 commit 375f54c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/styles/selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* their properties.
*/


/**
* Type selectors
*
Expand All @@ -24,6 +23,7 @@
@custom-selector :--CodeChunk stencila-code-chunk;
@custom-selector :--CreativeWork [itemtype='https://schema.org/CreativeWork'];
@custom-selector :--Entity [itemtype='https://schema.stenci.la/Entity'];
@custom-selector :--Organization [itemtype='https://schema.org/Organization'];
@custom-selector :--Person [itemtype='https://schema.org/Person'];
@custom-selector :--PublicationIssue [itemtype='https://schema.org/PublicationIssue'];
@custom-selector :--Thing [itemtype='https://schema.org/Thing'];
Expand Down Expand Up @@ -57,6 +57,7 @@
@custom-selector :--headline [itemprop='headline'];
@custom-selector :--issueNumber [itemprop='issueNumber'];
@custom-selector :--name [itemprop='name'];
@custom-selector :--organizations .organizations;
@custom-selector :--pagination [itemprop='pagination'];
@custom-selector :--references .references;
@custom-selector :--url [itemprop='url'];
28 changes: 28 additions & 0 deletions src/themes/eLife/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,34 @@ blockquote {
}

/* Microdata-based Styles */
@import '../../designa/Person.css';

:--Article {
> :--headline + div {
text-align: center;
font-family: var(--heading-font);

:--authors {
margin-bottom: 0;
}

:--organizations {
font-size: 14px;

@mixin list-separated;

li > * {
display: inline;
}
}
}

:--description {
margin: 0 auto 1.25rem;
max-width: var(--max-width);
}
}

:--references {
/* eLife Citation Styles */
list-style: none;
Expand Down

0 comments on commit 375f54c

Please sign in to comment.