forked from atom/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlists.less
156 lines (135 loc) · 3.77 KB
/
lists.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.list-group,
.list-tree {
li:not(.list-nested-item),
li.list-nested-item > .list-item {
.text(normal);
}
.generate-list-item-text-color(@class) {
li:not(.list-nested-item).text-@{class},
li.list-nested-item.text-@{class} > .list-item {
.text(@class);
}
}
.generate-list-item-text-color(subtle);
.generate-list-item-text-color(info);
.generate-list-item-text-color(success);
.generate-list-item-text-color(warning);
.generate-list-item-text-color(error);
.generate-list-item-text-color(selected);
.generate-list-item-status-color(@color, @status) {
li:not(.list-nested-item).status-@{status},
li.list-nested-item.status-@{status} > .list-item {
color: @color;
}
li:not(.list-nested-item).selected.status-@{status},
li.list-nested-item.selected.status-@{status} > .list-item {
color: @color;
}
}
.generate-list-item-status-color(@text-color-added, added);
.generate-list-item-status-color(@text-color-ignored, ignored);
.generate-list-item-status-color(@text-color-modified, modified);
.generate-list-item-status-color(@text-color-removed, removed);
.generate-list-item-status-color(@text-color-renamed, renamed);
li:not(.list-nested-item).selected,
li.list-nested-item.selected > .list-item {
.text(selected);
}
.no-icon {
padding-left: calc(@ui-padding-icon ~"+" @component-icon-size);
}
}
.list-tree.has-collapsable-children .list-nested-item > .list-item::before {
text-align: center;
}
.select-list ol.list-group,
&.select-list ol.list-group {
li.two-lines {
.secondary-line {
color: @text-color-subtle;
}
&.selected .secondary-line {
color: fade(@text-color-highlight, 50%);
text-shadow: none;
}
}
// Reset icon to allow nesting
.icon {
display: initial;
height: initial;
}
// We want to highlight the background of the list items because we dont
// know their size.
li.selected {
background-color: @background-color-selected;
&:before{ display: none; }
}
&.mark-active {
@active-icon-size: 14px;
// pad in front of the text where the icon would be We'll pad the non-
// active items with a 'fake' icon so other classes can pad the item
// without worrying about the icon padding.
li:before {
content: '';
background-color: transparent;
position: static;
display: inline-block;
left: auto; right: auto;
height: @active-icon-size;
width: @active-icon-size;
font-size: @active-icon-size;
}
> li:not(.active):before {
margin-right: @ui-padding-icon;
}
li.active {
.octicon(check, @active-icon-size);
&:before {
margin-right: @ui-padding-icon;
color: @text-color-success;
}
}
}
}
.select-list.popover-list {
@popover-list-padding: @ui-padding/4;
background-color: @overlay-background-color;
box-shadow: 0 2px 8px 1px rgba(0, 0, 0, 0.3);
padding: @popover-list-padding;
border-radius: @component-border-radius;
atom-text-editor[mini] {
margin-bottom: @popover-list-padding;
}
ol.list-group {
margin-top: @popover-list-padding;
}
.list-group li {
padding-left: @popover-list-padding;
}
// Un-reset icon in popover lists
.icon.icon {
display: inline-block;
height: inherit;
}
}
.ui-sortable {
li {
line-height: 2.5;
}
// For sortable lists in the settings view
li.ui-sortable-placeholder {
visibility: visible !important;
background-color: darken(@pane-item-background-color, 10%);
}
}
li.ui-draggable-dragging,
li.ui-sortable-helper {
line-height: @ui-line-height;
height: @ui-line-height;
border: 0;
border-radius: 0;
list-style: none;
padding: 0 @ui-padding;
background: @background-color-highlight;
box-shadow: 0 0 1px @base-border-color;
}