fix markdown styles

This commit is contained in:
sawka 2023-10-12 21:24:52 -07:00
parent ab9ed54b46
commit e21d35288f
3 changed files with 13 additions and 77 deletions

View File

@ -271,16 +271,20 @@
.markdown {
color: @term-white;
margin-bottom: 10px;
font-family: @markdown-font;
font-size: 14px;
code {
background-color: @term-black;
background-color: @markdown-highlight;
color: @term-white;
padding: 5px;
font-family: @terminal-font;
display: inline-block;
}
code.inline {
padding-top: 0;
padding-bottom: 0;
font-family: @terminal-font;
}
.title {
@ -317,14 +321,14 @@
blockquote {
margin: 4px 10px 4px 10px;
border-radius: 3px;
background-color: #444;
background-color: @markdown-highlight;
padding: 2px 4px 2px 6px;
}
pre {
background-color: inherit;
background-color: @markdown-highlight;
margin: 4px 10px 4px 10px;
padding: 2px 4px 2px 6px;
padding: 6px 6px 6px 10px;
}
.title.is-1 {

View File

@ -55,3 +55,7 @@
// @font-face declaration lives in app.less
@fixed-font: "Martian Mono", sans-serif;
@terminal-font: "JetBrains Mono", sans-serif;
// to match Github
@markdown-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial,sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
@markdown-highlight: rgb(35, 35, 35);

View File

@ -7,78 +7,6 @@
.scroller {
overflow-y: auto;
}
code {
background-color: @term-black;
color: @term-white;
padding: 5px;
}
code.inline {
padding-top: 0;
padding-bottom: 0;
}
.title {
color: @term-white;
margin-top: 16px;
margin-bottom: 8px;
}
strong {
color: @term-white;
}
a {
color: #32afff;
}
table {
tr th {
color: @term-white;
}
}
ul {
list-style-type: disc;
list-style-position: outside;
margin-left: 16px;
}
ol {
list-style-position: outside;
margin-left: 19px;
}
blockquote {
margin: 4px 10px 4px 10px;
border-radius: 3px;
background-color: #444;
padding: 2px 4px 2px 6px;
}
pre {
background-color: inherit;
margin: 4px 10px 4px 10px;
padding: 2px 4px 2px 6px;
}
.title.is-1 {
border-bottom: 1px solid #777;
padding-bottom: 6px;
}
.title.is-2 {
border-bottom: 1px solid #777;
padding-bottom: 6px;
}
.title.is-3 {
}
.title.is-4 {
}
.title.is-5 {
}
.title.is-6 {
}
}
.markdown > *:first-child {