|
| 1 | +$grayscale: ( |
| 2 | + 03: 0.03, |
| 3 | + 05: 0.05, |
| 4 | + 08: 0.08, |
| 5 | + 10: 0.1, |
| 6 | + 15: 0.15, |
| 7 | + 20: 0.2, |
| 8 | + 30: 0.3, |
| 9 | + 40: 0.4, |
| 10 | + 50: 0.5, |
| 11 | +); |
| 12 | + |
| 13 | +:root { |
| 14 | + --base-width: 992px; |
| 15 | + |
| 16 | + /* Main */ |
| 17 | + --app-background: rgb(23, 25, 27); |
| 18 | + --card-background: rgb(32, 34, 37); |
| 19 | + --tooltip-background: rgba(0, 0, 0, 90%); |
| 20 | + --outline-background: #2b2d30; |
| 21 | + --outline-background-hover: #1e2022; |
| 22 | + --outline-gradient: linear-gradient(var(--op-15), var(--op-5)); |
| 23 | + |
| 24 | + /* Text */ |
| 25 | + --txt-primary: rgba(255, 255, 255, 90%); |
| 26 | + --txt-body: rgba(255, 255, 255, 75%); |
| 27 | + --txt-secondary: rgba(255, 255, 255, 65%); |
| 28 | + --txt-tertiary: rgba(255, 255, 255, 35%); |
| 29 | + --txt-support: rgba(255, 255, 255, 15%); |
| 30 | + --txt-black: rgba(0, 0, 0, 95%); |
| 31 | + |
| 32 | + /* General */ |
| 33 | + --brand: #924dff; |
| 34 | + --blue: #0b84fe; |
| 35 | + --red: #eb5757; |
| 36 | + --orange: #ff5a17; |
| 37 | + --light-orange: #ff8351; |
| 38 | + --yellow: #ffd400; |
| 39 | + --green: #0ade71; |
| 40 | + --neutral-green: #33a853; |
| 41 | + --purple: #5856de; |
| 42 | + |
| 43 | + /* Grayscale */ |
| 44 | + @each $gray, $value in $grayscale { |
| 45 | + --op-#{$gray}: rgba(255, 255, 255, #{$value}); |
| 46 | + } |
| 47 | + |
| 48 | + /** Button */ |
| 49 | + --btn-white-bg: rgba(255, 255, 255, 90%); |
| 50 | + --btn-white-bg-hover: rgba(255, 255, 255, 75%); |
| 51 | + --btn-white-bg-active: rgba(255, 255, 255, 90%); |
| 52 | + --btn-secondary-bg: rgba(255, 255, 255, 5%); |
| 53 | + --btn-secondary-bg-hover: rgba(255, 255, 255, 8%); |
| 54 | + --btn-secondary-bg-active: rgba(255, 255, 255, 5%); |
| 55 | + |
| 56 | + /** Other */ |
| 57 | + --network-widget-background: rgba(0, 0, 0, 10%); |
| 58 | + --network-widget-separator: #2f3133; |
| 59 | + --network-widget-indicator: #fff; |
| 60 | + --feed-background: rgba(0, 0, 0, 8%); |
| 61 | + --notification-background: rgba(0, 0, 0, 95%); |
| 62 | + --block-progress-background: rgba(0, 0, 0, 20%); |
| 63 | + --logo-name: var(--txt-primary); |
| 64 | +} |
| 65 | + |
| 66 | +[theme="light"] { |
| 67 | + --base-width: 992px; |
| 68 | + |
| 69 | + /* Main */ |
| 70 | + --app-background: rgb(235, 235, 235); |
| 71 | + --card-background: rgb(255, 255, 255); |
| 72 | + --tooltip-background: rgba(255, 255, 255, 100%); |
| 73 | + --outline-background: #e5e5e5; |
| 74 | + --outline-gradient: linear-gradient(var(--op-10), var(--op-20)); |
| 75 | + |
| 76 | + /* Text */ |
| 77 | + --txt-primary: rgba(0, 0, 0, 90%); |
| 78 | + --txt-body: rgba(0, 0, 0, 75%); |
| 79 | + --txt-secondary: rgba(0, 0, 0, 70%); |
| 80 | + --txt-tertiary: rgba(0, 0, 0, 40%); |
| 81 | + --txt-support: rgba(0, 0, 0, 20%); |
| 82 | + --txt-black: rgba(0, 0, 0, 95%); |
| 83 | + |
| 84 | + /* General */ |
| 85 | + --brand: #924dff; |
| 86 | + --blue: #0b84fe; |
| 87 | + --red: #eb5757; |
| 88 | + --orange: #ff5a17; |
| 89 | + --light-orange: #ff8351; |
| 90 | + --yellow: #ffd400; |
| 91 | + --green: #26c071; |
| 92 | + --neutral-green: #33a853; |
| 93 | + --purple: #5856de; |
| 94 | + |
| 95 | + /* Grayscale */ |
| 96 | + @each $gray, $value in $grayscale { |
| 97 | + --op-#{$gray}: rgba(0, 0, 0, #{$value}); |
| 98 | + } |
| 99 | + |
| 100 | + /** Button */ |
| 101 | + --btn-white-bg: rgba(255, 255, 255, 90%); |
| 102 | + --btn-white-bg-hover: rgba(255, 255, 255, 75%); |
| 103 | + --btn-white-bg-active: rgba(255, 255, 255, 90%); |
| 104 | + --btn-secondary-bg: rgba(0, 0, 0, 8%); |
| 105 | + --btn-secondary-bg-hover: rgba(0, 0, 0, 12%); |
| 106 | + --btn-secondary-bg-active: rgba(0, 0, 0, 8%); |
| 107 | + |
| 108 | + /** Other */ |
| 109 | + --network-widget-background: rgba(0, 0, 0, 3%); |
| 110 | + --network-widget-separator: #eaeaea; |
| 111 | + --network-widget-indicator: #000; |
| 112 | + --feed-background: rgba(0, 0, 0, 2%); |
| 113 | + --notification-background: rgba(255, 255, 255, 95%); |
| 114 | + --block-progress-background: rgba(0, 0, 0, 8%); |
| 115 | + --logo-name: var(--txt-primary); |
| 116 | +} |
| 117 | + |
| 118 | +*, |
| 119 | +*::before, |
| 120 | +*::after { |
| 121 | + box-sizing: border-box; |
| 122 | + margin: 0; |
| 123 | +} |
| 124 | + |
| 125 | +:disabled { |
| 126 | + cursor: default; |
| 127 | +} |
| 128 | + |
| 129 | +a { |
| 130 | + text-decoration: none; |
| 131 | +} |
| 132 | + |
| 133 | +button, |
| 134 | +[role="button"] { |
| 135 | + cursor: pointer; |
| 136 | +} |
| 137 | + |
| 138 | +button { |
| 139 | + font-family: inherit; |
| 140 | + padding: 0; |
| 141 | + border: none; |
| 142 | + outline: none; |
| 143 | +} |
| 144 | + |
| 145 | +input { |
| 146 | + font: inherit; |
| 147 | + border: none; |
| 148 | + outline: none; |
| 149 | + background: transparent; |
| 150 | +} |
| 151 | + |
| 152 | +html { |
| 153 | + overflow-x: hidden; |
| 154 | + scrollbar-gutter: stable; |
| 155 | +} |
| 156 | + |
| 157 | +body { |
| 158 | + min-height: 100vh; |
| 159 | + |
| 160 | + background: var(--app-background); |
| 161 | + |
| 162 | + font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", |
| 163 | + "Helvetica Neue", sans-serif; |
| 164 | + text-rendering: optimizeLegibility; |
| 165 | + -webkit-font-smoothing: antialiased; |
| 166 | + -moz-osx-font-smoothing: grayscale; |
| 167 | + |
| 168 | + user-select: none; |
| 169 | +} |
| 170 | + |
| 171 | +*::-webkit-scrollbar { |
| 172 | + width: 4px; |
| 173 | + height: 4px; |
| 174 | +} |
| 175 | + |
| 176 | +*::-webkit-scrollbar-track { |
| 177 | +} |
| 178 | + |
| 179 | +*::-webkit-scrollbar-thumb { |
| 180 | + background-color: rgba(255, 255, 255, 0); |
| 181 | + border-radius: 50px; |
| 182 | +} |
| 183 | + |
| 184 | +*::-webkit-scrollbar-thumb { |
| 185 | + background-color: rgba(255, 255, 255, 0.15); |
| 186 | +} |
| 187 | + |
| 188 | +*::-webkit-scrollbar-corner { |
| 189 | + background-color: transparent; |
| 190 | +} |
| 191 | + |
| 192 | +.copyable { |
| 193 | + cursor: copy; |
| 194 | +} |
| 195 | + |
| 196 | +.dot { |
| 197 | + width: 3px; |
| 198 | + height: 3px; |
| 199 | + |
| 200 | + border-radius: 50px; |
| 201 | + background: var(--txt-tertiary); |
| 202 | +} |
| 203 | + |
| 204 | +.popup-enter-active, |
| 205 | +.popup-leave-active { |
| 206 | + transition: all 0.1s ease; |
| 207 | +} |
| 208 | + |
| 209 | +.popup-enter-from, |
| 210 | +.popup-leave-to { |
| 211 | + opacity: 0; |
| 212 | + transform: scale(0.5); |
| 213 | +} |
| 214 | + |
| 215 | +.fade-enter-active, |
| 216 | +.fade-leave-active { |
| 217 | + transition: all 0.2s ease; |
| 218 | +} |
| 219 | + |
| 220 | +.fade-enter-from, |
| 221 | +.fade-leave-to { |
| 222 | + opacity: 0; |
| 223 | +} |
| 224 | + |
| 225 | +.fastfade-enter-active, |
| 226 | +.fastfade-leave-active { |
| 227 | + transition: all 0.1s ease; |
| 228 | +} |
| 229 | + |
| 230 | +.fastfade-enter-from, |
| 231 | +.fastfade-leave-to { |
| 232 | + opacity: 0; |
| 233 | +} |
0 commit comments