Skip to content

Commit 685d7be

Browse files
committed
chore: 优化样式
1 parent f14889e commit 685d7be

File tree

6 files changed

+60
-366
lines changed

6 files changed

+60
-366
lines changed

index.html

-18
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
border-radius: 50%;
3737
width: 2.5em;
3838
height: 2.5em;
39-
-webkit-animation-fill-mode: both;
4039
animation-fill-mode: both;
41-
-webkit-animation: loadAnimation 1.8s infinite ease-in-out;
4240
animation: loadAnimation 1.8s infinite ease-in-out;
4341
}
4442

@@ -48,10 +46,7 @@
4846
margin: 80px auto;
4947
position: relative;
5048
text-indent: -9999em;
51-
-webkit-transform: translateZ(0);
52-
-ms-transform: translateZ(0);
5349
transform: translateZ(0);
54-
-webkit-animation-delay: -0.16s;
5550
animation-delay: -0.16s;
5651
top: 0;
5752
transform: translate(-50%, 0);
@@ -66,26 +61,13 @@
6661

6762
.loader:before {
6863
left: -3.5em;
69-
-webkit-animation-delay: -0.32s;
7064
animation-delay: -0.32s;
7165
}
7266

7367
.loader:after {
7468
left: 3.5em;
7569
}
7670

77-
@-webkit-keyframes loadAnimation {
78-
0%,
79-
80%,
80-
100% {
81-
box-shadow: 0 2.5em 0 -1.3em;
82-
}
83-
84-
40% {
85-
box-shadow: 0 2.5em 0 0;
86-
}
87-
}
88-
8971
@keyframes loadAnimation {
9072
0%,
9173
80%,

public/html/button.html

-126
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595

9696
.c:active {
9797
transform: translate(0px, 4px);
98-
-webkit-transform: translate(0px, 4px);
9998
box-shadow: 0px 1px 0px 0px #3486d5;
10099
}
101100

@@ -223,8 +222,6 @@
223222
}
224223

225224
input[type="checkbox"].toggle {
226-
-moz-appearance: none;
227-
-webkit-appearance: none;
228225
position: absolute;
229226
width: 100%;
230227
height: 100%;
@@ -299,36 +296,6 @@
299296
animation: anim-out-pseudo 0.75s;
300297
}
301298

302-
@-webkit-keyframes anim-in {
303-
0% {
304-
width: 0%;
305-
}
306-
307-
100% {
308-
width: 100%;
309-
}
310-
}
311-
312-
@-moz-keyframes anim-in {
313-
0% {
314-
width: 0%;
315-
}
316-
317-
100% {
318-
width: 100%;
319-
}
320-
}
321-
322-
@-ms-keyframes anim-in {
323-
0% {
324-
width: 0%;
325-
}
326-
327-
100% {
328-
width: 100%;
329-
}
330-
}
331-
332299
@keyframes anim-in {
333300
0% {
334301
width: 0%;
@@ -339,36 +306,6 @@
339306
}
340307
}
341308

342-
@-webkit-keyframes anim-in-pseudo {
343-
0% {
344-
background: rgba(0, 0, 0, 0.3);
345-
}
346-
347-
100% {
348-
background: transparent;
349-
}
350-
}
351-
352-
@-moz-keyframes anim-in-pseudo {
353-
0% {
354-
background: rgba(0, 0, 0, 0.3);
355-
}
356-
357-
100% {
358-
background: transparent;
359-
}
360-
}
361-
362-
@-ms-keyframes anim-in-pseudo {
363-
0% {
364-
background: rgba(0, 0, 0, 0.3);
365-
}
366-
367-
100% {
368-
background: transparent;
369-
}
370-
}
371-
372309
@keyframes anim-in-pseudo {
373310
0% {
374311
background: rgba(0, 0, 0, 0.3);
@@ -379,36 +316,6 @@
379316
}
380317
}
381318

