no hard color left in css
use blend and --background to define background of code tag
This commit is contained in:
@ -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 {
|
||||
|
||||
12
todo.md
12
todo.md
@ -7,3 +7,15 @@
|
||||
- set the title of the preview @done
|
||||
- disable previewing when the preview is closed @done
|
||||
- check when setting is activated and create panel and stuff @done
|
||||
|
||||
This is pretty cool
|
||||
|
||||
```ruby
|
||||
print('hello world')
|
||||
def test():
|
||||
puts 'hello'
|
||||
if test:
|
||||
print('hi')
|
||||
```
|
||||
|
||||
this is some `code`!
|
||||
Reference in New Issue
Block a user