Merge pull request #1 from tracker1/patch-1

Make the main body font use a variable.
This commit is contained in:
Vladimir Carrer 2020-05-30 03:45:40 +02:00 committed by GitHub
commit 6e155fdafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
* {box-sizing: border-box}
:root{
--sans:1em/1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif;
--mono:'Courier New', Courier, 'Ubuntu Mono', 'Liberation Mono', monospace;
--c1:#0074d9;
--c2:#eee;
@ -30,13 +31,13 @@ html {
body {
margin: 0;
font: 1em/1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif;
font: var(--sans);
font-weight: 400;
font-style: normal;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
background-color: var(--c3);
color: var(--c4)
color: var(--c4);
}
img, iframe {border: none; max-width: 100%}
@ -98,3 +99,4 @@ aside,article {flex:1; margin:var(--m1)}
article {background: var(--c2); border-radius: var(--rc); padding: 1em; box-shadow: 0px 1px 0px rgba(0,0,0,0.3)}
aside:first-child, article:first-child {margin-left:0}