382-
@-webkit-keyframes anim-out {
383-
0% {
384-
width: 0%;
385-
}
386-
387-
100% {
388-
width: 100%;
389-
}
390-
}
391-
392-
@-moz-keyframes anim-out {
393-
0% {
394-
width: 0%;
395-
}
396-
397-
100% {
398-
width: 100%;
399-
}
400-
}
401-
402-
@-ms-keyframes anim-out {
403-
0% {
404-
width: 0%;
405-
}
406-
407-
100% {
408-
width: 100%;
409-
}
410-
}
411-
412319
@keyframes anim-out {
413320
0% {
414321
width: 0%;
@@ -419,36 +326,6 @@
419326
}
420327
}
421328

422-
@-webkit-keyframes anim-out-pseudo {
423-
0% {
424-
background: rgba(0, 0, 0, 0.35);
425-
}
426-
427-
100% {
428-
background: transparent;
429-
}
430-
}
431-
432-
@-moz-keyframes anim-out-pseudo {
433-
0% {
434-
background: rgba(0, 0, 0, 0.35);
435-
}
436-
437-
100% {
438-
background: transparent;
439-
}
440-
}
441-
442-
@-ms-keyframes anim-out-pseudo {
443-
0% {
444-
background: rgba(0, 0, 0, 0.35);
445-
}
446-
447-
100% {
448-
background: transparent;
449-
}
450-
}
451-
452329
@keyframes anim-out-pseudo {
453330
0% {
454331
background: rgba(0, 0, 0, 0.35);
@@ -515,9 +392,6 @@
515392

516393
.php,
517394
.php::after {
518-
-webkit-transition: all 0.5s;
519-
-moz-transition: all 0.5s;
520-
-o-transition: all 0.5s;
521395
transition: all 0.5s;
522396
}
523397

src/style/element-plus.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
z-index: 99999 !important;
3737
}
3838

39-
/* 重置button中icon的margin */
39+
/* 重置 el-button 中 icon 的 margin */
4040
.reset-margin [class*="el-icon"] + span {
4141
margin-left: 2px !important;
4242
}
4343

44-
/* 自定义popover的类名 */
44+
/* 自定义 popover 的类名 */
4545
.pure-popper {
4646
padding: 0 !important;
4747
}
4848

49-
/* nprogress适配ep的primary */
49+
/* nprogress 适配 element-plus 的主题色 */
5050
#nprogress {
5151
& .bar {
5252
background-color: var(--el-color-primary) !important;

src/style/index.scss

+2-35
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,11 @@
55
@import "./dark.scss";
66
@import "./tailwind.css";
77

8+
/* 自定义全局 CssVar */
89
:root {
910
--pure-transition-duration: 0.016s;
1011
}
1112

12-
body {
13-
width: 100%;
14-
height: 100%;
15-
-moz-osx-font-smoothing: grayscale;
16-
-webkit-font-smoothing: antialiased;
17-
text-rendering: optimizelegibility;
18-
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
19-
"Microsoft YaHei", "微软雅黑", Arial, sans-serif;
20-
}
21-
22-
html {
23-
width: 100%;
24-
height: 100%;
25-
box-sizing: border-box;
26-
}
27-
28-
#app {
29-
width: 100%;
30-
height: 100%;
31-
}
32-
33-
/* 头部用户信息样式重置 */
34-
.hidden {
35-
display: none !important;
36-
}
37-
3813
/* 灰色模式 */
3914
.html-grey {
4015
filter: grayscale(100%);
@@ -45,15 +20,7 @@ html {
4520
filter: invert(80%);
4621
}
4722

48-
.pc-spacing {
49-
margin: 10px;
50-
}
51-
52-
.mobile-spacing {
53-
margin: 0;
54-
}
55-
56-
/* 重置vxe-table中pager样式 */
23+
/* 重置 vxe-table 中 pager 样式 */
5724
.vxe-pager .vxe-pager--num-btn:not(.is--disabled).is--active {
5825
color: #fff !important;
5926
}

0 commit comments

Comments
 (0)