Skip to content

Commit 539a954

Browse files
committed
fix: fix inset not support in old browser
1 parent 4b188c4 commit 539a954

31 files changed

Lines changed: 196 additions & 59 deletions

packages/platform/src/index.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<style type="text/css">
1212
.fp-loader {
1313
position: absolute;
14-
inset: 0;
14+
top: 0;
15+
right: 0;
16+
bottom: 0;
17+
left: 0;
1518
z-index: 9999;
1619
overflow: hidden;
1720
background: #000;
@@ -39,13 +42,19 @@
3942
}
4043

4144
.fp-loader-inner::before {
42-
inset: 5px;
45+
top: 5px;
46+
right: 5px;
47+
bottom: 5px;
48+
left: 5px;
4349
box-shadow: 0 3px 3px 0 rgb(255 228 32);
4450
animation: fp-loader-spin 3s linear infinite;
4551
}
4652

4753
.fp-loader-inner::after {
48-
inset: 15px;
54+
top: 15px;
55+
right: 15px;
56+
bottom: 15px;
57+
left: 15px;
4958
box-shadow: 0 3px 3px 0 rgb(61 175 255);
5059
animation: fp-loader-spin 1.5s linear infinite;
5160
}

packages/platform/src/styles/_app.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ body {
3535

3636
&::after {
3737
position: absolute;
38-
inset: 0;
38+
top: 0;
39+
right: 0;
40+
bottom: 0;
41+
left: 0;
3942
content: '';
4043
}
4144
}

packages/platform/src/styles/components/chart.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
@include e(container) {
66
position: absolute;
7-
inset: 0;
7+
top: 0;
8+
right: 0;
9+
bottom: 0;
10+
left: 0;
811
overflow: hidden;
912
}
1013
}

packages/platform/src/styles/components/map.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
@include e(container) {
2020
position: absolute;
21-
inset: 0;
21+
top: 0;
22+
right: 0;
23+
bottom: 0;
24+
left: 0;
2225
overflow: hidden;
2326
}
2427

@@ -63,11 +66,17 @@
6366

6467
@include e(marker-cluster-ripple) {
6568
position: absolute;
66-
inset: 0;
69+
top: 0;
70+
right: 0;
71+
bottom: 0;
72+
left: 0;
6773

6874
div {
6975
position: absolute;
70-
inset: 0;
76+
top: 0;
77+
right: 0;
78+
bottom: 0;
79+
left: 0;
7180
border: 1px solid currentcolor;
7281
border-radius: 50%;
7382
animation: map-marker-cluster-ripple 3s infinite linear;

packages/platform/src/styles/components/status-dot.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
@include e(dot) {
2929
&::after {
3030
position: absolute;
31-
inset: 0;
31+
top: 0;
32+
right: 0;
33+
bottom: 0;
34+
left: 0;
3235
content: '';
3336
border: 1px solid var(--app-status-dot-color);
3437
border-radius: 50%;

packages/site/src/styles/routes/layout.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@
144144

145145
&::after {
146146
position: absolute;
147-
inset: 0;
147+
top: 0;
148+
right: 0;
149+
bottom: 0;
150+
left: 0;
148151
content: '';
149152
}
150153
}
@@ -179,7 +182,10 @@
179182

180183
&::after {
181184
position: absolute;
182-
inset: 0;
185+
top: 0;
186+
right: 0;
187+
bottom: 0;
188+
left: 0;
183189
content: '';
184190
}
185191
}

packages/ui/src/styles/_common.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@include b(mask) {
22
position: absolute;
3-
inset: 0;
3+
top: 0;
4+
right: 0;
5+
bottom: 0;
6+
left: 0;
47
background-color: var(--#{$rd-prefix}mask-background-color);
58
}
69

@@ -25,7 +28,10 @@
2528
}
2629

2730
position: absolute;
28-
inset: 0;
31+
top: 0;
32+
right: 0;
33+
bottom: 0;
34+
left: 0;
2935
pointer-events: none;
3036
border-radius: inherit;
3137
animation: wave-wave 0.4s cubic-bezier(0.08, 0.82, 0.17, 1), wave-fade-out 2s cubic-bezier(0.08, 0.82, 0.17, 1);
@@ -34,7 +40,10 @@
3440

3541
@include b(focus-outline) {
3642
position: absolute;
37-
inset: 0;
43+
top: 0;
44+
right: 0;
45+
bottom: 0;
46+
left: 0;
3847
pointer-events: none;
3948
border: 1px dashed var(--#{$rd-prefix}color-primary-lighter);
4049
}

packages/ui/src/styles/components/auto-complete.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ $auto-complete-option-height: 32px;
7171

7272
@include e(loading) {
7373
position: absolute;
74-
inset: 0;
74+
top: 0;
75+
right: 0;
76+
bottom: 0;
77+
left: 0;
7578
z-index: 5;
7679
display: flex;
7780
align-items: center;

packages/ui/src/styles/components/cascader.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ $cascader-option-height: 32px;
117117

118118
@include e(loading) {
119119
position: absolute;
120-
inset: 0;
120+
top: 0;
121+
right: 0;
122+
bottom: 0;
123+
left: 0;
121124
z-index: 5;
122125
display: flex;
123126
align-items: center;

packages/ui/src/styles/components/checkbox.scss

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,21 @@
109109

110110
&::before {
111111
position: absolute;
112-
inset: 0;
112+
top: 0;
113+
right: 0;
114+
bottom: 0;
115+
left: 0;
113116
content: '';
114117
border: 1px solid transparent;
115118
border-radius: var(--#{$rd-prefix}border-radius);
116119
}
117120

118121
&::after {
119122
position: absolute;
120-
inset: 0;
123+
top: 0;
124+
right: 0;
125+
bottom: 0;
126+
left: 0;
121127
content: '';
122128
background-color: transparent;
123129
border-radius: var(--#{$rd-prefix}border-radius);
@@ -128,7 +134,10 @@
128134

129135
@include e(tick) {
130136
position: absolute;
131-
inset: 0;
137+
top: 0;
138+
right: 0;
139+
bottom: 0;
140+
left: 0;
132141
z-index: 1;
133142
overflow: hidden;
134143
border-radius: var(--#{$rd-prefix}border-radius);
@@ -159,10 +168,11 @@
159168

160169
@include e(input) {
161170
position: absolute;
162-
inset: 0;
171+
top: 0;
172+
right: 0;
173+
bottom: 0;
174+
left: 0;
163175
z-index: 5;
164-
width: 100%;
165-
height: 100%;
166176
margin: 0;
167177
cursor: inherit;
168178
border: 1px solid var(--#{$rd-prefix}color-border);

0 commit comments

Comments
 (0)