|
| 1 | +*, |
| 2 | +*::before, |
| 3 | +*::after { |
| 4 | + margin: 0; |
| 5 | + padding: 0; |
| 6 | + box-sizing: border-box; |
| 7 | +} |
| 8 | + |
| 9 | +html { |
| 10 | + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, |
| 11 | + sans-serif; |
| 12 | + color: #222; |
| 13 | +} |
| 14 | + |
| 15 | +body { |
| 16 | + margin: 0; |
| 17 | + padding: 0.5rem; |
| 18 | + background-color: #778da9; |
| 19 | + width: 320px; |
| 20 | + font-size: small; |
| 21 | +} |
| 22 | + |
| 23 | +p { |
| 24 | + margin: 0; |
| 25 | +} |
| 26 | + |
| 27 | +/* LOADING BAR */ |
| 28 | +#loadingContainer { |
| 29 | + margin-bottom: 15px; |
| 30 | + width: 300px; |
| 31 | + height: 8px; |
| 32 | + } |
| 33 | + |
| 34 | +/* INPUT AREA */ |
| 35 | +#query-input { |
| 36 | + border: 1px solid #ccc; |
| 37 | + border-radius: 4px; |
| 38 | +} |
| 39 | + |
| 40 | +.input-container { |
| 41 | + display: flex; |
| 42 | + flex-direction: row; |
| 43 | + align-items: center; |
| 44 | +} |
| 45 | + |
| 46 | +.input-container input { |
| 47 | + width: 100%; |
| 48 | + outline: none; |
| 49 | + padding: 0.5rem; |
| 50 | + margin-right: 0.5rem; |
| 51 | +} |
| 52 | + |
| 53 | +/* SUBMIT BUTTON */ |
| 54 | +.btn { |
| 55 | + background-color: #1b263b; |
| 56 | + color: white; |
| 57 | + font-size: small; |
| 58 | + cursor: pointer; |
| 59 | + border-radius: 4px; |
| 60 | + border: none; |
| 61 | + padding: 0.5rem; |
| 62 | +} |
| 63 | + |
| 64 | +.btn:hover { |
| 65 | + background-color: #d0d0d0; |
| 66 | +} |
| 67 | + |
| 68 | +.btn:disabled { |
| 69 | + background-color: #a7a7a7; |
| 70 | + color: rgb(255, 255, 255); |
| 71 | + cursor: default; |
| 72 | +} |
| 73 | + |
| 74 | +.btn img { |
| 75 | + width: 1rem; |
| 76 | + height: 1rem; |
| 77 | +} |
| 78 | + |
| 79 | +/* LOADING */ |
| 80 | + |
| 81 | +.stage { |
| 82 | + display: flex; |
| 83 | + justify-content: center; |
| 84 | + align-items: center; |
| 85 | + position: relative; |
| 86 | + margin: 0 -5%; |
| 87 | + overflow: hidden; |
| 88 | +} |
| 89 | + |
| 90 | +#loading-indicator { |
| 91 | + display: none; |
| 92 | + color: white; |
| 93 | + margin-top: 0.5rem; |
| 94 | +} |
| 95 | + |
| 96 | +.dot-flashing { |
| 97 | + position: relative; |
| 98 | + width: 10px; |
| 99 | + height: 10px; |
| 100 | + border-radius: 5px; |
| 101 | + background-color: #1b263b; |
| 102 | + color: #1b263b; |
| 103 | + animation: dot-flashing 0.4s infinite linear alternate; |
| 104 | + animation-delay: 0.2s; |
| 105 | +} |
| 106 | + |
| 107 | +.dot-flashing::before, |
| 108 | +.dot-flashing::after { |
| 109 | + content: ""; |
| 110 | + display: inline-block; |
| 111 | + position: absolute; |
| 112 | + top: 0; |
| 113 | +} |
| 114 | + |
| 115 | +.dot-flashing::before { |
| 116 | + left: -15px; |
| 117 | + width: 10px; |
| 118 | + height: 10px; |
| 119 | + border-radius: 5px; |
| 120 | + background-color: #1b263b; |
| 121 | + color: #1b263b; |
| 122 | + animation: dot-flashing 0.4s infinite alternate; |
| 123 | + animation-delay: 0s; |
| 124 | +} |
| 125 | + |
| 126 | +.dot-flashing::after { |
| 127 | + left: 15px; |
| 128 | + width: 10px; |
| 129 | + height: 10px; |
| 130 | + border-radius: 5px; |
| 131 | + background-color: #1b263b; |
| 132 | + color: #1b263b; |
| 133 | + animation: dot-flashing 0.4s infinite alternate; |
| 134 | + animation-delay: 0.4s; |
| 135 | +} |
| 136 | + |
| 137 | +@keyframes dot-flashing { |
| 138 | + 0% { |
| 139 | + background-color: #1b263b; |
| 140 | + } |
| 141 | + |
| 142 | + 50%, |
| 143 | + 100% { |
| 144 | + background-color: #415a77; |
| 145 | + } |
| 146 | +} |
| 147 | + |
| 148 | +/* ANSWERS */ |
| 149 | +#queriesAnswersContainer { |
| 150 | + display: block; |
| 151 | + color: white; |
| 152 | + margin-top: 0.5rem; |
| 153 | +} |
| 154 | + |
| 155 | +#answer { |
| 156 | + color: #333333; |
| 157 | +} |
| 158 | + |
| 159 | +#answerWrapper { |
| 160 | + display: none; |
| 161 | + background-color: #ffd166; |
| 162 | + border-radius: 8px; |
| 163 | + padding: 0.5rem; |
| 164 | + margin-top: 0.5rem; |
| 165 | +} |
| 166 | + |
| 167 | +.queriesAnswers { |
| 168 | + border-radius: 8px; |
| 169 | + background-color: #ffd166;; |
| 170 | + padding: 0.5rem; |
| 171 | + color: #333333; |
| 172 | +} |
| 173 | + |
| 174 | +#lastQuery { |
| 175 | + color: rgb(188, 188, 188); |
| 176 | +} |
| 177 | + |
| 178 | +#lastAnswer { |
| 179 | + color: white; |
| 180 | + margin-top: 0.5rem; |
| 181 | +} |
| 182 | + |
| 183 | +#lastRequest { |
| 184 | + padding: 0.5rem; |
| 185 | + margin-top: 0.5rem; |
| 186 | + background-color: #333333; |
| 187 | + border-radius: 4px; |
| 188 | +} |
| 189 | + |
| 190 | +/* ANSWER OPTIONS */ |
| 191 | +.timeStamp { |
| 192 | + color: #9a8c98; |
| 193 | +} |
| 194 | + |
| 195 | +.copyRow { |
| 196 | + display: flex; |
| 197 | + flex-direction: row; |
| 198 | + align-items: end; |
| 199 | + justify-content: space-between; |
| 200 | + color: #a7a7a7; |
| 201 | + margin-top: 0.5rem; |
| 202 | +} |
| 203 | + |
| 204 | +.copyText { |
| 205 | + display: none; |
| 206 | + color: #a7a7a7; |
| 207 | + margin-right: 0.5rem; |
| 208 | +} |
| 209 | + |
| 210 | +.copyButton { |
| 211 | + color: #415a77; |
| 212 | + background-color: transparent; |
| 213 | + border: none; |
| 214 | + cursor: pointer; |
| 215 | + padding: 0; |
| 216 | + margin-left: 0.5rem; |
| 217 | +} |
| 218 | + |
| 219 | +.copyButton:hover { |
| 220 | + color: #5e80a7; |
| 221 | + background-color: transparent; |
| 222 | +} |
| 223 | + |
| 224 | +.removeButton { |
| 225 | + color: #415a77; |
| 226 | + background-color: transparent; |
| 227 | + border: none; |
| 228 | + cursor: pointer; |
| 229 | + padding: 0; |
| 230 | +} |
| 231 | + |
| 232 | +.removeButton:hover { |
| 233 | + color: #5e80a7; |
| 234 | + background-color: transparent; |
| 235 | +} |
0 commit comments