Small restyling of comment elements

* quote with left border and without background
* style for old code insetions (structure pre > code)
* unified elemets margins
* 1px separator height
This commit is contained in:
Pavel Mineev
2020-02-09 13:49:58 -06:00
committed by Umputun
parent 90bd79abbb
commit 75ff933add
4 changed files with 24 additions and 17 deletions
@@ -1,6 +1,6 @@
.raw-content_theme_dark {
blockquote {
background: #393734;
border-left-color: rgba(255, 255, 255, 0.3);
}
table {
@@ -1,6 +1,6 @@
.raw-content_theme_light {
blockquote {
background: #fafafa;
border-left-color: rgba(0, 0, 0, 0.1);
}
table {
@@ -1,4 +1,4 @@
.chroma {
pre {
color: var(--chroma-base);
background-color: var(--chroma-bg);
@@ -23,19 +23,22 @@
word-break: break-word;
p {
margin: 0;
p,
blockquote {
margin: 1rem 0;
+ blockquote,
+ p {
margin-top: 8px;
&:first-child {
margin-top: 0rem;
}
&:last-child {
margin-bottom: 0rem;
}
/* imported comments have br instead of p */
br {
content: '';
display: block;
margin-top: 8px;
margin-top: 1rem;
}
}
@@ -65,13 +68,8 @@
}
blockquote {
margin: 0;
padding: 8px 8px 8px 24px;
border-radius: 2px;
+ p {
margin-top: 8px;
}
padding: 12px 8px 12px 16px;
border-left: 2px solid;
}
table {
@@ -111,7 +109,7 @@
}
pre {
padding: 16px;
padding: 12px 16px 12px 18px;
overflow-x: auto;
overflow-y: hidden;
tab-size: 2;
@@ -127,6 +125,11 @@
&:last-child {
margin-bottom: 0;
}
> code {
background-color: transparent;
padding: 0;
}
}
sup,
@@ -136,4 +139,8 @@
vertical-align: middle; /* to prevent some visual cheats */
}
}
hr {
border-width: 0 0 1px 0;
}
}