Fix default/notebook tabs css
This commit is contained in:
parent
fae8062d39
commit
39f16ff83d
2 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
.container {
|
.readable-container {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
@ -9,25 +9,25 @@
|
||||||
color: #efefef !important;
|
color: #efefef !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container p, .container li {
|
.readable-container p, .readable-container li {
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
color: #efefef !important;
|
color: #efefef !important;
|
||||||
margin-bottom: 22px;
|
margin-bottom: 22px;
|
||||||
line-height: 1.4 !important;
|
line-height: 1.4 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container li > p {
|
.readable-container li > p {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container code {
|
.readable-container code {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container :not(pre) > code {
|
.readable-container :not(pre) > code {
|
||||||
white-space: normal !important;
|
white-space: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .hoverable {
|
.readable-container .hoverable {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
|
@ -100,7 +100,7 @@ def convert_to_markdown(string):
|
||||||
|
|
||||||
def generate_basic_html(string):
|
def generate_basic_html(string):
|
||||||
string = convert_to_markdown(string)
|
string = convert_to_markdown(string)
|
||||||
string = f'<style>{readable_css}</style><div class="container">{string}</div>'
|
string = f'<style>{readable_css}</style><div class="readable-container">{string}</div>'
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue