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 content
|
||||||
|
|
||||||
return """
|
return """
|
||||||
|
html {
|
||||||
|
--light-bg: color(var(--background) blend(#aaa 80%))
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
padding:10px;
|
padding:10px;
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
@ -49,7 +52,7 @@ def get_style():
|
|||||||
code {
|
code {
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
padding-right: 0.2rem;
|
padding-right: 0.2rem;
|
||||||
background-color: rgb(244.6,244.6,244.6);
|
background-color: var(--light-bg);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
@ -59,7 +62,7 @@ def get_style():
|
|||||||
display: block;
|
display: block;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
background-color: rgb(244.6,244.6,244.6);
|
background-color: var(--light-bg);
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
pre code {
|
pre code {
|
||||||
|
|||||||
14
todo.md
14
todo.md
@ -6,4 +6,16 @@
|
|||||||
- regive focus to the right markdown view @done
|
- regive focus to the right markdown view @done
|
||||||
- set the title of the preview @done
|
- set the title of the preview @done
|
||||||
- disable previewing when the preview is closed @done
|
- disable previewing when the preview is closed @done
|
||||||
- check when setting is activated and create panel and stuff @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