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

Commit

Permalink
fix(Nature): Adjust theme to handle YAML frontmatter + CodeChunks
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijay committed Oct 2, 2019
1 parent 375f54c commit 802cfcf
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
.codeContainer {
pre {
overflow-x: auto;

output {
white-space: pre-line;
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/themes/eLife/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ blockquote {
}

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

:--Article {
Expand Down
44 changes: 44 additions & 0 deletions src/themes/nature/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,50 @@ blockquote {
}

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

:--Article {
> :--headline {
padding-left: 50px;
}

> :--headline + div {
font-family: var(--heading-font);

:--authors {
margin: 0 auto;
}

:--organizations {
@mixin list-separated;
font-size: 14px;
display: block;
margin: 1.25rem auto;
padding-left: 50px;

li > * {
display: inline;
}
}
}

:--description {
margin: 0 auto 1.25rem;
max-width: var(--max-width);
padding-left: 50px;

> p {
padding-left: 0;
}
}

:--CodeChunk {
/* Match figure width */
max-width: calc(var(--max-width) - 100px);
}
}

:--publisher,
:--authors,
:--CreativeWork header h2,
Expand Down

0 comments on commit 802cfcf

Please sign in to comment.