|
143 | 143 | } |
144 | 144 |
|
145 | 145 | .cly-vue-status-tag { |
146 | | - padding-right: 16.33px; |
147 | | - border-radius: 4px; |
148 | 146 | display: inline-block; |
149 | | - &--small { |
150 | | - font-size: 12px; |
151 | | - line-height: 18px; |
152 | | - display: flex; |
153 | | - align-items: baseline; |
154 | | - font-weight: 500; |
155 | | - } |
156 | | - &--green { |
157 | | - background-color: #EBFAEE; |
158 | | - color: #12AF51; |
159 | | - padding: 0px 6px; |
| 147 | + border-radius: 4px; |
| 148 | + padding: 0px 6px; |
| 149 | + |
| 150 | + // .cly-vue-status-tag__blink |
| 151 | + &__blink { |
| 152 | + display: inline-block; |
| 153 | + position: relative; |
| 154 | + top: -1px; |
| 155 | + width: 6px; |
| 156 | + height: 6px; |
| 157 | + border-radius: 8px; |
| 158 | + vertical-align: middle; |
| 159 | + margin-right: 2px; |
| 160 | + animation: blinker 1.5s cubic-bezier(0.5, 0, 1, 1) infinite alternate; |
160 | 161 | } |
161 | | - &--green &__blink{ |
162 | | - background-color: #12AF51; |
| 162 | + |
| 163 | + // .cly-vue-status-tag__skeleton |
| 164 | + &__skeleton { |
| 165 | + display: inline-block; |
| 166 | + position: relative; |
| 167 | + top: -1px; |
| 168 | + background-color: #BDBDBD; |
| 169 | + width: 40px; |
| 170 | + height: 4px; |
| 171 | + border-radius: 8px; |
| 172 | + vertical-align: middle; |
| 173 | + animation: blinker 1.5s cubic-bezier(0.5, 0, 1, 1) infinite alternate; |
163 | 174 | } |
| 175 | + |
| 176 | + // .cly-vue-status-tag--blue |
164 | 177 | &--blue { |
165 | 178 | background-color: #E6F0FB; |
166 | 179 | color: #017AFF; |
167 | | - padding: 0px 6px; |
168 | | - } |
169 | | - &--blue &__blink{ |
170 | | - background-color: #017AFF; |
| 180 | + |
| 181 | + // .cly-vue-status-tag--blue .cly-vue-status-tag__blink |
| 182 | + & .cly-vue-status-tag__blink { |
| 183 | + background-color: #017AFF; |
| 184 | + } |
171 | 185 | } |
172 | | - &--yellow { |
173 | | - background-color: #FCF5E5; |
174 | | - color: #CDAD7A; |
175 | | - padding: 0px 6px; |
| 186 | + |
| 187 | + // .cly-vue-status-tag--gray |
| 188 | + &--gray { |
| 189 | + background-color: #F5F5F5; |
| 190 | + color: #BDBDBD; |
| 191 | + |
| 192 | + // .cly-vue-status-tag--gray .cly-vue-status-tag__blink |
| 193 | + & .cly-vue-status-tag__blink { |
| 194 | + background-color: #BDBDBD; |
| 195 | + } |
176 | 196 | } |
177 | | - &--yellow &__blink{ |
178 | | - background-color: #CDAD7A; |
| 197 | + |
| 198 | + // .cly-vue-status-tag--green |
| 199 | + &--green { |
| 200 | + background-color: #EBFAEE; |
| 201 | + color: #12AF51; |
| 202 | + |
| 203 | + // .cly-vue-status-tag--green .cly-vue-status-tag__blink |
| 204 | + & .cly-vue-status-tag__blink { |
| 205 | + background-color: #12AF51; |
| 206 | + } |
179 | 207 | } |
| 208 | + |
| 209 | + // .cly-vue-status-tag--red |
180 | 210 | &--red { |
181 | 211 | background-color: #FBECE5; |
182 | 212 | color: #D23F00; |
183 | | - padding: 0px 6px; |
184 | | - } |
185 | | - &--red &__blink{ |
186 | | - background-color: #D23F00; |
187 | | - } |
188 | | - &--gray { |
189 | | - background-color: #F5F5F5; |
190 | | - color: #BDBDBD; |
191 | | - padding: 0px 6px; |
| 213 | + |
| 214 | + // .cly-vue-status-tag--red .cly-vue-status-tag__blink |
| 215 | + & .cly-vue-status-tag__blink { |
| 216 | + background-color: #D23F00; |
| 217 | + } |
192 | 218 | } |
193 | | - &--gray &__blink{ |
194 | | - background-color: #BDBDBD; |
| 219 | + |
| 220 | + // .cly-vue-status-tag--small |
| 221 | + &--small { |
| 222 | + font-size: 12px; |
| 223 | + line-height: 18px; |
| 224 | + display: flex; |
| 225 | + align-items: baseline; |
| 226 | + font-weight: 500; |
| 227 | + |
| 228 | + // .cly-vue-status-tag--small .cly-vue-status-tag__blink |
| 229 | + & .cly-vue-status-tag__blink { |
| 230 | + /* |
| 231 | + NOTE: This is a hack to make the blinking dot align with the blinking line |
| 232 | + the hole component styles should be redone when working on the new UI |
| 233 | + */ |
| 234 | + top: 1px; |
| 235 | + } |
| 236 | + |
| 237 | + // .cly-vue-status-tag--small .cly-vue-status-tag__skeleton |
| 238 | + & .cly-vue-status-tag__skeleton { |
| 239 | + /* |
| 240 | + NOTE: This is a hack to make the blinking line align with the blinking dot |
| 241 | + the hole component styles should be redone when working on the new UI |
| 242 | + */ |
| 243 | + top: 0px; |
| 244 | + margin: 4px 0; |
| 245 | + } |
195 | 246 | } |
196 | | - &__blink { |
197 | | - position: relative; |
198 | | - top: -1px; |
199 | | - width: 6px; |
200 | | - height: 6px; |
201 | | - border-radius: 8px; |
202 | | - display: inline-block; |
203 | | - vertical-align: middle; |
204 | | - margin-right: 2px; |
205 | | - animation: blinker 1.5s cubic-bezier(0.5, 0, 1, 1) infinite alternate; |
| 247 | + |
| 248 | + // .cly-vue-status-tag--yellow |
| 249 | + &--yellow { |
| 250 | + background-color: #FCF5E5; |
| 251 | + color: #CDAD7A; |
| 252 | + |
| 253 | + // .cly-vue-status-tag--yellow .cly-vue-status-tag__blink |
| 254 | + & .cly-vue-status-tag__blink { |
| 255 | + background-color: #CDAD7A; |
| 256 | + } |
206 | 257 | } |
| 258 | + |
207 | 259 | @keyframes blinker { |
208 | 260 | 50% { |
209 | | - opacity: 0; |
| 261 | + opacity: 0; |
210 | 262 | } |
211 | | - } |
212 | | - } |
| 263 | + } |
| 264 | +} |
213 | 265 |
|
214 | 266 | .cly-vue-theme-clydef { |
215 | 267 |
|
|
0 commit comments