UNPKG

17.2 kBSCSSView Raw
1/*
2- todo {
3- loading overlay colors {
4- rich select colors {
5 */
6
7$ag-icons-path: "./icons/" !default;
8$ag-icons-filter: "initial" !default;
9
10@mixin icon-background($icon) {
11 width: 12px;
12 height: 12px;
13 background: transparent url("#{$ag-icons-path}#{$icon}.svg") center no-repeat;
14 background-size: 12px 12px;
15 filter: $ag-icons-filter;
16}
17
18.ag-icon:not(.ag-faded) {
19 opacity: 0.8;
20}
21
22$cell-padding: 2px;
23$checkbox-horizontal-margin: 4px;
24$tool-panel-box-padding: 4px 4px 10px 4px;
25
26.ag-#{$ag-style} {
27 .ag-numeric-cell {
28 text-align: right;
29 }
30
31 .ag-header-cell-label {
32 display: flex;
33 & > span {
34 float: left;
35 }
36 .ag-header-icon {
37 margin-top: 2px;
38 }
39
40 .ag-header-cell-text {
41 white-space: nowrap;
42 overflow: hidden;
43 text-overflow: ellipsis;
44 }
45 }
46
47 .ag-numeric-header {
48 .ag-header-cell-label {
49 flex-direction: row-reverse;
50 }
51
52 .ag-header-cell-menu-button {
53 float: left;
54 }
55
56 .ag-header-cell-label {
57 width: calc(100% - 12px);
58 float: right;
59 & > span {
60 float: right;
61 }
62 }
63 }
64
65 .ag-header-cell-resize {
66 position: absolute;
67 right: 0;
68 }
69
70 .ag-rtl .ag-header-cell-resize {
71 position: absolute;
72 left: 0;
73 right: auto;
74 }
75
76 // copying bootstrap with line-height, sorts out alignment problems with images beside text
77 line-height: 1.4;
78 font-family: $ag-root-font-family;
79 font-size: $ag-root-font-size;
80 color: $ag-foreground-1;
81 // changing the image is same as what bootstrap does, without the images didn't align right
82 img {
83 vertical-align: middle;
84 border: 0;
85 }
86 .ag-root {
87 border: $ag-border-1;
88 }
89 .ag-cell-data-changed {
90 background-color: $ag-value-change-value-highlight-background-color;
91 }
92
93 .ag-cell-data-changed-animation {
94 background-color: transparent;
95 transition: background-color 1s;
96 }
97 .ag-cell {
98 }
99 //
100 .ag-cell-not-inline-editing {
101 padding: $ag-cell-padding;
102 /* compensate for the transparent borders; */
103 padding-left: $ag-cell-padding - 1;
104 }
105 // we do not want to color the range color when the cell is also focused
106 .ag-cell-range-selected-1:not(.ag-cell-focus) {
107 background-color: $ag-range-selected-color-1;
108 }
109 .ag-cell-range-selected-2:not(.ag-cell-focus) {
110 background-color: $ag-range-selected-color-2;
111 }
112 .ag-cell-range-selected-3:not(.ag-cell-focus) {
113 background-color: $ag-range-selected-color-3;
114 }
115 .ag-cell-range-selected-4:not(.ag-cell-focus) {
116 background-color: $ag-range-selected-color-4;
117 }
118 .ag-cell-focus {
119 border: $ag-cell-focused-border;
120 }
121 .ag-cell-no-focus {
122 border-top: $ag-cell-no-focus-border-top;
123 border-bottom: $ag-cell-no-focus-border-bottom;
124 }
125 .ag-ltr .ag-cell-no-focus {
126 border-right: $ag-cell-ltr-no-focus-border-right;
127 border-left: $ag-cell-ltr-no-focus-border-left;
128 }
129 .ag-rtl .ag-cell-no-focus {
130 border-right: $ag-cell-rtl-no-focus-border-right;
131 border-left: $ag-cell-rtl-no-focus-border-left;
132 }
133
134 $toolpanel-indent-size: 10px;
135 $row-group-indent-size: 10px;
136 // indentation loop
137 @for $i from 1 to 50 {
138 .ag-ltr .ag-toolpanel-indent-#{$i} {
139 padding-left: $i * $toolpanel-indent-size;
140 }
141 .ag-rtl .ag-toolpanel-indent-#{$i} {
142 padding-right: $i * $toolpanel-indent-size;
143 }
144
145 .ag-ltr .ag-row-group-indent-#{$i} {
146 padding-left: $i * $row-group-indent-size;
147 }
148 .ag-rtl .ag-row-group-indent-#{$i} {
149 padding-right: $i * $row-group-indent-size;
150 }
151 }
152
153 // we use rtl and ltr below, even though it's the same style, so it propertly
154 .ag-rtl .ag-cell-first-right-pinned {
155 border-left: $ag-border-1;
156 }
157 .ag-ltr .ag-cell-first-right-pinned {
158 border-left: $ag-border-1;
159 }
160 .ag-rtl .ag-cell-last-left-pinned {
161 border-right: $ag-border-1;
162 }
163 .ag-ltr .ag-cell-last-left-pinned {
164 border-right: $ag-border-1;
165 }
166 // this needs to be after the other cell items, so the boarder gets preference
167 .ag-cell-highlight {
168 border: $ag-cell-highlight-border;
169 }
170 .ag-cell-highlight-animation {
171 transition: border 1s;
172 }
173 // used by the animateShowChangedCellRenderer
174 .ag-value-change-delta {
175 padding-right: 2px;
176 }
177 .ag-value-change-delta-up {
178 color: $ag-value-change-delta-up-color;
179 }
180 .ag-value-change-delta-down {
181 color: $ag-value-change-delta-down-color;
182 }
183 .ag-value-change-value {
184 background-color: transparent;
185 border-radius: 1px;
186 padding-left: 1px;
187 padding-right: 1px;
188 transition: background-color 1s;
189 }
190 .ag-value-change-value-highlight {
191 background-color: $ag-value-change-value-highlight-background-color;
192 transition: background-color 0.1s;
193 }
194 .ag-rich-select {
195 font-size: 14px;
196 border: $ag-border-1;
197 background-color: $ag-select-background;
198 }
199 .ag-rich-select-value {
200 padding: 2px;
201 }
202 .ag-rich-select-list {
203 border-top: 1px solid $ag-separator-color;
204 }
205 .ag-rich-select-row {
206 padding: 2px;
207 }
208 .ag-rich-select-row-selected {
209 background-color: $ag-menu-option-active-color;
210 }
211 .ag-large-text {
212 border: $ag-border-1;
213 }
214 .ag-large-textarea {
215 }
216 //
217 // HEADER SECTION
218 .ag-header-select-all,
219 .ag-header-cell-menu-button {
220 margin-top: 3px;
221 line-height: 1rem;
222 }
223 .ag-header-select-all {
224 padding-right: $checkbox-horizontal-margin;
225 }
226
227 .ag-filter-header-container > label {
228 margin-bottom: 0;
229 }
230
231 .ag-header-cell {
232 padding: 2px;
233 padding-top: 4px;
234 }
235
236 .ag-header {
237 color: $ag-header-foreground-1;
238 background: $ag-header-background-1;
239 border-bottom: $ag-border-1;
240 font-weight: $ag-header-font-weight;
241 }
242 .ag-header-icon {
243 color: $ag-header-foreground-1;
244 stroke: none;
245 fill: $ag-header-foreground-1;
246 }
247
248 .ag-filter-icon {
249 display: inline-block;
250 }
251 .ag-sort-ascending-icon:empty {
252 display: inline-block;
253 @include icon-background("asc");
254 }
255
256 .ag-sort-descending-icon:empty {
257 display: inline-block;
258 @include icon-background("desc");
259 }
260
261 .ag-sort-none-icon:empty {
262 display: inline-block;
263 @include icon-background("none");
264 }
265
266 .ag-layout-for-print .ag-header-container {
267 background: $ag-header-background-1;
268 border-bottom: $ag-border-1;
269 }
270 .ag-ltr .ag-header-cell {
271 border-right: $ag-border-1;
272 }
273 .ag-rtl .ag-header-cell {
274 border-left: $ag-border-1;
275 }
276 .ag-header-cell-moving .ag-header-cell-label {
277 opacity: 0.5;
278 }
279 .ag-header-cell-moving {
280 background-color: rgb(190, 190, 190);
281 }
282 .ag-ltr .ag-header-group-cell {
283 border-right: $ag-border-1;
284 }
285 .ag-rtl .ag-header-group-cell {
286 border-left: $ag-border-1;
287 }
288 .ag-header-group-cell-with-group {
289 border-bottom: $ag-border-1;
290 }
291 .ag-header-cell-label {
292 }
293 .ag-header-cell-text {
294 }
295 .ag-header-group-cell-label {
296 padding: 2px;
297 padding-top: 4px;
298 }
299 .ag-rtl .ag-header-group-text {
300 margin-left: 2px;
301 }
302 .ag-ltr .ag-header-group-text {
303 margin-right: 2px;
304 }
305
306 .ag-header-cell-menu-button:empty {
307 @include icon-background("menu");
308 }
309
310 .ag-ltr .ag-pinned-right-header {
311 border-left: $ag-border-1;
312 }
313 .ag-rtl .ag-pinned-left-header {
314 border-right: $ag-border-1;
315 }
316 .ag-header-cell-menu-button:hover {
317 }
318 .ag-body {
319 background-color: $ag-background-1;
320 }
321 .ag-row-odd {
322 background-color: $ag-row-odd-background-color;
323 }
324 .ag-row-even {
325 background-color: $ag-row-even-background-color;
326 }
327 .ag-row-selected {
328 background-color: $ag-row-selected-background-color;
329 }
330 .ag-row-stub {
331 background-color: $ag-row-stub-background-color;
332 }
333 .ag-stub-cell {
334 padding: 2px 2px 2px 10px;
335 }
336 .ag-floating-top {
337 background-color: $ag-row-floating-background-color;
338 }
339 .ag-floating-top {
340 .ag-row {
341 background-color: $ag-row-floating-background-color;
342 }
343 }
344 .ag-floating-bottom {
345 background-color: $ag-row-floating-background-color;
346 }
347 .ag-floating-bottom {
348 .ag-row {
349 background-color: $ag-row-floating-background-color;
350 }
351 }
352 .ag-overlay-loading-wrapper {
353 background-color: rgba(255, 255, 255, 0.5);
354 }
355 .ag-overlay-loading-center {
356 background-color: #ffffff;
357 border: $ag-border-1;
358 border-radius: 10px;
359 padding: 10px;
360 color: black;
361 }
362 .ag-overlay-no-rows-center {
363 background-color: #ffffff;
364 border: $ag-border-1;
365 border-radius: 10px;
366 padding: 10px;
367 }
368 .ag-group-cell-entire-row {
369 background-color: $ag-background-1;
370 padding: $ag-cell-padding;
371 }
372 .ag-footer-cell-entire-row {
373 background-color: $ag-background-1;
374 padding: $ag-cell-padding;
375 }
376 .ag-group-cell {
377 font-style: italic;
378 }
379 .ag-ltr .ag-group-expanded {
380 padding-right: 4px;
381 }
382 .ag-rtl .ag-group-expanded {
383 padding-left: 4px;
384 }
385 .ag-ltr .ag-group-contracted {
386 padding-right: 4px;
387 }
388 .ag-rtl .ag-group-contracted {
389 padding-left: 4px;
390 }
391 .ag-ltr .ag-group-loading {
392 padding-right: 4px;
393 }
394 .ag-rtl .ag-group-loading {
395 padding-left: 4px;
396 }
397 .ag-ltr .ag-group-value {
398 padding-right: 2px;
399 }
400 .ag-rtl .ag-group-value {
401 padding-left: 2px;
402 }
403 .ag-ltr .ag-group-checkbox {
404 padding-right: 2px;
405 }
406 .ag-rtl .ag-group-checkbox {
407 padding-left: 2px;
408 }
409 .ag-group-child-count {
410 /* display: inline-block; */ // this breaks the overlow ellipsis
411 }
412 .ag-footer-cell {
413 font-style: italic;
414 }
415
416 .ag-menu {
417 border: 1px solid $ag-border-color-2;
418 background-color: $ag-background-1;
419 //color ag-foreground-1
420 cursor: default;
421 font-family: $ag-root-font-family;
422 font-size: $ag-root-font-size;
423
424 .ag-tab-header {
425 background-color: $ag-tab-background;
426 }
427 .ag-tab {
428 padding: $ag-tab-padding;
429 margin: 2px 2px 0px 2px;
430 display: inline-block;
431 border-right: 1px solid transparent;
432 border-left: 1px solid transparent;
433 border-top: 1px solid transparent;
434 border-top-right-radius: 2px;
435 border-top-left-radius: 2px;
436 // need to specify color and stroke again here because
437 // for blue, the tab header is different to the grid header
438 }
439 .ag-tab-selected {
440 background-color: $ag-tab-selected-background;
441 border-right: $ag-tab-border;
442 border-left: $ag-tab-border;
443 border-top: $ag-tab-border;
444 }
445 }
446 .ag-menu-separator {
447 border-top: 1px solid $ag-separator-color;
448 }
449 .ag-menu-option {
450 }
451 //
452 .ag-menu-option-active {
453 background-color: $ag-menu-option-active-color;
454 }
455 .ag-menu-option-icon {
456 padding: $ag-menu-option-padding;
457 vertical-align: middle;
458 }
459 .ag-menu-option-text {
460 padding: $ag-menu-option-padding;
461 vertical-align: middle;
462 }
463 .ag-menu-option-shortcut {
464 padding: $ag-menu-option-shortcut-padding;
465 vertical-align: middle;
466 }
467 .ag-menu-option-popup-pointer {
468 padding: $ag-menu-option-padding;
469 vertical-align: middle;
470 display: table-cell;
471 }
472 .ag-menu-option-disabled {
473 opacity: 0.5;
474 }
475 .ag-menu-column-select-wrapper {
476 margin: 2px;
477 }
478 .ag-filter-checkbox {
479 margin-right: 4px;
480 margin-bottom: 0;
481 display: inline-block;
482 }
483 .ag-filter-header-container {
484 padding: 2px 4px 2px 4px;
485 border-bottom: 1px solid $ag-separator-color;
486 }
487 .ag-filter-apply-panel {
488 border-top: 1px solid $ag-separator-color;
489 padding: 2px 0px 2px 4px;
490 }
491 .ag-filter-value {
492 }
493 .ag-virtual-list-container {
494 padding: $tool-panel-box-padding;
495 }
496 .ag-filter-header-container {
497 }
498 .ag-ltr .ag-selection-checkbox {
499 padding-right: $checkbox-horizontal-margin;
500 }
501 .ag-rtl .ag-selection-checkbox {
502 padding-left: $checkbox-horizontal-margin;
503 }
504 .ag-paging-panel {
505 padding: 4px;
506 }
507 .ag-paging-button {
508 margin-left: 4px;
509 margin-right: 4px;
510 }
511 .ag-paging-row-summary-panel {
512 display: inline-block;
513 width: 300px;
514 }
515 .ag-column-panel {
516 background-color: $ag-background-1;
517 border-bottom: $ag-border-1;
518 border-top: $ag-border-1;
519 color: $ag-foreground-1;
520 }
521 .ltr .ag-column-panel {
522 border-right: $ag-border-1;
523 }
524 .rtl .ag-column-panel {
525 border-left: $ag-border-1;
526 }
527 .ag-status-bar {
528 color: $ag-foreground-1;
529 background-color: $ag-background-1;
530 font-size: $ag-root-font-size;
531 height: 22px;
532 border-bottom: $ag-border-1;
533 border-left: $ag-border-1;
534 border-right: $ag-border-1;
535 padding: 2px;
536 }
537 .ag-status-bar-aggregations {
538 float: right;
539 }
540 .ag-status-bar-item {
541 padding-left: 10px;
542 }
543 .ag-column-drop-cell {
544 background: $ag-button-background-1;
545 color: $ag-button-foreground-1;
546 border: 1px solid $ag-button-border-1;
547 }
548 .ag-column-drop-cell-ghost {
549 opacity: 0.5;
550 }
551 .ag-column-drop-cell-text {
552 padding-left: 2px;
553 padding-right: 2px;
554 }
555 .ag-column-drop-cell-button {
556 border: 1px solid transparent;
557 padding-left: 2px;
558 padding-right: 2px;
559 border-radius: 3px;
560 }
561 .ag-column-drop-cell-button:hover {
562 border: $ag-border-1;
563 }
564
565 .ag-column-drop-empty-message {
566 padding-left: 2px;
567 padding-right: 2px;
568 color: grey;
569 }
570
571 .ag-column-drop-icon {
572 margin: 6px 3px 0px 3px;
573 }
574 .ag-column-drop {
575 background-color: $ag-background-1;
576 }
577 /* this is for the rowGroupPanel, that appears along the top of the grid */
578 .ag-column-drop-horizontal {
579 padding: 2px;
580 border-top: $ag-border-1;
581 border-left: $ag-border-1;
582 border-right: $ag-border-1;
583 //.ag-column-drop-cell
584 // padding 2px
585 }
586 /* this is for the column drops that appear in the toolPanel */
587 .ag-column-drop-vertical {
588 padding: $tool-panel-box-padding;
589 border-bottom: $ag-border-1;
590 overflow: auto;
591
592 .ag-column-drop-cell {
593 margin-top: 2px;
594 }
595
596 .ag-column-drop-empty-message {
597 padding: 5px;
598 }
599 }
600
601 .ag-pivot-mode {
602 border-bottom: $ag-border-1;
603 padding: 2px 4px 3px 4px;
604 background-color: $ag-background-1;
605 }
606 .ag-column-panel {
607 .ag-column-select-panel {
608 padding: $tool-panel-box-padding;
609 padding-left: 0; // compensate for eIndent
610 border-bottom: $ag-border-1;
611 overflow: auto;
612 }
613 }
614
615 .ag-select-agg-func-popup {
616 cursor: default;
617 position: absolute;
618 font-size: 14px;
619 background-color: $ag-select-background;
620 border: $ag-border-1;
621 }
622 .ag-select-agg-func-item {
623 padding-left: 2px;
624 padding-right: 2px;
625 }
626
627 .ag-select-agg-func-item:hover {
628 background-color: $ag-menu-option-active-color;
629 }
630
631 .ag-floating-filter-body {
632 margin-right: 20px;
633 width: calc(100% - 20px);
634 }
635
636 .ag-floating-filter-button {
637 margin-top: -20px;
638 display: inline-block;
639 float: right;
640 button {
641 border: 0;
642 background: transparent;
643 padding: 3px;
644 margin: 0;
645 }
646 }
647
648 .ag-rtl {
649 .ag-floating-filter-body {
650 margin-right: 0;
651 margin-left: 20px;
652 float: right;
653 }
654
655 .ag-floating-filter-button {
656 float: left;
657 }
658 }
659
660 .ag-sort-order {
661 margin-left: 0.5em;
662 font-size: 0.8em;
663 &::before {
664 content: "(";
665 }
666
667 &::after {
668 content: ")";
669 }
670 }
671
672 .ag-details-row {
673 padding: 20px;
674 box-sizing: border-box;
675 }
676}