mirror of
https://github.com/vladocar/Basic.css.git
synced 2024-11-13 07:11:11 +01:00
Merge pull request #1 from tracker1/patch-1
Make the main body font use a variable.
This commit is contained in:
commit
6e155fdafc
1 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue