|
1 | 1 | @use 'sass:map'; |
2 | | -@use '../../material/core/style/variables'; |
3 | | -@use '../../material/core/style/vendor-prefixes'; |
4 | | -@use '../../material/core/theming/theming'; |
| 2 | +@use '@angular/material' as mat; |
5 | 3 |
|
6 | 4 | @mixin color($config-or-theme) { |
7 | | - $config: theming.get-color-config($config-or-theme); |
| 5 | + $config: mat.get-color-config($config-or-theme); |
8 | 6 | $primary: map.get($config, primary); |
9 | 7 | $foreground: map.get($config, foreground); |
10 | 8 |
|
11 | | - $non-resizable-hover-divider: theming.get-color-from-palette($foreground, divider); |
12 | | - $resizable-hover-divider: theming.get-color-from-palette($primary, 600); |
13 | | - $resizable-active-divider: theming.get-color-from-palette($primary, 600); |
| 9 | + $non-resizable-hover-divider: mat.get-color-from-palette($foreground, divider); |
| 10 | + $resizable-hover-divider: mat.get-color-from-palette($primary, 600); |
| 11 | + $resizable-active-divider: mat.get-color-from-palette($primary, 600); |
14 | 12 |
|
15 | 13 | // TODO: these styles don't really belong in the `color` part of the theme. |
16 | 14 | // We should figure out a better place for them. |
|
45 | 43 | bottom: 0; |
46 | 44 | position: absolute; |
47 | 45 | top: 0; |
48 | | - transition: background variables.$swift-ease-in-duration |
49 | | - variables.$swift-ease-in-timing-function; |
| 46 | + transition: background mat.$private-swift-ease-in-duration |
| 47 | + mat.$private-swift-ease-in-timing-function; |
50 | 48 | width: 1px; |
51 | 49 | } |
52 | 50 |
|
|
111 | 109 | background: transparent; |
112 | 110 | cursor: col-resize; |
113 | 111 | height: 100%; |
114 | | - transition: background variables.$swift-ease-in-duration |
115 | | - variables.$swift-ease-in-timing-function; |
116 | | - @include vendor-prefixes.user-select(none); |
| 112 | + transition: background mat.$private-swift-ease-in-duration |
| 113 | + mat.$private-swift-ease-in-timing-function; |
| 114 | + @include mat.private-user-select(none); |
117 | 115 | width: 100%; |
118 | 116 |
|
119 | 117 | &:active { |
|
142 | 140 | @mixin density($config-or-theme) {} |
143 | 141 |
|
144 | 142 | @mixin theme($theme-or-color-config) { |
145 | | - $theme: theming.private-legacy-get-theme($theme-or-color-config); |
146 | | - @include theming.private-check-duplicate-theme-styles($theme, 'mat-column-resize') { |
147 | | - $color: theming.get-color-config($theme); |
148 | | - $density: theming.get-density-config($theme); |
149 | | - $typography: theming.get-typography-config($theme); |
| 143 | + $theme: mat.private-legacy-get-theme($theme-or-color-config); |
| 144 | + @include mat.private-check-duplicate-theme-styles($theme, 'mat-column-resize') { |
| 145 | + $color: mat.get-color-config($theme); |
| 146 | + $density: mat.get-density-config($theme); |
| 147 | + $typography: mat.get-typography-config($theme); |
150 | 148 |
|
151 | 149 | @if $color != null { |
152 | 150 | @include color($color); |
|
0 commit comments