Make columns in split view of the same width (#3619)

as well as fix indentation and add 1px border to line counter of the new
code on the right.
This commit is contained in:
Morgan Bazalgette 2018-03-06 23:44:45 +01:00 committed by Lauris BH
parent 9fc418a652
commit 4009c245a3
2 changed files with 45 additions and 32 deletions

File diff suppressed because one or more lines are too long

View file

@ -989,13 +989,16 @@
margin: 0; margin: 0;
} }
.lines-num { .lines-num {
border-right: 1px solid #d4d4d5; border-color: #d4d4d5;
border-right-width: 1px;
border-right-style: solid;
padding: 0 5px; padding: 0 5px;
} }
tbody { tbody {
tr { tr {
td.halfwidth { td.halfwidth {
width: 50%; // halfwidth is used in split view - and in that case, 1% of each
width: 49%;
} }
&.tag-code td, td.tag-code { &.tag-code td, td.tag-code {
@ -1034,7 +1037,11 @@
border-color: #c1e9c1 !important; border-color: #c1e9c1 !important;
} }
} }
.code-diff-split tbody tr { .code-diff-split {
table, tbody {
width: 100%;
}
tbody tr {
// light gray for empty lines before / after commit // light gray for empty lines before / after commit
&.add-code td:nth-child(1), &.add-code td:nth-child(2), &.add-code td:nth-child(1), &.add-code td:nth-child(2),
&.del-code td:nth-child(3), &.del-code td:nth-child(4) { &.del-code td:nth-child(3), &.del-code td:nth-child(4) {
@ -1052,6 +1059,12 @@
background-color: #d6fcd6 !important; background-color: #d6fcd6 !important;
border-color: #c1e9c1 !important; border-color: #c1e9c1 !important;
} }
td:nth-child(3) {
border-left-width: 1px;
border-left-style: solid;
}
}
} }
&.file-content { &.file-content {
img { img {