|
1 | 1 | @use '~igniteui-dockmanager/dist/collection/styles/igc.themes'; |
| 2 | +@use 'igniteui-angular/theming' as *; |
2 | 3 |
|
3 | 4 | .actionItem { |
4 | | - margin-bottom: 20px; |
| 5 | + margin-block-end: rem(20px); |
5 | 6 | } |
6 | 7 |
|
7 | 8 | .finjs-icons { |
8 | | - display: flex; |
9 | | - align-items: center; |
10 | | - igx-icon { |
11 | | - font-size: 16px; |
12 | | - width: 16px; |
13 | | - height: 16px; |
14 | | - margin-left: 4px; |
15 | | - } |
| 9 | + display: flex; |
| 10 | + align-items: center; |
| 11 | + |
| 12 | + igx-icon { |
| 13 | + font-size: rem(16px); |
| 14 | + width: rem(16px); |
| 15 | + height: rem(16px); |
| 16 | + margin-inline-start: rem(4px); |
| 17 | + } |
16 | 18 | } |
17 | 19 |
|
18 | 20 | .changePos, |
19 | 21 | .changeNeg, |
20 | 22 | .strongPositive, |
21 | 23 | .strongNegative { |
22 | | - color: #fff !important; |
23 | | - .igx-grid__td-text { |
24 | | - padding: 2px 5px; |
25 | | - } |
| 24 | + color: contrast-color(null, 'grays', 500) !important; |
| 25 | + |
| 26 | + .igx-grid__td-text { |
| 27 | + padding: rem(2px) rem(5px); |
| 28 | + } |
26 | 29 | } |
| 30 | + |
27 | 31 | .positive { |
28 | | - color: #4eb862 !important; |
| 32 | + color: color(null, 'success', 500) !important; |
29 | 33 | } |
| 34 | + |
30 | 35 | .positive.strongPositive { |
31 | | - .igx-grid__td-text { |
32 | | - color: rgba(78, 184, 98, 0.8) !important; |
33 | | - } |
| 36 | + .igx-grid__td-text { |
| 37 | + color: color(null, 'success', 500, .8) !important; |
| 38 | + } |
34 | 39 | } |
| 40 | + |
35 | 41 | .negative { |
36 | | - color: #d31642 !important; |
| 42 | + color: color(null, 'error', 500) !important; |
37 | 43 | } |
| 44 | + |
38 | 45 | .negative.strongNegative { |
39 | | - .igx-grid__td-text { |
40 | | - color: rgba(255, 19, 74, 0.8) !important; |
41 | | - } |
| 46 | + .igx-grid__td-text { |
| 47 | + color: color(null, 'success', 500, .8) !important; |
| 48 | + } |
42 | 49 | } |
| 50 | + |
43 | 51 | // NORMAL |
44 | 52 | // positive |
45 | 53 | .changePos { |
46 | | - .igx-grid__td-text { |
47 | | - background: #335e3b; |
48 | | - } |
| 54 | + .igx-grid__td-text { |
| 55 | + background: color(null, 'success', 500, .5); |
| 56 | + } |
49 | 57 | } |
| 58 | + |
50 | 59 | .changePos1 { |
51 | | - background: #335e3b; |
52 | | - color: #fff; |
| 60 | + background: color(null, 'success', 500, .5); |
| 61 | + color: contrast-color(null, 'grays', 900); |
53 | 62 | } |
| 63 | + |
54 | 64 | .changePos2 { |
55 | | - .igx-grid__td-text { |
56 | | - border-right: 4px solid #335e3b; |
57 | | - padding-right: 15px; |
58 | | - } |
| 65 | + .igx-grid__td-text { |
| 66 | + border-inline-end: rem(4px) solid color(null, 'success', 500, .5); |
| 67 | + padding-inline-end: rem(15px); |
| 68 | + } |
59 | 69 | } |
| 70 | + |
60 | 71 | // negative |
61 | 72 | .changeNeg { |
62 | | - .igx-grid__td-text { |
63 | | - background: #7a1c32; |
64 | | - } |
| 73 | + .igx-grid__td-text { |
| 74 | + background: color(null, 'error', 500, .5); |
| 75 | + } |
65 | 76 | } |
| 77 | + |
66 | 78 | .changeNeg1 { |
67 | | - color: #fff; |
68 | | - background: #7a1c32; |
| 79 | + background: color(null, 'error', 500, .5); |
| 80 | + color: contrast-color(null, 'grays', 900); |
69 | 81 | } |
| 82 | + |
70 | 83 | .changeNeg2 { |
71 | | - .igx-grid__td-text { |
72 | | - border-right: 4px solid #7a1c32; |
73 | | - padding-right: 9px; |
74 | | - } |
| 84 | + .igx-grid__td-text { |
| 85 | + border-inline-end: rem(4px) solid color(null, 'error', 500, .5); |
| 86 | + padding-inline-end: rem(9px); |
| 87 | + } |
75 | 88 | } |
76 | 89 |
|
77 | 90 | // STRONG |
78 | 91 | // positive |
79 | 92 | .strongPositive { |
80 | | - .igx-grid__td-text { |
81 | | - background: #459a55; |
82 | | - } |
| 93 | + .igx-grid__td-text { |
| 94 | + background: color(null, 'success', 500); |
| 95 | + } |
83 | 96 | } |
| 97 | + |
84 | 98 | .strongPositive1 { |
85 | | - background: #459a55; |
86 | | - color: #fff; |
| 99 | + background: color(null, 'success', 500); |
| 100 | + color: contrast-color(null, 'grays', 900); |
87 | 101 | } |
| 102 | + |
88 | 103 | .strongPositive2 { |
89 | | - .igx-grid__td-text { |
90 | | - border-right: 4px solid #459a55; |
91 | | - padding-right: 15px; |
92 | | - } |
| 104 | + .igx-grid__td-text { |
| 105 | + border-inline-end: rem(4px) solid color(null, 'success', 500); |
| 106 | + padding-inline-end: rem(15px); |
| 107 | + } |
93 | 108 | } |
| 109 | + |
94 | 110 | // negative |
95 | 111 | .strongNegative { |
96 | | - .igx-grid__td-text { |
97 | | - background: #d31642; |
98 | | - color: #fff; |
99 | | - } |
| 112 | + .igx-grid__td-text { |
| 113 | + background: color(null, 'error', 500); |
| 114 | + color: contrast-color(null, 'grays', 900); |
| 115 | + } |
100 | 116 | } |
| 117 | + |
101 | 118 | .strongNegative1 { |
102 | | - background: #d31642; |
103 | | - color: #fff; |
| 119 | + background: color(null, 'error', 500); |
| 120 | + color: contrast-color(null, 'grays', 900); |
104 | 121 | } |
| 122 | + |
105 | 123 | .strongNegative2 { |
106 | | - .igx-grid__td-text { |
107 | | - border-right: 4px solid #d31642; |
108 | | - padding-right: 9px; |
109 | | - } |
| 124 | + .igx-grid__td-text { |
| 125 | + border-inline-end: rem(4px) solid color(null, 'error', 500); |
| 126 | + padding-inline-end: rem(9px); |
| 127 | + } |
110 | 128 | } |
111 | 129 |
|
112 | 130 | :host ::ng-deep { |
113 | | - .grid-area { |
114 | | - margin-top: 1rem; |
115 | | - overflow-y: hidden; |
116 | | - overflow-x: hidden; |
117 | | - width: 100%; |
118 | | - } |
119 | | - |
120 | | - // selected |
121 | | - .igx-grid__td--column-selected.changePos1, |
122 | | - .igx-grid__td--column-selected.changePos2, |
123 | | - .igx-grid__td--column-selected.changePos { |
124 | | - background-color: #335e3b !important; |
125 | | - .finjs-icons, |
126 | | - .igx-grid__td-text { |
127 | | - color: #fff; |
128 | | - } |
129 | | - } |
130 | | - .igx-grid__td--column-selected.changeNeg1, |
131 | | - .igx-grid__td--column-selected.changeNeg2, |
132 | | - .igx-grid__td--column-selected.changeNeg { |
133 | | - background-color: #7a1c32 !important; |
134 | | - .finjs-icons, |
135 | | - .igx-grid__td-text { |
136 | | - color: #fff; |
137 | | - } |
138 | | - } |
139 | | - |
140 | | - // selected |
141 | | - .igx-grid__td--column-selected.strongPositive1, |
142 | | - .igx-grid__td--column-selected.strongPositive2, |
143 | | - .igx-grid__td--column-selected.strongPositive { |
144 | | - background-color: #459a55 !important; |
145 | | - .finjs-icons, |
146 | | - .igx-grid__td-text { |
147 | | - color: #fff; |
148 | | - } |
149 | | - } |
150 | | - .igx-grid__td--column-selected.strongNegative1, |
151 | | - .igx-grid__td--column-selected.strongNegative2, |
152 | | - .igx-grid__td--column-selected.strongNegative { |
153 | | - background-color: #d31642 !important; |
154 | | - .finjs-icons, |
155 | | - .igx-grid__td-text { |
156 | | - color: #fff; |
157 | | - } |
158 | | - } |
| 131 | + .grid-area { |
| 132 | + margin-block-start: 1rem; |
| 133 | + overflow-y: hidden; |
| 134 | + overflow-x: hidden; |
| 135 | + width: 100%; |
| 136 | + } |
| 137 | + |
| 138 | + // selected |
| 139 | + .igx-grid__td--column-selected.changePos1, |
| 140 | + .igx-grid__td--column-selected.changePos2, |
| 141 | + .igx-grid__td--column-selected.changePos { |
| 142 | + background-color: color(null, 'success', 500) !important; |
| 143 | + |
| 144 | + .finjs-icons, |
| 145 | + .igx-grid__td-text { |
| 146 | + color: contrast-color(null, 'grays', 900);; |
| 147 | + } |
| 148 | + } |
| 149 | + |
| 150 | + .igx-grid__td--column-selected.changeNeg1, |
| 151 | + .igx-grid__td--column-selected.changeNeg2, |
| 152 | + .igx-grid__td--column-selected.changeNeg { |
| 153 | + background-color: color(null, 'error', 500) !important; |
| 154 | + |
| 155 | + .finjs-icons, |
| 156 | + .igx-grid__td-text { |
| 157 | + color: contrast-color(null, 'grays', 900); |
| 158 | + } |
| 159 | + } |
| 160 | + |
| 161 | + // selected |
| 162 | + .igx-grid__td--column-selected.strongPositive1, |
| 163 | + .igx-grid__td--column-selected.strongPositive2, |
| 164 | + .igx-grid__td--column-selected.strongPositive { |
| 165 | + background-color: color(null, 'success', 500) !important; |
| 166 | + |
| 167 | + .finjs-icons, |
| 168 | + .igx-grid__td-text { |
| 169 | + color: contrast-color(null, 'grays', 900); |
| 170 | + } |
| 171 | + } |
| 172 | + |
| 173 | + .igx-grid__td--column-selected.strongNegative1, |
| 174 | + .igx-grid__td--column-selected.strongNegative2, |
| 175 | + .igx-grid__td--column-selected.strongNegative { |
| 176 | + background-color: color(null, 'error', 500) !important; |
| 177 | + |
| 178 | + .finjs-icons, |
| 179 | + .igx-grid__td-text { |
| 180 | + color: contrast-color(null, 'grays', 900); |
| 181 | + } |
| 182 | + } |
159 | 183 | } |
0 commit comments