|
193 | 193 |
|
194 | 194 | $contained-shadow: map.get( |
195 | 195 | ( |
196 | | - 'material': var-get($contained-theme, 'resting-shadow'), |
| 196 | + 'material': var-get($contained-theme, 'resting-elevation'), |
197 | 197 | 'fluent': none, |
198 | 198 | 'bootstrap': none, |
199 | 199 | 'indigo': none, |
|
203 | 203 |
|
204 | 204 | $contained-shadow--hover: map.get( |
205 | 205 | ( |
206 | | - 'material': var-get($contained-theme, 'hover-shadow'), |
| 206 | + 'material': var-get($contained-theme, 'hover-elevation'), |
207 | 207 | 'fluent': none, |
208 | 208 | 'bootstrap': none, |
209 | 209 | 'indigo': none, |
|
213 | 213 |
|
214 | 214 | $contained-shadow--focus: map.get( |
215 | 215 | ( |
216 | | - 'material': var-get($contained-theme, 'focus-shadow'), |
217 | | - 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'), |
| 216 | + 'material': var-get($contained-theme, 'focus-elevation'), |
| 217 | + 'fluent': none, |
218 | 218 | 'bootstrap': 0 0 0 rem(4px) |
219 | 219 | var-get($contained-theme, 'shadow-color'), |
220 | 220 | 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'), |
|
224 | 224 |
|
225 | 225 | $contained-shadow--active: map.get( |
226 | 226 | ( |
227 | | - 'material': var-get($contained-theme, 'active-shadow'), |
228 | | - 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'), |
| 227 | + 'material': var-get($contained-theme, 'active-elevation'), |
| 228 | + 'fluent': none, |
229 | 229 | 'bootstrap': 0 0 0 rem(4px) |
230 | 230 | var-get($contained-theme, 'shadow-color'), |
231 | 231 | 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'), |
|
235 | 235 |
|
236 | 236 | $fab-shadow: map.get( |
237 | 237 | ( |
238 | | - 'material': var-get($fab-theme, 'resting-shadow'), |
| 238 | + 'material': var-get($fab-theme, 'resting-elevation'), |
239 | 239 | 'fluent': none, |
240 | 240 | 'bootstrap': none, |
241 | 241 | 'indigo': none, |
|
245 | 245 |
|
246 | 246 | $fab-shadow--hover: map.get( |
247 | 247 | ( |
248 | | - 'material': var-get($fab-theme, 'hover-shadow'), |
| 248 | + 'material': var-get($fab-theme, 'hover-elevation'), |
249 | 249 | 'fluent': none, |
250 | 250 | 'bootstrap': none, |
251 | 251 | 'indigo': none, |
|
255 | 255 |
|
256 | 256 | $fab-shadow--focus: map.get( |
257 | 257 | ( |
258 | | - 'material': var-get($fab-theme, 'focus-shadow'), |
259 | | - 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'), |
| 258 | + 'material': var-get($fab-theme, 'focus-elevation'), |
| 259 | + 'fluent': none, |
260 | 260 | 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'), |
261 | 261 | 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'), |
262 | 262 | ), |
|
265 | 265 |
|
266 | 266 | $fab-shadow--active: map.get( |
267 | 267 | ( |
268 | | - 'material': var-get($fab-theme, 'active-shadow'), |
269 | | - 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'), |
| 268 | + 'material': var-get($fab-theme, 'active-elevation'), |
| 269 | + 'fluent': none, |
270 | 270 | 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'), |
271 | 271 | 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'), |
272 | 272 | ), |
|
573 | 573 | background: var-get($contained-theme, 'background'); |
574 | 574 | border-color: var-get($contained-theme, 'border-color'); |
575 | 575 | border-radius: var-get($contained-theme, 'border-radius'); |
576 | | - box-shadow: var-get($contained-theme, 'resting-shadow'); |
| 576 | + |
| 577 | + @if $variant == 'material' { |
| 578 | + box-shadow: var-get($contained-theme, 'resting-elevation'); |
| 579 | + } |
577 | 580 |
|
578 | 581 | igx-icon { |
579 | 582 | color: var-get($contained-theme, 'icon-color'); |
|
583 | 586 | color: var-get($contained-theme, 'hover-foreground'); |
584 | 587 | background: var-get($contained-theme, 'hover-background'); |
585 | 588 | border-color: var-get($contained-theme, 'hover-border-color'); |
586 | | - box-shadow: var-get($contained-theme, 'hover-shadow'); |
| 589 | + |
| 590 | + @if $variant == 'material' { |
| 591 | + box-shadow: var-get($contained-theme, 'hover-elevation'); |
| 592 | + } |
587 | 593 |
|
588 | 594 | igx-icon { |
589 | 595 | color: var-get($contained-theme, 'icon-color-hover'); |
|
594 | 600 | color: var-get($contained-theme, 'active-foreground'); |
595 | 601 | background: var-get($contained-theme, 'active-background'); |
596 | 602 | border-color: var-get($contained-theme, 'active-border-color'); |
597 | | - box-shadow: var-get($contained-theme, 'active-shadow'); |
| 603 | + |
| 604 | + @if $variant == 'material' { |
| 605 | + box-shadow: var-get($contained-theme, 'active-elevation'); |
| 606 | + } |
598 | 607 |
|
599 | 608 | igx-icon { |
600 | 609 | color: var-get($contained-theme, 'active-foreground'); |
|
627 | 636 | } |
628 | 637 |
|
629 | 638 | @if $variant == 'material' { |
630 | | - box-shadow: var-get($contained-theme, 'focus-shadow'); |
| 639 | + box-shadow: var-get($contained-theme, 'focus-elevation'); |
631 | 640 | } @else { |
632 | 641 | box-shadow: $contained-shadow--active; |
633 | 642 | } |
|
652 | 661 | } |
653 | 662 |
|
654 | 663 | @if $variant == 'material' { |
655 | | - box-shadow: var-get($contained-theme, 'focus-shadow'); |
| 664 | + box-shadow: var-get($contained-theme, 'focus-elevation'); |
656 | 665 | } |
657 | 666 | } |
658 | 667 |
|
|
713 | 722 | background: var-get($fab-theme, 'background'); |
714 | 723 | border-color: var-get($fab-theme, 'border-color'); |
715 | 724 | border-radius: var-get($fab-theme, 'border-radius'); |
716 | | - box-shadow: var-get($fab-theme, 'resting-shadow'); |
| 725 | + |
| 726 | + @if $variant == 'material' { |
| 727 | + box-shadow: var-get($fab-theme, 'resting-elevation'); |
| 728 | + } |
717 | 729 |
|
718 | 730 | igx-icon { |
719 | 731 | color: var-get($fab-theme, 'icon-color'); |
|
723 | 735 | color: var-get($fab-theme, 'hover-foreground'); |
724 | 736 | background: var-get($fab-theme, 'hover-background'); |
725 | 737 | border-color: var-get($fab-theme, 'hover-border-color'); |
726 | | - box-shadow: var-get($fab-theme, 'hover-shadow'); |
| 738 | + |
| 739 | + @if $variant == 'material' { |
| 740 | + box-shadow: var-get($fab-theme, 'hover-elevation'); |
| 741 | + } |
727 | 742 |
|
728 | 743 | igx-icon { |
729 | 744 | color: var-get($fab-theme, 'icon-color-hover'); |
|
734 | 749 | color: var-get($fab-theme, 'active-foreground'); |
735 | 750 | background: var-get($fab-theme, 'active-background'); |
736 | 751 | border-color: var-get($fab-theme, 'active-border-color'); |
737 | | - box-shadow: var-get($fab-theme, 'active-shadow'); |
| 752 | + |
| 753 | + @if $variant == 'material' { |
| 754 | + box-shadow: var-get($fab-theme, 'active-elevation'); |
| 755 | + } |
738 | 756 |
|
739 | 757 | igx-icon { |
740 | 758 | color: var-get($fab-theme, 'active-foreground'); |
|
758 | 776 | } |
759 | 777 |
|
760 | 778 | @if $variant == 'material' { |
761 | | - box-shadow: var-get($fab-theme, 'focus-shadow'); |
| 779 | + box-shadow: var-get($fab-theme, 'focus-elevation'); |
762 | 780 | } @else { |
763 | 781 | box-shadow: $contained-shadow--focus; |
764 | 782 | } |
|
0 commit comments