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

Commit

Permalink
fix(Stencila): Add common theme dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Sep 12, 2019
1 parent 7639b4b commit 4c856bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
13 changes: 5 additions & 8 deletions src/common/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@

@import './citations.css';

article {
label:first-of-type {
position: sticky;
top: 0;
text-align: right;
padding: 12px 24px;
background: #fff;
z-index: 1;
:--code-chunk {
pre,
pre[class*='language-'] {
background-color: transparent;
height: 100%;
}
}

Expand Down
13 changes: 12 additions & 1 deletion src/themes/stencila/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import '../../common/styles/common.css';
@import 'prismjs/themes/prism.css';
@import '../../common/fonts/merriweather/merriweather.css';

Expand Down Expand Up @@ -217,10 +218,20 @@ article > figure,

:--code-chunk {
max-width: var(--max-width-media);

pre,
code,
pre[class*='language-'],
code[class*='language-'] {
font-family: var(--font-family-mono);
}
}

article > pre {
article > pre,
body > pre,
main > pre {
background-color: #fff;
padding: 1rem;
}

pre {
Expand Down

0 comments on commit 4c856bd

Please sign in to comment.