|
1 | 1 | @import './themes/@{root-entry-name}.less'; |
2 | | - |
3 | | -// cdk overlay |
4 | | -.cdk-overlay-container { |
5 | | - pointer-events: none; |
6 | | - top: 0; |
7 | | - left: 0; |
8 | | - height: 100%; |
9 | | - width: 100%; |
10 | | - position: fixed; |
11 | | - z-index: 1000; |
12 | | -} |
| 2 | +@import '~@angular/cdk/overlay-prebuilt.css'; |
13 | 3 |
|
14 | 4 | .cdk-visually-hidden { |
15 | 5 | border: 0; |
|
25 | 15 | -moz-appearance: none; |
26 | 16 | } |
27 | 17 |
|
28 | | -.cdk-overlay-backdrop { |
29 | | - top: 0; |
30 | | - bottom: 0; |
31 | | - left: 0; |
32 | | - right: 0; |
33 | | - -webkit-tap-highlight-color: transparent; |
34 | | - transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); |
35 | | - opacity: 0; |
36 | | - position: absolute; |
37 | | - pointer-events: auto; |
38 | | - z-index: 1000; |
39 | | - |
40 | | - &.ant-modal-mask { |
41 | | - opacity: 1; |
42 | | - } |
43 | | -} |
44 | | - |
45 | | -.cdk-overlay-pane { |
46 | | - position: absolute; |
47 | | - pointer-events: auto; |
48 | | - z-index: 1000; // Give an opportunity to the content own to manage their z-index such as Modal |
49 | | -} |
50 | | - |
51 | | -.cdk-overlay-connected-position-bounding-box { |
52 | | - position: absolute; |
53 | | - z-index: 1000; |
54 | | - display: flex; |
55 | | - flex-direction: column; |
56 | | - min-width: 1px; |
57 | | - min-height: 1px; |
58 | | -} |
59 | | - |
60 | | -// Used when disabling global scrolling. |
61 | | -.cdk-global-scrollblock { |
62 | | - position: fixed; |
63 | | - |
64 | | - // Necessary for the content not to lose its width. Note that we're using 100%, instead of |
65 | | - // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width |
66 | | - // that the element had before we made it `fixed`. |
67 | | - width: 100%; |
68 | | - |
69 | | - // Note: this will always add a scrollbar to whatever element it is on, which can |
70 | | - // potentially result in double scrollbars. It shouldn't be an issue, because we won't |
71 | | - // block scrolling on a page that doesn't have a scrollbar in the first place. |
72 | | - overflow-y: scroll; |
73 | | - |
74 | | - // https://github.com/angular/material2/issues/15051 |
75 | | - body { |
76 | | - overflow-x: visible; |
77 | | - } |
78 | | -} |
79 | | - |
80 | 18 | .nz-overlay-transparent-backdrop { |
| 19 | + |
81 | 20 | &, |
82 | 21 | &.cdk-overlay-backdrop-showing { |
83 | 22 | opacity: 0; |
84 | 23 | } |
85 | 24 | } |
86 | 25 |
|
87 | 26 | .nz-animate-disabled { |
| 27 | + |
88 | 28 | // badge |
89 | 29 | &.ant-scroll-number-only { |
90 | 30 | animation: none; |
|
98 | 38 | transition: none; |
99 | 39 | } |
100 | 40 |
|
101 | | - & > * { |
| 41 | + &>* { |
102 | 42 | transition: none; |
103 | 43 | } |
104 | 44 | } |
|
131 | 71 | .ant-menu-submenu-title .anticon { |
132 | 72 | transition: none; |
133 | 73 |
|
134 | | - & + span { |
| 74 | + &+span { |
135 | 75 | transition: none; |
136 | 76 | } |
137 | 77 | } |
138 | 78 | } |
139 | 79 |
|
140 | 80 | // tabs |
141 | 81 | &.ant-tabs { |
| 82 | + |
142 | 83 | .ant-tabs-top-content.ant-tabs-content-animated, |
143 | 84 | .ant-tabs-bottom-content.ant-tabs-content-animated, |
144 | | - .ant-tabs-top-content > .ant-tabs-tabpane, |
145 | | - .ant-tabs-bottom-content > .ant-tabs-tabpane, |
| 85 | + .ant-tabs-top-content>.ant-tabs-tabpane, |
| 86 | + .ant-tabs-bottom-content>.ant-tabs-tabpane, |
146 | 87 | &.ant-tabs-left .ant-tabs-ink-bar-animated, |
147 | 88 | &.ant-tabs-right .ant-tabs-ink-bar-animated, |
148 | 89 | &.ant-tabs-top .ant-tabs-ink-bar-animated, |
|
152 | 93 | } |
153 | 94 |
|
154 | 95 | // collapse |
155 | | - &.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { |
| 96 | + &.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg { |
156 | 97 | transition: none; |
157 | 98 | } |
158 | 99 | } |
0 commit comments