blob: a8dc8e3a4b193e64f38368d9417f2f6dd3cea590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
@import "base";
.filter-repos {
.btn {
height: 1.9rem;
}
}
.repo-nav {
margin-left: 1rem;
}
.header-extension {
margin-top: -1rem;
margin-bottom: 1rem;
background: #ddd;
}
.tree-list {
display: grid;
// mode name
grid-template-columns: auto 1fr 4fr auto auto;
svg {
color: #777;
}
.size {
text-align: right;
}
.name.blob a {
color: $gray-900;
}
.mode, .commit, .commit a, .date, .size {
color: $gray-700;
}
& > div {
padding: 0.1rem 0.5rem;
background: transparent;
&.id {
text-align: right;
}
&.comments {
text-align: center;
}
@for $i from 1 through 5 {
&:nth-child(5n+#{$i}) {
grid-column-start: $i;
}
// Striped rows
&:nth-child(10n+#{$i}) {
background: rgba(0,0,0,.05);
}
}
}
}
.code-view {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto;
.lines {
grid-column-start: 1;
grid-row-start: 1;
border-right: 1px solid #444;
text-align: right;
}
.highlight {
grid-column-start: 2;
grid-row-start: 1;
padding-left: 1rem;
background: transparent;
overflow-x: hidden;
pre {
background: transparent;
}
}
.ruler {
background: transparent;
grid-column-start: 2;
grid-row-start: 1;
display: block;
padding-left: calc(1rem + 4px);
height: 100%;
pointer-events: none;
pre {
background: transparent;
}
& > span {
height: 100%;
display: inline-block;
border-right: 1px solid $gray-200;
}
}
}
|