]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.scss
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / datatable / table / table.component.scss
CommitLineData
e306af50
TL
1@import 'defaults.scss';
2
3@mixin row-details-icon {
4 font-family: 'ForkAwesome', sans-serif;
5 font-size: 1rem;
6 color: $gray-900;
7 line-height: 1;
8}
11fdf7f2
TL
9
10.dataTables_wrapper {
11 margin-bottom: 25px;
12 .separator {
13 height: 30px;
14 border-left: 1px solid $color-table-seperator-border;
15 padding-left: 5px;
16 margin-left: 5px;
17 display: inline-block;
18 vertical-align: middle;
19 }
9f95a23c 20
11fdf7f2 21 .widget-toolbar {
11fdf7f2 22 float: right;
11fdf7f2 23 border-left: 1px solid $color-table-seperator-border;
11fdf7f2 24 padding: 0 8px;
9f95a23c
TL
25
26 .form-check {
27 padding-left: 0;
28 }
11fdf7f2 29 }
9f95a23c 30
11fdf7f2
TL
31 .dropdown-menu {
32 white-space: nowrap;
e306af50
TL
33 & li {
34 cursor: default;
35 & label {
11fdf7f2
TL
36 width: 100%;
37 margin-bottom: 0;
e306af50
TL
38 padding-left: 0;
39 padding-right: 0;
11fdf7f2
TL
40 cursor: pointer;
41 &:hover {
42 background-color: $color-table-dropdown-bg;
43 }
e306af50 44 & input {
11fdf7f2
TL
45 cursor: pointer;
46 }
47 }
48 }
49 }
11fdf7f2
TL
50 .dataTables_length > input {
51 line-height: 25px;
52 text-align: right;
53 }
54}
55.dataTables_header {
56 background-color: $color-table-header-bg;
57 border: 1px solid $color-table-header-border;
58 border-bottom: none;
59 padding: 5px;
60 position: relative;
9f95a23c 61 .cd-datatable-actions {
11fdf7f2
TL
62 float: left;
63 }
64 ::ng-deep .table-filters {
65 float: right;
66 border-left: 1px solid $color-table-seperator-border;
67 padding-left: 8px;
68 }
69 ::ng-deep .table-filters label {
70 margin-right: 4px;
71 }
72 .form-group {
73 padding-left: 8px;
74 }
75 .input-group {
76 float: right;
77 border-left: 1px solid $color-table-input-border;
78 padding-left: 8px;
79 padding-right: 8px;
80 width: 40%;
81 max-width: 250px;
82 .form-control {
83 height: 30px;
84 }
11fdf7f2
TL
85 }
86 .input-group.dataTables_paginate {
87 width: 8%;
88 min-width: 85px;
89 padding-right: 8px;
90 }
9f95a23c
TL
91 .filter-chips {
92 float: right;
93 padding: 0 8px;
94 }
11fdf7f2
TL
95}
96
9f95a23c 97::ng-deep .cd-datatable {
11fdf7f2
TL
98 border: 1px solid $color-table-header-border;
99 margin-bottom: 0;
100 max-width: none !important;
9f95a23c 101
11fdf7f2
TL
102 .progress-linear {
103 display: block;
104 position: relative;
105 width: 100%;
106 height: 5px;
107 padding: 0;
108 margin: 0;
9f95a23c 109
11fdf7f2
TL
110 .container {
111 background-color: $color-table-active-row;
9f95a23c 112
11fdf7f2
TL
113 .bar {
114 left: 0;
115 height: 100%;
116 width: 100%;
117 position: absolute;
118 overflow: hidden;
119 background-color: $color-table-active-row;
120 }
9f95a23c 121
11fdf7f2
TL
122 .bar:before {
123 display: block;
124 position: absolute;
125 content: '';
126 left: -200px;
127 width: 200px;
128 height: 100%;
129 background-color: $color-table-progress-bar-active;
130 animation: progress-loading 3s linear infinite;
131 }
132 }
133 }
9f95a23c 134
11fdf7f2
TL
135 .datatable-header {
136 background-clip: padding-box;
137 background-color: $color-table-datatable-header;
138 background-image: -webkit-linear-gradient(
139 top,
140 $color-table-gradient-1 0,
141 $color-table-gradient-2 100%
142 );
143 background-image: -o-linear-gradient(
144 top,
145 $color-table-gradient-1 0,
146 $color-table-gradient-2 100%
147 );
148 background-image: linear-gradient(
149 to bottom,
150 $color-table-gradient-1 0,
151 $color-table-gradient-2 100%
152 );
153 background-repeat: repeat-x;
154 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa', endColorstr='#ffededed', GradientType=0);
9f95a23c 155
11fdf7f2
TL
156 .sort-asc,
157 .sort-desc {
158 color: $color-table-sort;
159 }
9f95a23c 160
11fdf7f2
TL
161 .datatable-header-cell {
162 @include table-cell;
9f95a23c 163
11fdf7f2
TL
164 text-align: left;
165 font-weight: bold;
9f95a23c 166
11fdf7f2
TL
167 .datatable-header-cell-label {
168 &:after {
169 font-family: ForkAwesome;
170 font-weight: 400;
171 height: 9px;
172 left: 10px;
173 line-height: 12px;
174 position: relative;
175 vertical-align: baseline;
176 width: 12px;
177 }
178 }
9f95a23c 179
11fdf7f2
TL
180 &.sortable {
181 .datatable-header-cell-label:after {
182 content: ' \f0dc';
183 }
9f95a23c 184
11fdf7f2
TL
185 &.sort-active {
186 &.sort-asc .datatable-header-cell-label:after {
187 content: ' \f160';
188 }
9f95a23c 189
11fdf7f2
TL
190 &.sort-desc .datatable-header-cell-label:after {
191 content: ' \f161';
192 }
193 }
194 }
9f95a23c 195
11fdf7f2
TL
196 &:first-child {
197 border-left: none;
198 }
199 }
200 }
201 .datatable-body {
9f95a23c
TL
202 margin-bottom: -6px;
203
11fdf7f2
TL
204 .empty-row {
205 background-color: $color-table-empty-row;
206 text-align: center;
207 font-weight: bold;
208 font-style: italic;
209 padding-top: 5px;
210 padding-bottom: 5px;
211 }
212 .datatable-body-row {
11fdf7f2
TL
213 &.clickable:hover .datatable-row-group {
214 background-color: $color-table-hover-row;
215 transition-property: background;
216 transition-duration: 0.3s;
217 transition-timing-function: linear;
218 }
219 &.datatable-row-even {
220 background-color: $color-table-even-row-bg;
221 }
222 &.datatable-row-odd {
223 background-color: $color-table-odd-row-bg;
224 }
225 &.active,
226 &.active:hover {
227 background-color: $color-table-active-row-hover;
228 }
229 .datatable-body-cell {
230 @include table-cell;
231 &:first-child {
232 border-left: none;
233 }
234 .datatable-body-cell-label {
235 display: block;
e306af50 236 height: 100%;
11fdf7f2
TL
237 }
238 }
239 }
e306af50
TL
240 .datatable-row-detail {
241 padding: 20px;
242 border-bottom: 2px solid $color-table-header-border;
243 }
244 .expand-collapse-icon {
245 display: block;
246 height: 100%;
247 text-align: center;
248 &:hover {
249 text-decoration: none;
250 }
251 }
252 .expand-collapse-icon-right:before {
253 @include row-details-icon;
254 content: '\f105';
255 }
256 .expand-collapse-icon-down:before {
257 @include row-details-icon;
258 content: '\f107';
259 }
11fdf7f2
TL
260 }
261 .datatable-footer {
262 .selected-count,
263 .page-count {
264 font-style: italic;
265 padding-left: 5px;
266 }
11fdf7f2 267 }
9f95a23c
TL
268
269 .cd-datatable-checkbox {
270 text-align: center;
271 }
11fdf7f2
TL
272}
273
274@keyframes progress-loading {
275 from {
276 left: -200px;
277 width: 15%;
278 }
279 50% {
280 width: 30%;
281 }
282 70% {
283 width: 70%;
284 }
285 80% {
286 left: 50%;
287 }
288 95% {
289 left: 120%;
290 }
291 to {
292 left: 100%;
293 }
294}