diff options
author | mrpaulblack <paul@paulgo.io> | 2021-11-21 12:04:08 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-23 12:35:37 +0100 |
commit | 6a367b59cef38fad42c7f39f80579746de267d62 (patch) | |
tree | ce1ebbaa5dcddc7a95e56666ef6af2a6aa991a97 | |
parent | e612b81f412934a75b9c187d7f1daf98c0373363 (diff) | |
download | searxng-6a367b59cef38fad42c7f39f80579746de267d62.tar.gz searxng-6a367b59cef38fad42c7f39f80579746de267d62.zip |
[simple theme] add animations.less for keyframe animations
-rw-r--r-- | searx/static/themes/simple/src/less/animations.less | 15 | ||||
-rw-r--r-- | searx/static/themes/simple/src/less/style.less | 1 | ||||
-rw-r--r-- | searx/static/themes/simple/src/less/toolkit.less | 13 |
3 files changed, 16 insertions, 13 deletions
diff --git a/searx/static/themes/simple/src/less/animations.less b/searx/static/themes/simple/src/less/animations.less new file mode 100644 index 000000000..750b7d255 --- /dev/null +++ b/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); + } + } +} diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index a5c050f20..17d6dd845 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -16,6 +16,7 @@ @import "toolkit.less"; @import "autocomplete.less"; @import "detail.less"; +@import "animations.less"; // for index.html template @import "index.less"; diff --git a/searx/static/themes/simple/src/less/toolkit.less b/searx/static/themes/simple/src/less/toolkit.less index 2c835e9b4..924c81a08 100644 --- a/searx/static/themes/simple/src/less/toolkit.less +++ b/searx/static/themes/simple/src/less/toolkit.less @@ -191,25 +191,12 @@ div.selectable_url { margin: 0 auto; transform: translate(-50%, -50%); z-index: 10000000; - animation-name: dialogmodal; - animation-duration: 0.13s; h3 { margin-top: 0; } } -@keyframes dialogmodal { - 0% { - opacity: 0; - } - - 50% { - opacity: 0.5; - transform: translate(-50%, -50%) scale(1.05); - } -} - // btn-collapse .btn-collapse { cursor: pointer; |