Skip to content

Commit

Permalink
CSS: move font-size definition
Browse files Browse the repository at this point in the history
By defining font-size as early as possible, it gives the possibility to
users to override it in their local CSS file. The value is otherwise
impossible to override since it's part of the only div that composes a
slide (ie "remark-container").

Signed-off-by: Joel Porquet <[email protected]>
  • Loading branch information
joel-porquet committed Dec 7, 2017
1 parent a0754a4 commit 1b32878
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/remark.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/* Container */
/*************/

html {
font-size: 20px;
}
html.remark-container, body.remark-container {
height: 100%;
width: 100%;
Expand Down Expand Up @@ -97,7 +100,6 @@ body:fullscreen{
background-position: center;
background-repeat: no-repeat;
display: table-cell;
font-size: 20px;
padding: 1em 4em 1em 4em;

h1 { font-size: 55px; }
Expand Down

0 comments on commit 1b32878

Please sign in to comment.