|
| 1 | + |
| 2 | +*, ::after, ::before { |
| 3 | + box-sizing: border-box; |
| 4 | + border-width: 0; |
| 5 | + border-style: solid; |
| 6 | + border-color: #e5e7eb; |
| 7 | + font-size: 1rem; |
| 8 | + font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI"; |
| 9 | +} |
| 10 | + |
| 11 | +.body { |
| 12 | + padding: 4rem; |
| 13 | + justify-content: center; |
| 14 | + display: flex; |
| 15 | + flex-direction: column; |
| 16 | + align-items: center; |
| 17 | + width: 100vw; |
| 18 | + height: 100vh; |
| 19 | +} |
| 20 | + |
| 21 | +.logo { |
| 22 | + margin-bottom: 2.5rem; |
| 23 | +} |
| 24 | + |
| 25 | +.form { |
| 26 | + display: flex; |
| 27 | + flex-direction: column; |
| 28 | + align-items: center; |
| 29 | + width: 50%; |
| 30 | + margin-bottom: 3rem; |
| 31 | +} |
| 32 | + |
| 33 | +.input { |
| 34 | + padding-left: 0.5rem; |
| 35 | + padding-right: 0.5rem; |
| 36 | + border-width: 1px; |
| 37 | + border-radius: 0.5rem; |
| 38 | + width: 100%; |
| 39 | + height: 2rem; |
| 40 | +} |
| 41 | + |
| 42 | +.ask { |
| 43 | + padding-top: 0.25rem; |
| 44 | + padding-bottom: 0.25rem; |
| 45 | + padding-left: 0.5rem; |
| 46 | + padding-right: 0.5rem; |
| 47 | + border-width: 1px; |
| 48 | + border-color: rgb(191 219 254); |
| 49 | + border-radius: 0.5rem; |
| 50 | + margin-left: 0.75rem; |
| 51 | + margin-top: 2rem; |
| 52 | + width: 4rem; |
| 53 | + background-color: rgb(219 234 254); |
| 54 | +} |
| 55 | + |
| 56 | +button.ask:hover { |
| 57 | + background-color: rgb(3 105 161); |
| 58 | +} |
| 59 | + |
| 60 | +.answer { |
| 61 | + display: flex; |
| 62 | + padding: 1.25rem; |
| 63 | + background-color: rgb(219 234 254); |
| 64 | + border-color: rgb(191 219 254); |
| 65 | + border-radius: 0.5rem; |
| 66 | + width: 50%; |
| 67 | + line-height: 1.4rem; |
| 68 | + display: none; |
| 69 | + overflow-y: auto; |
| 70 | +} |
| 71 | + |
| 72 | +.hide { |
| 73 | + display: none !important; |
| 74 | +} |
| 75 | + |
| 76 | +.show { |
| 77 | + display: block !important; |
| 78 | +} |
| 79 | + |
| 80 | + |
| 81 | +/* Spinner */ |
| 82 | + |
| 83 | +.lds-spinner { |
| 84 | + color: official; |
| 85 | + display: inline-block; |
| 86 | + position: relative; |
| 87 | + width: 80px; |
| 88 | + height: 80px; |
| 89 | + display: none; |
| 90 | +} |
| 91 | +.lds-spinner div { |
| 92 | + transform-origin: 40px 40px; |
| 93 | + animation: lds-spinner 1.2s linear infinite; |
| 94 | +} |
| 95 | +.lds-spinner div:after { |
| 96 | + content: " "; |
| 97 | + display: block; |
| 98 | + position: absolute; |
| 99 | + top: 3px; |
| 100 | + left: 37px; |
| 101 | + width: 6px; |
| 102 | + height: 18px; |
| 103 | + border-radius: 20%; |
| 104 | + background: rgb(66,132,243); |
| 105 | +} |
| 106 | +.lds-spinner div:nth-child(1) { |
| 107 | + transform: rotate(0deg); |
| 108 | + animation-delay: -1.1s; |
| 109 | +} |
| 110 | +.lds-spinner div:nth-child(2) { |
| 111 | + transform: rotate(30deg); |
| 112 | + animation-delay: -1s; |
| 113 | +} |
| 114 | +.lds-spinner div:nth-child(3) { |
| 115 | + transform: rotate(60deg); |
| 116 | + animation-delay: -0.9s; |
| 117 | +} |
| 118 | +.lds-spinner div:nth-child(4) { |
| 119 | + transform: rotate(90deg); |
| 120 | + animation-delay: -0.8s; |
| 121 | +} |
| 122 | +.lds-spinner div:nth-child(5) { |
| 123 | + transform: rotate(120deg); |
| 124 | + animation-delay: -0.7s; |
| 125 | +} |
| 126 | +.lds-spinner div:nth-child(6) { |
| 127 | + transform: rotate(150deg); |
| 128 | + animation-delay: -0.6s; |
| 129 | +} |
| 130 | +.lds-spinner div:nth-child(7) { |
| 131 | + transform: rotate(180deg); |
| 132 | + animation-delay: -0.5s; |
| 133 | +} |
| 134 | +.lds-spinner div:nth-child(8) { |
| 135 | + transform: rotate(210deg); |
| 136 | + animation-delay: -0.4s; |
| 137 | +} |
| 138 | +.lds-spinner div:nth-child(9) { |
| 139 | + transform: rotate(240deg); |
| 140 | + animation-delay: -0.3s; |
| 141 | +} |
| 142 | +.lds-spinner div:nth-child(10) { |
| 143 | + transform: rotate(270deg); |
| 144 | + animation-delay: -0.2s; |
| 145 | +} |
| 146 | +.lds-spinner div:nth-child(11) { |
| 147 | + transform: rotate(300deg); |
| 148 | + animation-delay: -0.1s; |
| 149 | +} |
| 150 | +.lds-spinner div:nth-child(12) { |
| 151 | + transform: rotate(330deg); |
| 152 | + animation-delay: 0s; |
| 153 | +} |
| 154 | +@keyframes lds-spinner { |
| 155 | + 0% { |
| 156 | + opacity: 1; |
| 157 | + } |
| 158 | + 100% { |
| 159 | + opacity: 0; |
| 160 | + } |
| 161 | +} |
0 commit comments