Skip to content

Commit 4111d43

Browse files
committed
Reduce padding and corner rounding in diffs
1 parent f4b523d commit 4111d43

File tree

3 files changed

+24
-34
lines changed

3 files changed

+24
-34
lines changed

html/css/diff.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
.diff .file {
2-
margin: 10px;
3-
padding: 10px;
4-
-webkit-border-radius: 10px;
2+
margin: 11px;
53
border: 1px solid #CCC;
6-
-webkit-box-shadow: 1px 1px 2px #DDD;
74
}
85

96
.diff .file .fileHeader {
10-
margin-top: -5px;
11-
padding-bottom: 1px;
7+
margin: 5px;
128
font-weight: bold;
139
}
1410

11+
.diff .file .fileHeader a {
12+
color: #000;
13+
text-decoration: none;
14+
}
15+
1516
.diff .file .diffContent {
1617
white-space: pre;
1718
font-family: Menlo, Monaco, monospace;
1819
}
1920

2021
.diff .file .diffcontent .lineno {
2122
float: left;
22-
padding-left: 2px;
23-
padding-right: 2px;
23+
padding-left: 3px;
24+
padding-right: 3px;
2425
background-color: #ECECEC;
2526
color: #A9A9A9;
26-
border: 1px solid #DDDDDD;
27+
border-right: 1px solid #DDDDDD;
2728
text-align: right;
2829
}
2930

@@ -36,6 +37,9 @@
3637
color: #bbb;
3738
}
3839

40+
.diff .file .diffContent .lines > div {
41+
padding-left: 2px;
42+
}
3943

4044
.diff .file .diffcontent .lines .delline {
4145
background-color: #FEE;
@@ -56,7 +60,7 @@
5660
}
5761
.diff .file .diffcontent .lines del,
5862
.diff .file .diffcontent .lines ins {
59-
text-decoration: none; border-radius: 0.3em;
63+
text-decoration: none; border-radius: 0.2em;
6064
}
6165
.diff .file .diffcontent .lines .delline del {
6266
background-color: #febfbf;

html/views/commit/commit.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ table.diff {
9595
}
9696

9797
#selected #stagelines {
98-
padding-left: 2px;
99-
width: auto;
100-
padding-right: 2px;
101-
margin-right: 2px;
102-
margin-top: 1px;
103-
clear: right;
10498
background-color: #FFF;
10599
}
106100

html/views/history/history.css

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,8 @@ a {
158158
padding: 10px;
159159
}
160160
#files {
161-
margin: 10px;
162-
padding: 10px 0;
163-
background-color: #f9f9f9;
164-
-webkit-border-radius: 10px;
165-
border: 1px solid #CCC;
166-
-webkit-box-shadow: 1px 1px 2px #DDD;
161+
margin: 10px 0;
162+
padding: 0;
167163
}
168164
#files ul {
169165
margin: 0;
@@ -176,13 +172,10 @@ a {
176172
height: 18px;
177173
}
178174
#files li.odd {
179-
background-color: #f9f9f9;
180-
}
181-
#files li.even {
182-
background-color: #f0f0f0;
175+
background-color: #f2f2f2;
183176
}
184177
#files li:hover {
185-
background-color: #d4e4ff;
178+
text-decoration: underline;
186179
cursor: pointer;
187180
}
188181
#files img.changetype-icon {
@@ -199,6 +192,7 @@ a {
199192

200193
.top-link {
201194
text-align: right;
195+
margin-top: -5px;
202196
margin-right: 20px;
203197
padding-bottom: 5px;
204198
font-size: 90%;
@@ -230,26 +224,24 @@ a {
230224
}
231225

232226
#files .diffstat-numbers {
233-
background-color: rgba(0,0,0,.75);
234-
color: #e3e3e3;
235227
font-size: 12px;
236228
font-weight: bold;
237-
text-shadow: #000 0 1px 1px;
238229
white-space: nowrap;
239230
padding: 1px 5px;
240231
position: absolute;
241-
height: 14px;
242-
border: 1px solid black;
243-
-webkit-box-shadow: 0 1px 1px white;
232+
height: 16px;
244233
}
245234

246235
#files .diffstat-numbers.summary {
236+
border-left: 1px solid #333;
247237
-webkit-border-top-right-radius: 12px;
248238
-webkit-border-bottom-right-radius: 12px;
249-
right: 0px;
239+
right: 1px;
250240
width: 35px;
251241
}
252242
#files .diffstat-numbers.details {
243+
background-color: black;
244+
color: #e3e3e3;
253245
-webkit-border-top-left-radius: 12px;
254246
-webkit-border-bottom-left-radius: 12px;
255247
right: 46px;

0 commit comments

Comments
 (0)