-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
_commit-list.scss
129 lines (115 loc) · 3.31 KB
/
_commit-list.scss
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@import '../../mixins';
/** A React component holding history's commit list */
#commit-list {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
.commit {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
border-bottom: var(--base-border);
// We need to give a bit more padding to the right to make place for the scrollbar
padding-right: calc(var(--spacing) + var(--spacing-half));
padding-left: var(--spacing);
.info {
display: flex;
flex: 1 1 auto;
flex-direction: column;
margin-top: -4px;
overflow: hidden;
min-width: 50px;
.description {
display: flex;
flex-direction: row;
margin-top: 3px;
}
.summary {
font-weight: var(--font-weight-semibold);
}
.summary,
.byline {
@include ellipsis;
}
}
.commit-indicators {
display: flex;
flex-flow: nowrap row;
flex: 1 1 auto;
justify-content: flex-end;
margin-left: var(--spacing);
color: var(--list-item-badge-color);
height: 16px;
line-height: 16px;
max-width: 50%;
.tag-indicator {
display: flex;
flex: 0 1 auto;
height: 100%;
min-width: 0;
.tag-name {
flex: 1 1 auto;
padding: 0 var(--spacing-half);
border-radius: var(--border-radius);
background: var(--list-item-badge-background-color);
box-shadow: 1px 0 0 var(--background-color);
z-index: 3;
@include ellipsis;
}
.tag-indicator-more {
flex: 0 0 auto;
width: var(--spacing);
margin-left: -5px;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
background: var(--list-item-badge-background-color);
}
}
.unpushed-indicator {
flex: 0 0 auto;
height: 100%;
border-radius: 8px;
padding: 0 var(--spacing-half);
background: var(--list-item-badge-background-color);
margin-left: var(--spacing-half);
}
}
}
.list-item.selected {
.commit {
.unpushed-indicator {
background: var(--list-item-selected-badge-background-color);
color: var(--list-item-selected-badge-color);
}
.tag-name {
background: var(--list-item-selected-badge-background-color);
color: var(--list-item-selected-badge-color);
box-shadow: 1px 0 0 var(--box-selected-background-color);
}
.tag-indicator-more {
background: var(--list-item-selected-badge-background-color);
}
}
}
.focus-within {
.list-item.selected {
.commit {
.unpushed-indicator {
background: var(--list-item-selected-active-badge-background-color);
color: var(--list-item-selected-active-badge-color);
}
.tag-name {
background: var(--list-item-selected-active-badge-background-color);
color: var(--list-item-selected-active-badge-color);
box-shadow: 1px 0 0 var(--box-selected-active-background-color);
}
.tag-indicator-more {
background: var(--list-item-selected-active-badge-background-color);
color: var(--list-item-selected-active-badge-color);
}
}
}
}
}