|
10 | 10 | ///
|
11 | 11 | /// @param {Color} $background-color [null] - The toolbar background color.
|
12 | 12 | /// @param {Color} $title-text-color [null] - The toolbar title text color.
|
13 |
| -/// @param {Color} $button-background [null] - The toolbar button background color. |
14 |
| -/// @param {Color} $button-text-color [null] - The toolbar button text color. |
15 |
| -/// @param {Color} $button-hover-background [null] - The toolbar button hover background color. |
16 |
| -/// @param {Color} $button-hover-text-color [null] - The toolbar button hover text color. |
17 |
| -/// @param {Color} $button-focus-background [null] - The toolbar button focus background color. |
18 |
| -/// @param {Color} $button-focus-text-color [null] - The toolbar button focus text color. |
19 | 13 | /// @param {Color} $dropdown-background [null] - The toolbar drop-down background color.
|
20 | 14 | /// @param {Color} $item-text-color [null] - The toolbar drop-down item text color.
|
21 | 15 | /// @param {Color} $item-hover-background [null] - The toolbar drop-down item hover background color.
|
|
41 | 35 | $schema: $light-schema,
|
42 | 36 |
|
43 | 37 | $background-color: null,
|
44 |
| - $button-background: null, |
45 | 38 | $title-text-color: null,
|
46 | 39 |
|
47 |
| - $button-text-color: null, |
48 |
| - $button-hover-background: null, |
49 |
| - $button-hover-text-color: null, |
50 |
| - $button-focus-background: null, |
51 |
| - $button-focus-text-color: null, |
52 |
| -
|
53 | 40 | $dropdown-background: null,
|
54 | 41 | $item-text-color: null,
|
55 | 42 | $item-hover-background: null,
|
|
92 | 79 | $item-focus-text-color: text-contrast($item-focus-background);
|
93 | 80 | }
|
94 | 81 |
|
95 |
| - @if not($button-hover-background) and $background-color { |
96 |
| - $button-hover-text-color: text-contrast($background-color); |
97 |
| - |
98 |
| - @if type-of($background-color) == 'color' { |
99 |
| - $button-hover-background: rgba(text-contrast($background-color), .2); |
100 |
| - } |
101 |
| - } |
102 |
| - |
103 |
| - @if not($button-focus-background) and $background-color { |
104 |
| - $button-focus-text-color: text-contrast($background-color); |
105 |
| - |
106 |
| - @if type-of($background-color) == 'color' { |
107 |
| - $button-focus-background: rgba(text-contrast($background-color), .2); |
108 |
| - } |
109 |
| - } |
110 |
| - |
111 |
| - @if not($button-background) and $background-color { |
112 |
| - $button-text-color: text-contrast($background-color); |
113 |
| - |
114 |
| - @if type-of($background-color) == 'color' { |
115 |
| - $button-background: rgba(text-contrast($background-color), .1); |
116 |
| - } |
117 |
| - } |
118 |
| - |
119 | 82 | @return extend($theme, (
|
120 | 83 | name: $name,
|
121 | 84 | palette: $palette,
|
122 | 85 |
|
123 | 86 | background-color: $background-color,
|
124 |
| - button-background: $button-background, |
125 | 87 | title-text-color: $title-text-color,
|
126 | 88 |
|
127 |
| - button-text-color: $button-text-color, |
128 |
| - button-hover-background: $button-hover-background, |
129 |
| - button-hover-text-color: $button-hover-text-color, |
130 |
| - button-focus-background: $button-focus-background, |
131 |
| - button-focus-text-color: $button-focus-text-color, |
132 |
| - |
133 | 89 | item-text-color: $item-text-color,
|
134 | 90 | dropdown-background: $dropdown-background,
|
135 | 91 | item-hover-background: $item-hover-background,
|
|
191 | 147 | padding: map-get($grid-toolbar-padding-rtl, 'comfortable');
|
192 | 148 | }
|
193 | 149 |
|
194 |
| - %igx-button--flat { |
195 |
| - background: --var($theme, 'button-background'); |
196 |
| - color: --var($theme, 'button-text-color'); |
197 |
| - margin-#{$left}: rem(8); |
198 |
| - |
199 |
| - &:hover { |
200 |
| - background: --var($theme, 'button-hover-background'); |
201 |
| - color: --var($theme, 'button-hover-text-color'); |
202 |
| - } |
203 |
| - |
204 |
| - &:focus, |
205 |
| - &:active { |
206 |
| - background: --var($theme, 'button-focus-background'); |
207 |
| - color: --var($theme, 'button-focus-text-color'); |
208 |
| - } |
209 |
| - } |
210 |
| - |
211 |
| - %igx-button--icon { |
212 |
| - background: --var($theme, 'button-background'); |
213 |
| - color: --var($theme, 'button-text-color'); |
| 150 | + %igx-button--outlined, |
| 151 | + %igx-button--raised, |
| 152 | + %igx-button--flat, |
| 153 | + %igx-button--icon{ |
214 | 154 | margin-#{$left}: rem(8);
|
215 |
| - border-radius: 0; |
216 |
| - |
217 |
| - &:hover { |
218 |
| - background: --var($theme, 'button-hover-background'); |
219 |
| - color: --var($theme, 'button-hover-text-color'); |
220 |
| - } |
221 |
| - |
222 |
| - &:focus, |
223 |
| - &:active { |
224 |
| - background: --var($theme, 'button-focus-background'); |
225 |
| - color: --var($theme, 'button-focus-text-color'); |
226 |
| - } |
227 | 155 | }
|
228 | 156 |
|
229 | 157 | %igx-grid-toolbar__button-space {
|
|
249 | 177 | &[dir='rtl'] {
|
250 | 178 | text-align: #{$right};
|
251 | 179 |
|
| 180 | + %igx-button--outlined, |
| 181 | + %igx-button--raised, |
252 | 182 | %igx-button--flat,
|
253 |
| - %igx-button--icon { |
| 183 | + %igx-button--icon{ |
254 | 184 | margin-#{$left}: 0;
|
255 | 185 | margin-#{$right}: rem(8);
|
256 | 186 | }
|
|
321 | 251 | }
|
322 | 252 |
|
323 | 253 | %igx-grid-toolbar__adv-filter--filtered {
|
324 |
| - color: igx-color(map-get($theme, 'palette'), 'secondary') !important; |
| 254 | + border-color: igx-color(map-get($theme, 'palette'), 'secondary') !important; |
325 | 255 | }
|
326 | 256 |
|
327 | 257 | %igx-grid-toolbar__dropdown {
|
|
0 commit comments