dozy 1.0.45 → 1.0.47

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.
@@ -17,6 +17,11 @@
17
17
  src: url('./fonts/forthecode.woff2') format('woff2');
18
18
  font-display: swap;
19
19
  }
20
+ @font-face {
21
+ font-family: 'forthebadge';
22
+ src: url('./fonts/forthebadge.woff2') format('woff2');
23
+ font-display: swap;
24
+ }
20
25
 
21
26
  /* @font-face {
22
27
  font-family: 'defaultFont';
@@ -68,6 +73,7 @@
68
73
  --for-the-code:
69
74
  forthecode, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Microsoft YaHei',
70
75
  'Microsoft YaHei UI', 'Liberation Mono', 'Courier New', monospace;
76
+ --for-the-badge: forthebadge;
71
77
  }
72
78
 
73
79
  /* HTML 基础设置
@@ -146,7 +152,7 @@ body {
146
152
  white-space: normal;
147
153
 
148
154
  /* 全局过渡动画 */
149
- transition: all 0.1s linear;
155
+ transition: all 0.4s linear;
150
156
  }
151
157
 
152
158
  /* 选中态样式 */
@@ -192,6 +198,35 @@ body {
192
198
  .scrollbar::-webkit-scrollbar-thumb:hover {
193
199
  background-color: #fff; /* 悬停颜色 */
194
200
  }
201
+
202
+ .truncate {
203
+ overflow: hidden;
204
+ text-overflow: ellipsis;
205
+ white-space: nowrap;
206
+ }
207
+
208
+ .line-clamp-1 {
209
+ overflow: hidden;
210
+ display: -webkit-box;
211
+ -webkit-box-orient: vertical;
212
+ -webkit-line-clamp: 1;
213
+ }
214
+
215
+ .line-clamp-2 {
216
+ overflow: hidden;
217
+ display: -webkit-box;
218
+ -webkit-box-orient: vertical;
219
+ -webkit-line-clamp: 2;
220
+ }
221
+
222
+ .xai-text-bold {
223
+ text-shadow:
224
+ 0.01em 0.01em 0 currentColor,
225
+ 0.02em 0.02em 0 currentColor,
226
+ -0.01em 0.01em 0 currentColor,
227
+ 0.01em -0.01em 0 currentColor;
228
+ }
229
+
195
230
  /* Firefox 浏览器 */
196
231
  .scrollbar {
197
232
  scrollbar-width: thin; /* 细滚动条 */
package/dist/index.d.ts CHANGED
@@ -305,7 +305,7 @@ export declare function toRgbString(input: string | Color | any): string | undef
305
305
  * @returns HSL/HSLA string or undefined.
306
306
  */
307
307
  export declare function toHslString(input: string | Color | any): string | undefined;
308
- export declare const DOZY = "1.0.45";
308
+ export declare const DOZY = "1.0.47";
309
309
  export * from "browser-image-compression";
310
310
  export * from "axios";
311
311
  export * from "zod";