Browse Source

页面样式修改

moki 4 days ago
parent
commit
c427c8f92b
1 changed files with 19 additions and 8 deletions
  1. 19 8
      src/components/RetryCard.vue

+ 19 - 8
src/components/RetryCard.vue

@@ -40,34 +40,36 @@ const dotCount = 3
 
 
 .orbit {
 .orbit {
   position: relative;
   position: relative;
-  width: 56px;
-  height: 56px;
+  width: 80px;
+  height: 80px;
   animation: spin 2s linear infinite;
   animation: spin 2s linear infinite;
 }
 }
 
 
 .dot {
 .dot {
   position: absolute;
   position: absolute;
-  width: 10px;
-  height: 10px;
+  width: 16px;
+  height: 16px;
   border-radius: 50%;
   border-radius: 50%;
   background: radial-gradient(circle at 35% 35%, #ffc069, #fa8c16);
   background: radial-gradient(circle at 35% 35%, #ffc069, #fa8c16);
   box-shadow: 0 0 10px rgba(250, 140, 22, 0.5);
   box-shadow: 0 0 10px rgba(250, 140, 22, 0.5);
   top: 0;
   top: 0;
   left: 50%;
   left: 50%;
-  transform: translateX(-50%);
-  animation: fade-dot 2s ease-in-out infinite;
+  margin-left: -8px;
+  animation: fade-dot 2s ease-in-out infinite, breathe 1.6s ease-in-out infinite;
 }
 }
 
 
 .dot:nth-child(2) {
 .dot:nth-child(2) {
   top: 50%;
   top: 50%;
   left: 100%;
   left: 100%;
-  transform: translate(-50%, -50%);
+  margin-left: -16px;
+  margin-top: -8px;
 }
 }
 
 
 .dot:nth-child(3) {
 .dot:nth-child(3) {
   top: 100%;
   top: 100%;
   left: 50%;
   left: 50%;
-  transform: translate(-50%, -100%);
+  margin-left: -8px;
+  margin-top: -16px;
 }
 }
 
 
 @keyframes spin {
 @keyframes spin {
@@ -88,6 +90,15 @@ const dotCount = 3
   }
   }
 }
 }
 
 
+@keyframes breathe {
+  0%, 100% {
+    transform: scale(1);
+  }
+  50% {
+    transform: scale(1.5);
+  }
+}
+
 @keyframes drift-x {
 @keyframes drift-x {
   0% {
   0% {
     transform: translateX(-120%);
     transform: translateX(-120%);