forked from Mirrors/gomuks
web/timeline: make code blocks scrollable
This commit is contained in:
parent
2018952151
commit
f3bbb4c98e
1 changed files with 8 additions and 0 deletions
|
@ -42,10 +42,12 @@ div.timeline-event {
|
||||||
|
|
||||||
> div.event-content {
|
> div.event-content {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.html-body {
|
div.html-body {
|
||||||
|
overflow: hidden;
|
||||||
img[data-mx-emoticon] {
|
img[data-mx-emoticon] {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +57,12 @@ div.html-body {
|
||||||
padding-left: .5rem;
|
padding-left: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
width: 100%;
|
||||||
|
max-height: max(50vh, 400px);
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
p, ul, ol, dl, table, pre, blockquote {
|
p, ul, ol, dl, table, pre, blockquote {
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin: 0 0 .25rem;
|
margin: 0 0 .25rem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue