|
| 1 | +@import '../../lib/core/style/variables'; |
1 | 2 | @import '../../lib/core/style/elevation';
|
2 | 3 | @import '../../lib/core/theming/palette';
|
3 | 4 | @import '../../lib/core/theming/theming';
|
|
7 | 8 | @return linear-gradient($direction, rgba($background-color, 0), $background-color 8px);
|
8 | 9 | }
|
9 | 10 |
|
10 |
| -@function mat-edit-focus-background($underline-color, $background-color) { |
11 |
| - @return linear-gradient( |
12 |
| - 0deg, |
13 |
| - mat-color($underline-color), |
14 |
| - mat-color($underline-color) 2px, |
15 |
| - $background-color 2px); |
16 |
| -} |
17 |
| - |
18 | 11 | @mixin mat-edit-theme($theme) {
|
19 | 12 | $background: map-get($theme, background);
|
20 | 13 | $foreground: map-get($theme, foreground);
|
|
27 | 20 | background: mat-edit-hover-content-background(90deg, $background-color);
|
28 | 21 | bottom: 0;
|
29 | 22 | display: flex;
|
| 23 | + opacity: 0; |
30 | 24 | padding: 0 4px 1px;
|
31 | 25 | position: absolute;
|
32 | 26 | right: 0;
|
33 | 27 | top: 0;
|
| 28 | + transition: opacity $swift-ease-in-duration $swift-ease-in-timing-function; |
34 | 29 | }
|
35 | 30 |
|
36 | 31 | .mat-row-hover-content-rtl {
|
|
39 | 34 | right: auto;
|
40 | 35 | }
|
41 | 36 |
|
| 37 | + .mat-row-hover-content-visible { |
| 38 | + opacity: 1; |
| 39 | + } |
| 40 | + |
42 | 41 | .mat-popover-edit-cell {
|
43 | 42 | position: relative;
|
44 | 43 |
|
| 44 | + &::after { |
| 45 | + background-color: mat-color($primary); |
| 46 | + bottom: 0; |
| 47 | + content: ''; |
| 48 | + height: 2px; |
| 49 | + left: 0; |
| 50 | + opacity: 0; |
| 51 | + position: absolute; |
| 52 | + right: 0; |
| 53 | + transform-origin: 50%; |
| 54 | + transform: scaleX(0.5); |
| 55 | + transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function; |
| 56 | + visibility: hidden; |
| 57 | + } |
| 58 | + |
45 | 59 | &:focus {
|
46 |
| - background: mat-edit-focus-background($primary, $background-color); |
47 | 60 | outline: none;
|
48 | 61 |
|
49 |
| - .mat-row-hover-content { |
50 |
| - background: |
51 |
| - mat-edit-focus-background($primary, transparent), |
52 |
| - mat-edit-hover-content-background(90deg, $background-color); |
53 |
| - } |
54 |
| - |
55 |
| - .mat-row-hover-content-rtl { |
56 |
| - background: |
57 |
| - mat-edit-focus-background($primary, transparent), |
58 |
| - mat-edit-hover-content-background(270deg, $background-color); |
| 62 | + &::after { |
| 63 | + opacity: 1; |
| 64 | + transform: scaleX(1); |
| 65 | + transition: transform 300ms $swift-ease-out-timing-function, |
| 66 | + opacity 100ms $swift-ease-out-timing-function, |
| 67 | + background-color 300ms $swift-ease-out-timing-function; |
| 68 | + visibility: visible; |
59 | 69 | }
|
60 | 70 | }
|
61 | 71 | }
|
|
0 commit comments