This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 401
/
Copy pathstaging-view.less
105 lines (86 loc) · 1.95 KB
/
staging-view.less
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
@import "variables";
.github-StagingView {
flex: 1;
display: flex;
flex-direction: column;
&-group {
flex: 1;
display: flex;
flex-direction: column;
}
&-header {
display: flex;
align-items: center;
padding: 0 0 0 @component-padding;
font-weight: 600;
border-top: 1px solid @panel-heading-border-color;
border-bottom: 1px solid @panel-heading-border-color;
.github-UnstagedChanges > & {
border-top: none;
}
.icon {
text-align: center;
&:before {
color: @text-color-subtle;
margin-right: @component-padding / 1.2;
vertical-align: middle;
}
}
}
&-headerButton {
height: 2.5em;
border: none;
padding: 0 @component-padding;
font-weight: normal;
border-left: 1px solid @panel-heading-border-color;
white-space: nowrap;
background: none;
cursor: default;
&:disabled {
color: @text-color-subtle;
}
&:active {
background-color: @button-background-color-hover;
}
&.icon:before {
margin-right: 0;
font-size: 1em;
text-align: left;
}
&--fullWidth {
border-left: none;
border-bottom: 1px solid @panel-heading-border-color;
}
&--iconOnly:before {
width: auto;
}
}
&-title {
flex: 1;
margin-right: @component-padding;
line-height: 2.5em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&-list {
flex: 1 1 0;
overflow-x: auto;
}
}
//
// States
// -----------------------------------------
.github-StagingView-group-truncatedMsg {
padding: @component-padding / 2 @component-padding;
}
.github-StagingView-group.is-focused .is-selected {
// is selected
color: @text-color-selected;
background: @background-color-selected;
// also has focus
.github-StagingView:focus & {
color: contrast(@button-background-color-selected);
background: @button-background-color-selected;
}
}