mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
changed markdown stylings
This commit is contained in:
parent
52d5b57245
commit
4d99473d7d
1 changed files with 27 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
@import "../variables";
|
@import "../variables";
|
||||||
|
|
||||||
|
$margin: 1em;
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
pre {
|
pre {
|
||||||
background-color: darken($comment_bg, 2%);
|
background-color: darken($comment_bg, 2%);
|
||||||
|
@ -14,23 +16,42 @@
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-bottom: 0.3em;
|
margin-bottom: $margin;
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: transparentize(white, 0.5);
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p, li {
|
||||||
|
code {
|
||||||
|
background-color: darken($comment_bg, 4%);
|
||||||
|
padding: 2px 0.5em;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
color: transparentize(white, 0.5);
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 0.3em;
|
margin-bottom: $margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: 0.3em;
|
margin-bottom: $margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5, h4, h3, h2, h1 {
|
h5, h4, h3, h2, h1 {
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
margin-bottom: 0.3em;
|
margin: $margin * 1.5 0 $margin / 2;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
margin-top: $margin / 4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -56,10 +77,10 @@
|
||||||
ul {
|
ul {
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
margin-bottom: 0.3em;
|
margin-bottom: $margin;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin: 0.1em 0;
|
margin: $margin/3 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue