|
12 | 12 | cursor: crosshair; |
13 | 13 | } |
14 | 14 |
|
| 15 | + .trading-chart-host--history-loading::before { |
| 16 | + content: ""; |
| 17 | + position: absolute; |
| 18 | + top: 0; |
| 19 | + bottom: 0; |
| 20 | + left: 0; |
| 21 | + width: 16px; |
| 22 | + z-index: 12; |
| 23 | + pointer-events: none; |
| 24 | + background: |
| 25 | + linear-gradient( |
| 26 | + 180deg, |
| 27 | + transparent 0%, |
| 28 | + transparent 6%, |
| 29 | + rgba(153, 246, 228, 0.94) 20%, |
| 30 | + rgba(20, 184, 166, 0.96) 36%, |
| 31 | + rgba(153, 246, 228, 0.94) 52%, |
| 32 | + transparent 68%, |
| 33 | + transparent 100% |
| 34 | + ) left 0 / 3px 170% no-repeat, |
| 35 | + linear-gradient(90deg, rgba(20, 184, 166, 0.13), transparent 100%) left top / 16px 100% no-repeat, |
| 36 | + linear-gradient(180deg, rgba(20, 184, 166, 0.24), rgba(20, 184, 166, 0.08)) left top / 1px 100% no-repeat; |
| 37 | + filter: drop-shadow(0 0 7px rgba(20, 184, 166, 0.4)); |
| 38 | + animation: chart-history-load-edge 1.18s cubic-bezier(0.4, 0, 0.2, 1) infinite; |
| 39 | + } |
| 40 | + |
| 41 | + .trading-chart-host--history-loading::after { |
| 42 | + content: "Loading older candles"; |
| 43 | + position: absolute; |
| 44 | + top: 12px; |
| 45 | + left: 12px; |
| 46 | + z-index: 13; |
| 47 | + pointer-events: none; |
| 48 | + max-width: min(240px, calc(100% - 24px)); |
| 49 | + padding: 5px 8px; |
| 50 | + border: 1px solid rgba(20, 184, 166, 0.28); |
| 51 | + border-radius: 6px; |
| 52 | + background: rgba(7, 17, 20, 0.82); |
| 53 | + color: rgb(153, 246, 228); |
| 54 | + font-size: 11px; |
| 55 | + font-weight: 600; |
| 56 | + line-height: 1.1; |
| 57 | + letter-spacing: 0; |
| 58 | + white-space: nowrap; |
| 59 | + overflow: hidden; |
| 60 | + text-overflow: ellipsis; |
| 61 | + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24); |
| 62 | + } |
| 63 | + |
| 64 | + @keyframes chart-history-load-edge { |
| 65 | + 0% { |
| 66 | + background-position: left -115%, left top, left top; |
| 67 | + opacity: 0.7; |
| 68 | + } |
| 69 | + |
| 70 | + 58% { |
| 71 | + opacity: 1; |
| 72 | + } |
| 73 | + |
| 74 | + 100% { |
| 75 | + background-position: left 155%, left top, left top; |
| 76 | + opacity: 0.7; |
| 77 | + } |
| 78 | + } |
| 79 | + |
| 80 | + @media (prefers-reduced-motion: reduce) { |
| 81 | + .trading-chart-host--history-loading::before { |
| 82 | + animation: none; |
| 83 | + } |
| 84 | + } |
15 | 85 | } |
0 commit comments