forked from Ponysearch/Ponysearch
[simple theme] add animations.less for keyframe animations
This commit is contained in:
parent
e612b81f41
commit
6a367b59ce
3 changed files with 16 additions and 13 deletions
15
searx/static/themes/simple/src/less/animations.less
Normal file
15
searx/static/themes/simple/src/less/animations.less
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue