@semi-kit/theme 1.3.18 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* --------------------------------------------------------------------------------------------------------- Pure */
|
|
2
|
+
.sk-modal-pure {
|
|
3
|
+
:global(.n-dialog__title) {
|
|
4
|
+
background-color: var(--primary-color);
|
|
5
|
+
color: white;
|
|
6
|
+
}
|
|
7
|
+
:global(.n-dialog__close) {
|
|
8
|
+
color: white;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* --------------------------------------------------------------------------------------------------------- Gradient */
|
|
13
|
+
.sk-modal-gradient {
|
|
14
|
+
:global(.n-dialog__title) {
|
|
15
|
+
background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 100%);
|
|
16
|
+
color: white;
|
|
17
|
+
position: relative;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* 对角光束 */
|
|
22
|
+
:global(.n-dialog__title)::before {
|
|
23
|
+
content: '';
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
background:
|
|
27
|
+
linear-gradient(
|
|
28
|
+
135deg,
|
|
29
|
+
transparent 0%,
|
|
30
|
+
transparent 30%,
|
|
31
|
+
rgba(255, 255, 255, 0.15) 50%,
|
|
32
|
+
transparent 70%,
|
|
33
|
+
transparent 100%
|
|
34
|
+
),
|
|
35
|
+
linear-gradient(
|
|
36
|
+
45deg,
|
|
37
|
+
rgba(255, 255, 255, 0.08) 0%,
|
|
38
|
+
transparent 40%,
|
|
39
|
+
transparent 60%,
|
|
40
|
+
rgba(255, 255, 255, 0.08) 100%
|
|
41
|
+
);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* 中心光晕 */
|
|
46
|
+
:global(.n-dialog__title)::after {
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
background: radial-gradient(
|
|
51
|
+
circle at 50% 50%,
|
|
52
|
+
rgba(255, 255, 255, 0.2) 0%,
|
|
53
|
+
rgba(255, 255, 255, 0.1) 60%,
|
|
54
|
+
transparent 70%
|
|
55
|
+
);
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:global(.n-dialog__close) {
|
|
60
|
+
color: white;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* --------------------------------------------------------------------------------------------------------- Grid */
|
|
65
|
+
|
|
66
|
+
.sk-modal-grid {
|
|
67
|
+
:global(.n-dialog__title) {
|
|
68
|
+
background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--primary-color) 3%, #ffffff) 100%);
|
|
69
|
+
position: relative;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* 右侧网格 */
|
|
74
|
+
:global(.n-dialog__title)::before {
|
|
75
|
+
content: '';
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: -50%;
|
|
78
|
+
right: 18%;
|
|
79
|
+
width: 60%;
|
|
80
|
+
height: 200%;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
opacity: 0.2;
|
|
83
|
+
background-image:
|
|
84
|
+
repeating-linear-gradient(
|
|
85
|
+
0deg,
|
|
86
|
+
transparent,
|
|
87
|
+
transparent 15px,
|
|
88
|
+
var(--primary-color) 15px,
|
|
89
|
+
var(--primary-color) 16px
|
|
90
|
+
),
|
|
91
|
+
repeating-linear-gradient(
|
|
92
|
+
96deg,
|
|
93
|
+
transparent,
|
|
94
|
+
transparent 15px,
|
|
95
|
+
var(--primary-color) 15px,
|
|
96
|
+
var(--primary-color) 16px
|
|
97
|
+
);
|
|
98
|
+
transform: rotate(-6deg);
|
|
99
|
+
mask-image: radial-gradient(ellipse at 80% 50%, black 0%, black 40%, transparent 70%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* 装饰线 */
|
|
103
|
+
:global(.n-dialog__title)::after {
|
|
104
|
+
content: '';
|
|
105
|
+
position: absolute;
|
|
106
|
+
inset: 0 0 0 20%;
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
background:
|
|
109
|
+
radial-gradient(ellipse at 100% 50%, color-mix(in srgb, var(--primary-color) 8%, transparent), transparent 60%),
|
|
110
|
+
linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-color) 40%, transparent) 50%, transparent)
|
|
111
|
+
right top / 100% 2px no-repeat,
|
|
112
|
+
linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-color) 20%, transparent) 50%, transparent)
|
|
113
|
+
right bottom / 100% 1px no-repeat;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* --------------------------------------------------------------------------------------------------------- Wave */
|
|
118
|
+
.sk-modal-wave {
|
|
119
|
+
:global(.n-dialog__title) {
|
|
120
|
+
background: linear-gradient(110deg, color-mix(in srgb, var(--primary-color) 4%, #ffffff) 100%);
|
|
121
|
+
position: relative;
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* 右侧渐变光晕 */
|
|
126
|
+
:global(.n-dialog__title)::before {
|
|
127
|
+
content: '';
|
|
128
|
+
position: absolute;
|
|
129
|
+
top: -50%;
|
|
130
|
+
right: -8%;
|
|
131
|
+
width: 55%;
|
|
132
|
+
height: 200%;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
background: radial-gradient(
|
|
135
|
+
ellipse at 60% 50%,
|
|
136
|
+
color-mix(in srgb, var(--primary-color) 15%, transparent) 0%,
|
|
137
|
+
color-mix(in srgb, var(--primary-color) 3%, transparent) 30%,
|
|
138
|
+
transparent 65%
|
|
139
|
+
);
|
|
140
|
+
transform: rotate(-12deg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* 贝塞尔曲线 */
|
|
144
|
+
:global(.n-dialog__title)::after {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0;
|
|
148
|
+
right: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
left: 25%;
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
background: linear-gradient(
|
|
153
|
+
95deg,
|
|
154
|
+
transparent,
|
|
155
|
+
color-mix(in srgb, var(--primary-color) 50%, transparent) 80%,
|
|
156
|
+
transparent
|
|
157
|
+
);
|
|
158
|
+
mask-image:
|
|
159
|
+
url("data:image/svg+xml,%3Csvg width='900' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 50 30 Q 250 10, 450 40 Q 650 70, 850 50' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"),
|
|
160
|
+
url("data:image/svg+xml,%3Csvg width='900' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 100 80 Q 200 50, 300 80 Q 400 110, 500 80 Q 600 50, 700 80' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
161
|
+
mask-repeat: no-repeat;
|
|
162
|
+
mask-position:
|
|
163
|
+
right 68% top 4%,
|
|
164
|
+
right 105% bottom 14%;
|
|
165
|
+
mask-size: 78% auto;
|
|
166
|
+
}
|
|
167
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semi-kit/theme",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Theme and style presets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "lijiaheng <jahnli@163.com>",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"./base.css": "./lib/base.css",
|
|
29
29
|
"./base.less": "./lib/base.less",
|
|
30
30
|
"./module-css": "./lib/module-css",
|
|
31
|
-
"./module-css/table.module.css": "./lib/module-css/table.module.css"
|
|
31
|
+
"./module-css/table.module.css": "./lib/module-css/table.module.css",
|
|
32
|
+
"./module-css/modal.module.css": "./lib/module-css/modal.module.css"
|
|
32
33
|
},
|
|
33
34
|
"scripts": {
|
|
34
35
|
"build": "tsdown",
|