-
Notifications
You must be signed in to change notification settings - Fork 21
/
.umirc.ts
115 lines (112 loc) · 2.95 KB
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'rc-darkreader',
logo: 'https://darkreader.org/images/darkreader-icon-256x256.png',
favicon: 'https://darkreader.org/images/darkreader-icon-256x256.png',
hash: true,
outputPath: 'docs-dist',
base: `/`,
publicPath: '/',
theme: {
'@c-primary': '#2c89a0',
},
headScripts: [
`window.onload = () => {
document.querySelector('.__dumi-default-menu-logo').innerHTML = '<div class="circles"><div></div><div></div><div></div><span></span></div>'
}`,
],
styles: [
`https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.css`,
`/** Logo Style **/
.__dumi-default-menu-header .__dumi-default-menu-logo{
background: none !important;
}
.circles {
width: 64px;
height: 64px;
position: relative;
perspective: 50000px;
color: #2c89a0;
}
.circles span {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
width: 18.4%;
height: 18.4%;
border-radius: 100%;
background: currentColor;
}
.circles div {
position: absolute;
width: 100%;
height: 100%;
border-left: 0.4vmin solid;
border-top: 0.4vmin solid transparent;
border-radius: 100%;
}
.circles div:nth-child(1) {
-webkit-animation: anim-1 1s linear infinite;
animation: anim-1 1s linear infinite;
}
.circles div:nth-child(2) {
-webkit-animation: anim-2 1s linear infinite;
animation: anim-2 1s linear infinite;
}
.circles div:nth-child(3) {
-webkit-animation: anim-3 1s linear infinite;
animation: anim-3 1s linear infinite;
}
@-webkit-keyframes anim-1 {
from {
transform: rotateZ(120deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(120deg) rotateX(66deg) rotateZ(360deg);
}
}
@keyframes anim-1 {
from {
transform: rotateZ(120deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(120deg) rotateX(66deg) rotateZ(360deg);
}
}
@-webkit-keyframes anim-2 {
from {
transform: rotateZ(240deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(240deg) rotateX(66deg) rotateZ(360deg);
}
}
@keyframes anim-2 {
from {
transform: rotateZ(240deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(240deg) rotateX(66deg) rotateZ(360deg);
}
}
@-webkit-keyframes anim-3 {
from {
transform: rotateZ(360deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(360deg) rotateX(66deg) rotateZ(360deg);
}
}
@keyframes anim-3 {
from {
transform: rotateZ(360deg) rotateX(66deg) rotateZ(0deg);
}
to {
transform: rotateZ(360deg) rotateX(66deg) rotateZ(360deg);
}
}
`,
],
});