fix: Add review suggestions

This commit is contained in:
Rodrigo Fernandes 2020-10-29 08:57:31 +00:00
parent 2d4c293a27
commit 33076dc13e
No known key found for this signature in database
GPG key ID: 67157D2E3D4258B4

View file

@ -96,6 +96,8 @@
.d2h-code-line { .d2h-code-line {
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
user-select: none;
width: 100%;
/* Compensate for the absolute positioning of the line numbers */ /* Compensate for the absolute positioning of the line numbers */
padding: 0 8em; padding: 0 8em;
} }
@ -103,20 +105,21 @@
.d2h-code-side-line { .d2h-code-side-line {
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
user-select: none;
width: 100%;
/* Compensate for the absolute positioning of the line numbers */ /* Compensate for the absolute positioning of the line numbers */
padding: 0 4.5em; padding: 0 4.5em;
} }
.d2h-code-line,
.d2h-code-side-line {
user-select: none;
width: 100%;
}
.d2h-code-line-ctn { .d2h-code-line-ctn {
display: inline-block; display: inline-block;
background: none;
padding: 0;
word-wrap: normal;
white-space: pre;
user-select: text; user-select: text;
width: 100%; width: 100%;
vertical-align: middle;
} }
.d2h-code-line del, .d2h-code-line del,
@ -126,6 +129,7 @@
text-decoration: none; text-decoration: none;
background-color: #ffb6ba; background-color: #ffb6ba;
border-radius: 0.2em; border-radius: 0.2em;
vertical-align: middle;
} }
.d2h-code-line ins, .d2h-code-line ins,
@ -136,6 +140,7 @@
background-color: #97f295; background-color: #97f295;
border-radius: 0.2em; border-radius: 0.2em;
text-align: left; text-align: left;
vertical-align: middle;
} }
.d2h-code-line-prefix { .d2h-code-line-prefix {
@ -146,14 +151,6 @@
white-space: pre; white-space: pre;
} }
.d2h-code-line-ctn {
display: inline;
background: none;
padding: 0;
word-wrap: normal;
white-space: pre;
}
.line-num1 { .line-num1 {
box-sizing: border-box; box-sizing: border-box;
float: left; float: left;