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

Commit

Permalink
fix(Themes): Use semantic selectors, comment setTimeout usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijay committed Oct 7, 2019
1 parent 80dac6d commit 9b2da0c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/common/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export const formatReferences = (): void => {

const onReadyHandler = (): void => {
codeHighlight()
// Use setTimeout to queue formatReferences until
// the current call stack gets executed (allow DOM elements
// to load before rearranging references for theme styles)
window.setTimeout(formatReferences, 0)
}

Expand Down
2 changes: 1 addition & 1 deletion src/designa/mixins/CreativeWork.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

:--references > :--CreativeWork {
:--authors {
li::after {
:--author::after {
content: normal;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/eLife/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ blockquote {
@mixin list-separated '; ';
font-size: 14px;

li > * {
:--Organization > * {
display: inline;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/nature/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ blockquote {
:--organizations {
@mixin list-separated '; ';

li > * {
:--Organization > * {
display: inline;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/plos/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
margin-top: 1.25rem;
display: block;

li > * {
:--Organization > * {
display: inline;
}
}
Expand Down

0 comments on commit 9b2da0c

Please sign in to comment.