Skip to content

Commit 4009c24

Browse files
thehowllafriks
authored andcommitted
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.
1 parent 9fc418a commit 4009c24

File tree

2 files changed

+45
-32
lines changed

2 files changed

+45
-32
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_repository.less

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,16 @@
989989
margin: 0;
990990
}
991991
.lines-num {
992-
border-right: 1px solid #d4d4d5;
992+
border-color: #d4d4d5;
993+
border-right-width: 1px;
994+
border-right-style: solid;
993995
padding: 0 5px;
994996
}
995997
tbody {
996998
tr {
997999
td.halfwidth {
998-
width: 50%;
1000+
// halfwidth is used in split view - and in that case, 1% of each
1001+
width: 49%;
9991002
}
10001003

10011004
&.tag-code td, td.tag-code {
@@ -1034,23 +1037,33 @@
10341037
border-color: #c1e9c1 !important;
10351038
}
10361039
}
1037-
.code-diff-split tbody tr {
1038-
// light gray for empty lines before / after commit
1039-
&.add-code td:nth-child(1), &.add-code td:nth-child(2),
1040-
&.del-code td:nth-child(3), &.del-code td:nth-child(4) {
1041-
background-color: #fafafa;
1040+
.code-diff-split {
1041+
table, tbody {
1042+
width: 100%;
10421043
}
1044+
tbody tr {
1045+
// light gray for empty lines before / after commit
1046+
&.add-code td:nth-child(1), &.add-code td:nth-child(2),
1047+
&.del-code td:nth-child(3), &.del-code td:nth-child(4) {
1048+
background-color: #fafafa;
1049+
}
10431050

1044-
&.del-code td:nth-child(1), &.del-code td:nth-child(2),
1045-
td.del-code {
1046-
background-color: #ffe0e0 !important;
1047-
border-color: #f1c0c0 !important;
1048-
}
1051+
&.del-code td:nth-child(1), &.del-code td:nth-child(2),
1052+
td.del-code {
1053+
background-color: #ffe0e0 !important;
1054+
border-color: #f1c0c0 !important;
1055+
}
10491056

1050-
&.add-code td:nth-child(3), &.add-code td:nth-child(4),
1051-
td.add-code{
1052-
background-color: #d6fcd6 !important;
1053-
border-color: #c1e9c1 !important;
1057+
&.add-code td:nth-child(3), &.add-code td:nth-child(4),
1058+
td.add-code{
1059+
background-color: #d6fcd6 !important;
1060+
border-color: #c1e9c1 !important;
1061+
}
1062+
1063+
td:nth-child(3) {
1064+
border-left-width: 1px;
1065+
border-left-style: solid;
1066+
}
10541067
}
10551068
}
10561069
&.file-content {
@@ -1263,11 +1276,11 @@
12631276
}
12641277

12651278
@media only screen and (max-width: 767px) {
1266-
.dividing.header .stackable.grid .button {
1267-
margin-top: 2px;
1268-
margin-bottom: 2px;
1269-
}
1270-
}
1279+
.dividing.header .stackable.grid .button {
1280+
margin-top: 2px;
1281+
margin-bottom: 2px;
1282+
}
1283+
}
12711284
}
12721285

12731286
&.settings {
@@ -1698,14 +1711,14 @@ tbody.commit-list {
16981711
}
16991712

17001713
@media only screen and (max-width: 767px) {
1701-
.ui.stackable.menu {
1702-
&.mobile--margin-between-items > .item {
1703-
margin-top: 5px;
1704-
margin-bottom: 5px;
1705-
}
1706-
&.mobile--no-negative-margins {
1707-
margin-left: 0;
1708-
margin-right: 0;
1709-
}
1710-
}
1714+
.ui.stackable.menu {
1715+
&.mobile--margin-between-items > .item {
1716+
margin-top: 5px;
1717+
margin-bottom: 5px;
1718+
}
1719+
&.mobile--no-negative-margins {
1720+
margin-left: 0;
1721+
margin-right: 0;
1722+
}
1723+
}
17111724
}

0 commit comments

Comments
 (0)