Ver Fonte

信息框的样式调整正确

robert há 1 dia atrás
pai
commit
bdd84ad5bd
2 ficheiros alterados com 2 adições e 12 exclusões
  1. 1 6
      layer.js
  2. 1 6
      xjs.js

+ 1 - 6
layer.js

@@ -172,12 +172,7 @@
     .${PREFIX}icon.info { border-color: #3fc3ee; color: #3fc3ee; }
     .${PREFIX}icon.question { border-color: #b18cff; color: #b18cff; }
 
-    /* Per-icon ring sweep stop (same timing, different final position) */
-    /* IMPORTANT: keep a full 360° sweep (end = start - 360) for the same "draw then vanish" feel */
-    .${PREFIX}icon.warning { --${PREFIX}ring-start-rotate: -90deg;  --${PREFIX}ring-end-rotate: -450deg; }  /* stop at top */
-    .${PREFIX}icon.error { --${PREFIX}ring-start-rotate: -135deg;   --${PREFIX}ring-end-rotate: -495deg; }  /* stop at top-left */
-    .${PREFIX}icon.info { --${PREFIX}ring-start-rotate: -90deg;     --${PREFIX}ring-end-rotate: -450deg; }  /* stop at top */
-    .${PREFIX}icon.question { --${PREFIX}ring-start-rotate: -135deg; --${PREFIX}ring-end-rotate: -495deg; } /* stop at top-left */
+    /* Keep ring sweep logic identical across built-in icons (match success). */
 
     .${PREFIX}icon .${PREFIX}success-ring {
       position: absolute;

+ 1 - 6
xjs.js

@@ -240,12 +240,7 @@
     .${PREFIX}icon.info { border-color: #3fc3ee; color: #3fc3ee; }
     .${PREFIX}icon.question { border-color: #b18cff; color: #b18cff; }
 
-    /* Per-icon ring sweep stop (same timing, different final position) */
-    /* IMPORTANT: keep a full 360° sweep (end = start - 360) for the same "draw then vanish" feel */
-    .${PREFIX}icon.warning { --${PREFIX}ring-start-rotate: -90deg;  --${PREFIX}ring-end-rotate: -450deg; }  /* stop at top */
-    .${PREFIX}icon.error { --${PREFIX}ring-start-rotate: -135deg;   --${PREFIX}ring-end-rotate: -495deg; }  /* stop at top-left */
-    .${PREFIX}icon.info { --${PREFIX}ring-start-rotate: -90deg;     --${PREFIX}ring-end-rotate: -450deg; }  /* stop at top */
-    .${PREFIX}icon.question { --${PREFIX}ring-start-rotate: -135deg; --${PREFIX}ring-end-rotate: -495deg; } /* stop at top-left */
+    /* Keep ring sweep logic identical across built-in icons (match success). */
 
     .${PREFIX}icon .${PREFIX}success-ring {
       position: absolute;