no hard color left in css

use blend and --background to define background of code tag
This commit is contained in:
math2001
2016-11-26 13:07:53 +11:00
parent 4b1bc0d8bc
commit 5c194de103
2 changed files with 18 additions and 3 deletions

View File

@ -32,6 +32,9 @@ def get_style():
return content
return """
html {
--light-bg: color(var(--background) blend(#aaa 80%))
}
body {
padding:10px;
font-family: "Open Sans", sans-serif;
@ -49,7 +52,7 @@ def get_style():
code {
padding-left: 0.2rem;
padding-right: 0.2rem;
background-color: rgb(244.6,244.6,244.6);
background-color: var(--light-bg);
margin: 0;
border-radius: 3px;
margin: 5px;
@ -59,7 +62,7 @@ def get_style():
display: block;
margin-top: 20px;
line-height: 2;
background-color: rgb(244.6,244.6,244.6);
background-color: var(--light-bg);
padding-left: 10px;
}
pre code {