Browse Source

[simple theme] add animations.less for keyframe animations

mrpaulblack 3 years ago
parent
commit
6a367b59ce

+ 15 - 0
searx/static/themes/simple/src/less/animations.less

@@ -0,0 +1,15 @@
+.dialog-modal {
+  animation-name: dialogmodal;
+  animation-duration: 0.13s;
+
+  @keyframes dialogmodal {
+    0% {
+      opacity: 0;
+    }
+
+    50% {
+      opacity: 0.5;
+      transform: translate(-50%, -50%) scale(1.05);
+    }
+  }
+}

+ 1 - 0
searx/static/themes/simple/src/less/style.less

@@ -16,6 +16,7 @@
 @import "toolkit.less";
 @import "toolkit.less";
 @import "autocomplete.less";
 @import "autocomplete.less";
 @import "detail.less";
 @import "detail.less";
+@import "animations.less";
 
 
 // for index.html template
 // for index.html template
 @import "index.less";
 @import "index.less";

+ 0 - 13
searx/static/themes/simple/src/less/toolkit.less

@@ -191,25 +191,12 @@ div.selectable_url {
   margin: 0 auto;
   margin: 0 auto;
   transform: translate(-50%, -50%);
   transform: translate(-50%, -50%);
   z-index: 10000000;
   z-index: 10000000;
-  animation-name: dialogmodal;
-  animation-duration: 0.13s;
 
 
   h3 {
   h3 {
     margin-top: 0;
     margin-top: 0;
   }
   }
 }
 }
 
 
-@keyframes dialogmodal {
-  0% {
-    opacity: 0;
-  }
-
-  50% {
-    opacity: 0.5;
-    transform: translate(-50%, -50%) scale(1.05);
-  }
-}
-
 // btn-collapse
 // btn-collapse
 .btn-collapse {
 .btn-collapse {
   cursor: pointer;
   cursor: pointer;