-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy path_list-view.less
134 lines (123 loc) · 2.72 KB
/
_list-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
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
//
// List view
// --------------------------------------------------
.list-group-expanded-section {
border: 1px solid @table-border-color;
border-top: 0;
padding: 15px;
&.expanded + .list-group-item-expandable,
+ .list-group-item-expandable.expanded {
border-top: 0;
}
}
.monitoring-page .list-group-expanded-section {
.log-fixed-height.empty-state-message,
.metrics .empty-state-message {
margin: 10px 0 0;
padding: 0;
text-align: left;
h2 {
margin-top: 0;
}
}
.metrics .empty-state-message .pficon-error-circle-o {
// Hide the icon so the message is consistent with logs, which doesn't have an error icon.
display: none;
}
}
.list-group-item {
padding-left: 10px;
padding-right: 10px;
}
.list-view-pf-checkbox {
border-right-color: #ddd;
font-size: 22px;
margin-bottom: (@grid-gutter-width / 4);
margin-top: (@grid-gutter-width / 4);
width: 25px;
a {
color: #555;
}
}
.list-group-item-text, .list-view-pf-additional-info {
.fa, .pficon {
font-size: @font-size-base;
margin-right: 3px;
}
}
.list-view-pf {
margin-bottom: 50px;
h2 + & {
margin-top: 20px;
}
.list-group-item:first-child {
border-top-color: #eaeaea;
}
.list-group-item-expandable {
cursor: pointer;
border: 1px solid #eaeaea;
border-left-color: transparent;
border-right-color: transparent;
&.expanded {
border-color: @table-border-color;
&, &:hover {
background-color: @list-view-expanded-bg;
}
.list-view-pf-checkbox {
border-right-color: @table-border-color;
}
}
.list-group-item-heading {
white-space: normal;
}
}
.list-group-item-heading {
font-size: @font-size-base;
small {
overflow: hidden;
text-overflow: ellipsis;
.text-muted();
}
}
.list-group-item-text {
margin-bottom: 5px;
}
}
.list-view-pf-additional-info-item {
display: inline-block;
text-align: left;
}
.list-view-pf-description {
// overrides for rules in patternfly/less/list-view.less, hence the -ms-flex
-ms-flex: 1 0 55%;
flex: 1 0 55%;
}
.list-view-pf-main-info {
padding-bottom: (@grid-gutter-width / 4);
padding-top: (@grid-gutter-width / 4);
}
@media (min-width: @screen-md-min) {
// overrides for rules in patternfly/less/list-view.less, hence the -ms-flex
.list-view-pf {
.list-group-item-heading {
-ms-flex: 1 0 auto;
flex: 1 0 auto;
margin: 0;
padding: 0 20px 0 0;
width: 50%;
}
.list-group-item-text {;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
margin: 0;
padding: 0 20px 0 0;
width: 50%;
}
}
.list-view-pf-additional-info {
width: 40%;
}
.list-view-pf-description {
width: 60%;
}
}