Skip to content

Commit ebb68a5

Browse files
KacperFKorbantanishiking
authored andcommitted
Better loading animation
1 parent 97a27ef commit ebb68a5

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

scaladoc/resources/dotty_res/styles/search-bar.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
/* Loading */
6868
.loading-wrapper {
69-
align-self: center;
69+
text-align: center;
7070
padding: 4px;
7171
}
7272

@@ -75,16 +75,19 @@
7575
width: 10px;
7676
height: 10px;
7777
border-radius: 5px;
78-
background-color: var(--shadow);
79-
color: var(--shadow);
80-
animation: dotFlashing .4s infinite alternate;
78+
background-color: var(--leftbar-bg);
79+
color: var(--leftbar-bg);
80+
animation-name: dotFlashing;
81+
animation-duration: 1.6s;
82+
animation-iteration-count: infinite;
83+
animation-direction: normal;
84+
animation-timing-function: ease-in-out;
8185
display: inline-block;
8286
position: absolute;
8387
top: 0;
8488
}
8589

8690
.loading {
87-
left: 50%;
8891
position: relative;
8992
animation-delay: .2s;
9093
}
@@ -103,7 +106,10 @@
103106
0% {
104107
background-color: var(--leftbar-bg);
105108
}
106-
100% {
109+
25% {
107110
background-color: var(--shadow);
108111
}
112+
50% {
113+
background-color: var(--leftbar-bg);
114+
}
109115
}

0 commit comments

Comments
 (0)