|
255 | 255 | --calcite-internal-button-text-color: var(--calcite-color-text-inverse);
|
256 | 256 | --calcite-internal-button-background-color: var(--calcite-color-brand);
|
257 | 257 |
|
258 |
| - &:hover, |
259 |
| - &:focus { |
| 258 | + &:hover { |
260 | 259 | --calcite-internal-button-background-color: var(--calcite-color-brand-hover);
|
261 | 260 | }
|
262 | 261 | &:active {
|
|
270 | 269 | --calcite-internal-button-text-color: var(--calcite-color-text-inverse);
|
271 | 270 | --calcite-internal-button-background-color: var(--calcite-color-status-danger);
|
272 | 271 |
|
273 |
| - &:hover, |
274 |
| - &:focus { |
| 272 | + &:hover { |
275 | 273 | --calcite-internal-button-background-color: var(--calcite-color-status-danger-hover);
|
276 | 274 | }
|
277 | 275 | &:active {
|
|
284 | 282 | a {
|
285 | 283 | --calcite-internal-button-text-color: var(--calcite-color-text-1);
|
286 | 284 | --calcite-internal-button-background-color: var(--calcite-color-foreground-3);
|
287 |
| - &:hover, |
288 |
| - &:focus { |
| 285 | + &:hover { |
289 | 286 | --calcite-internal-button-background-color: var(--calcite-color-foreground-2);
|
290 | 287 | }
|
291 | 288 | &:active {
|
|
298 | 295 | a {
|
299 | 296 | --calcite-internal-button-text-color: var(--calcite-color-text-inverse);
|
300 | 297 | --calcite-internal-button-background-color: var(--calcite-color-inverse);
|
301 |
| - &:hover, |
302 |
| - &:focus { |
| 298 | + &:hover { |
303 | 299 | --calcite-internal-button-background-color: var(--calcite-color-inverse-hover);
|
304 | 300 | }
|
305 | 301 | &:active {
|
306 | 302 | --calcite-internal-button-background-color: var(--calcite-color-inverse-press);
|
307 | 303 | }
|
308 | 304 | }
|
309 | 305 | }
|
310 |
| -// outline |
311 |
| -:host([appearance="outline-fill"]), |
312 |
| -:host([appearance="outline"]) { |
313 |
| - a, |
314 |
| - button { |
315 |
| - box-shadow: inset 0 0 0 1px |
316 |
| - var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, transparent)); |
317 |
| - |
318 |
| - &:hover { |
319 |
| - box-shadow: inset 0 0 0 1px |
320 |
| - var( |
321 |
| - --calcite-button-shadow-color, |
322 |
| - var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)) |
323 |
| - ); |
324 |
| - } |
325 |
| - &:focus, |
326 |
| - &:active { |
327 |
| - box-shadow: inset 0 0 0 2px |
328 |
| - var( |
329 |
| - --calcite-button-shadow-color, |
330 |
| - var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)) |
331 |
| - ); |
332 |
| - } |
333 |
| - } |
334 |
| -} |
335 | 306 |
|
336 | 307 | :host([appearance="outline-fill"]) {
|
337 | 308 | button,
|
338 | 309 | a {
|
339 | 310 | --calcite-internal-button-background-color: var(--calcite-color-foreground-1);
|
340 | 311 | @apply border-solid;
|
341 | 312 | border-width: var(--calcite-button-border-size, 1px);
|
| 313 | + &:hover { |
| 314 | + --calcite-internal-button-background-color: var(--calcite-color-foreground-2); |
| 315 | + } |
| 316 | + &:active { |
| 317 | + --calcite-internal-button-background-color: var(--calcite-color-foreground-3); |
| 318 | + } |
342 | 319 | }
|
343 | 320 | }
|
344 | 321 | :host([appearance="outline-fill"][kind="brand"]) {
|
345 | 322 | button,
|
346 | 323 | a {
|
347 | 324 | --calcite-internal-button-border-color: var(--calcite-color-brand);
|
348 | 325 | --calcite-internal-button-text-color: theme("colors.brand");
|
349 |
| - --calcite-internal-button-background-color: var(--calcite-color-foreground-1); |
350 | 326 |
|
351 | 327 | &:hover {
|
352 | 328 | --calcite-internal-button-border-color: var(--calcite-color-brand-hover);
|
|
372 | 348 | button,
|
373 | 349 | a {
|
374 | 350 | --calcite-internal-button-border-color: var(--calcite-color-status-danger);
|
375 |
| - --calcite-internal-button-background-color: var(--calcite-color-foreground-1); |
376 | 351 | --calcite-internal-button-text-color: theme("colors.danger");
|
377 | 352 |
|
378 | 353 | &:hover {
|
|
400 | 375 | a {
|
401 | 376 | --calcite-internal-button-border-color: theme("borderColor.color.1");
|
402 | 377 | --calcite-internal-button-text-color: var(--calcite-color-text-1);
|
403 |
| - --calcite-internal-button-background-color: var(--calcite-color-foreground-1); |
404 | 378 |
|
405 | 379 | &:hover {
|
406 | 380 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
| 381 | + --calcite-internal-button-border-color: var(--calcite-color-border-input); |
407 | 382 | }
|
408 | 383 | &:focus {
|
409 | 384 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
410 | 385 | }
|
411 | 386 | &:active {
|
412 | 387 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
| 388 | + --calcite-internal-button-border-color: var(--calcite-color-text-3); |
| 389 | + } |
| 390 | + } |
| 391 | +} |
| 392 | +:host([appearance="solid"][kind="neutral"]) { |
| 393 | + button, |
| 394 | + a { |
| 395 | + &:hover { |
| 396 | + --calcite-internal-button-background-color: var(--calcite-color-border-3); |
| 397 | + } |
| 398 | + &:active { |
| 399 | + --calcite-internal-button-background-color: var(--calcite-color-border-2); |
413 | 400 | }
|
414 | 401 | }
|
415 | 402 | }
|
416 | 403 | :host([appearance="outline-fill"][kind="inverse"]) {
|
417 | 404 | button,
|
418 | 405 | a {
|
419 | 406 | --calcite-internal-button-text-color: var(--calcite-color-text-1);
|
420 |
| - --calcite-internal-button-background-color: var(--calcite-color-foreground-1); |
421 | 407 | --calcite-internal-button-border-color: var(--calcite-color-inverse);
|
422 | 408 |
|
423 | 409 | &:hover {
|
|
441 | 427 |
|
442 | 428 | @apply border-solid;
|
443 | 429 | border-width: var(--calcite-button-border-size, 1px);
|
| 430 | + |
| 431 | + &:hover { |
| 432 | + --calcite-internal-button-background-color: var(--calcite-color-transparent-hover); |
| 433 | + } |
| 434 | + &:active { |
| 435 | + --calcite-internal-button-background-color: var(--calcite-color-transparent-press); |
| 436 | + } |
444 | 437 | }
|
445 | 438 | }
|
446 | 439 | :host([appearance="outline"][kind="brand"]) {
|
447 | 440 | button,
|
448 | 441 | a {
|
449 | 442 | --calcite-internal-button-border-color: var(--calcite-color-brand);
|
450 | 443 | --calcite-internal-button-text-color: theme("colors.brand");
|
451 |
| - --calcite-internal-button-background-color: var(--calcite-color-transparent); |
452 | 444 |
|
453 | 445 | &:hover {
|
454 | 446 | --calcite-internal-button-border-color: var(--calcite-color-brand-hover);
|
|
475 | 467 | a {
|
476 | 468 | --calcite-internal-button-border-color: var(--calcite-color-status-danger);
|
477 | 469 | --calcite-internal-button-text-color: theme("colors.danger");
|
478 |
| - --calcite-internal-button-background-color: var(--calcite-color-transparent); |
479 | 470 |
|
480 | 471 | &:hover {
|
481 | 472 | --calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);
|
|
501 | 492 | button,
|
502 | 493 | a {
|
503 | 494 | --calcite-internal-button-text-color: var(--calcite-color-text-1);
|
504 |
| - --calcite-internal-button-background-color: var(--calcite-color-transparent); |
505 | 495 | --calcite-internal-button-border-color: theme("borderColor.color.1");
|
506 | 496 |
|
507 | 497 | &:hover {
|
508 | 498 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
| 499 | + --calcite-internal-button-border-color: var(--calcite-color-border-input); |
509 | 500 | }
|
510 | 501 | &:focus {
|
511 | 502 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
512 | 503 | }
|
513 | 504 | &:active {
|
514 | 505 | --calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
|
| 506 | + --calcite-internal-button-border-color: var(--calcite-color-text-3); |
515 | 507 | }
|
516 | 508 | }
|
517 | 509 | }
|
518 | 510 | :host([appearance="outline"][kind="inverse"]) {
|
519 | 511 | button,
|
520 | 512 | a {
|
521 | 513 | --calcite-internal-button-text-color: var(--calcite-color-text-1);
|
522 |
| - --calcite-internal-button-background-color: var(--calcite-color-transparent); |
523 | 514 | --calcite-internal-button-border-color: var(--calcite-color-inverse);
|
524 | 515 | &:hover {
|
525 | 516 | --calcite-internal-button-border-color: var(--calcite-color-inverse-hover);
|
|
553 | 544 | button,
|
554 | 545 | a {
|
555 | 546 | background-color: var(--calcite-color-transparent);
|
556 |
| - &:hover, |
557 |
| - &:focus { |
| 547 | + &:hover { |
558 | 548 | background-color: var(--calcite-color-transparent-hover);
|
559 | 549 | }
|
560 | 550 | &:active {
|
|
0 commit comments