|
1 | | - |
2 | | -.ldsClickHouse, |
3 | | - |
4 | | -.ldsClickHouse div { |
5 | | - box-sizing: border-box; |
6 | | -} |
7 | | - |
8 | | -.ldsClickHouse { |
9 | | - display: inline-block; |
| 1 | +.wrapper { |
10 | 2 | position: relative; |
11 | | - align-self: center; |
12 | | - width: 80px; |
13 | | - height: 80px; |
14 | | -} |
15 | | - |
16 | | -.ldsClickHouse div { |
17 | | - color: yellow; |
18 | | - display: inline-block; |
19 | | - position: absolute; |
20 | | - left: 0px; |
21 | | - width: 2px; |
22 | | - background: currentColor; |
23 | | - animation: ldsClickHouse 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite; |
| 3 | + height: 100px; |
| 4 | + width: 100%; |
| 5 | + z-index: 44; |
| 6 | + overflow: hidden; |
| 7 | + border-radius: 5px; |
| 8 | + margin-bottom: 20px; |
24 | 9 | } |
25 | 10 |
|
26 | | -.ldsClickHouse div:nth-child(1) { |
27 | | - left: 4px; |
28 | | - animation-delay: -0.40s; |
| 11 | +[data-theme='dark'] .wrapper { |
| 12 | + background-color: rgb(46,46,41); |
29 | 13 | } |
30 | 14 |
|
31 | | -.ldsClickHouse div:nth-child(2) { |
32 | | - left: 8px; |
33 | | - animation-delay: -0.32s; |
| 15 | +[data-theme='light'] .wrapper { |
| 16 | + background-color: rgb(245,245,245); |
34 | 17 | } |
35 | 18 |
|
36 | | -.ldsClickHouse div:nth-child(3) { |
37 | | - left: 12px; |
38 | | - animation-delay: -0.24s; |
39 | | -} |
40 | | - |
41 | | -.ldsClickHouse div:nth-child(4) { |
42 | | - left: 16px; |
43 | | - animation-delay: -0.12s; |
| 19 | +.activity { |
| 20 | + position: absolute; |
| 21 | + left: -45%; |
| 22 | + height: 100%; |
| 23 | + width: 45%; |
| 24 | + animation: loading 1s infinite; |
| 25 | + z-index: 45; |
44 | 26 | } |
45 | 27 |
|
46 | | -.ldsClickHouse div:nth-child(5) { |
47 | | - margin-top: 4px; |
48 | | - left: 20px; |
49 | | - animation-delay: 0s; |
| 28 | +[data-theme='dark'] .activity { |
| 29 | + background-image: linear-gradient(to left, rgba(31,31,28, .05), rgba(31,31,28, .3), rgba(31,31,28, .6), rgba(31,31,28, .3), rgba(31,31,28, .05)); |
| 30 | + background-image: -moz-linear-gradient(to left, rgba(31,31,28, .05), rgba(31,31,28, .3), rgba(31,31,28, .6), rgba(31,31,28, .3), rgba(31,31,28, .05)); |
| 31 | + background-image: -webkit-linear-gradient(to left, rgba(31,31,28, .05), rgba(31,31,28, .3), rgba(31,31,28, .6), rgba(31,31,28, .3), rgba(31,31,28, .05)); |
50 | 32 | } |
51 | 33 |
|
52 | | -.shortBlock { |
53 | | - height: 4px !important; |
| 34 | +[data-theme='light'] .activity { |
| 35 | + background-image: linear-gradient(to left, rgba(227,227,227, .05), rgba(227,227,227, .3), rgba(227,227,227, .6), rgba(227,227,227, .3), rgba(227,227,227, .05)); |
| 36 | + background-image: -moz-linear-gradient(to left, rgba(227,227,227, .05), rgba(227,227,227, .3), rgba(227,227,227, .6), rgba(227,227,227, .3), rgba(227,227,227, .05)); |
| 37 | + background-image: -webkit-linear-gradient(to left, rgba(227,227,227, .05), rgba(227,227,227, .3), rgba(227,227,227, .6), rgba(227,227,227, .3), rgba(227,227,227, .05)); |
54 | 38 | } |
55 | 39 |
|
56 | | -@keyframes ldsClickHouse { |
| 40 | +@keyframes loading { |
57 | 41 | 0% { |
58 | | - top: 4px; |
59 | | - height: 32px; |
| 42 | + left: -45%; /* Start off-screen to the left */ |
60 | 43 | } |
61 | | - 50%, 100% { |
62 | | - top: 16px; |
63 | | - height: 16px; |
| 44 | + 100% { |
| 45 | + left: calc(100% + 45%); /* Move off-screen to the right */ |
64 | 46 | } |
65 | 47 | } |
66 | 48 |
|
0 commit comments