選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

68 行
1.7 KiB

  1. @use 'variables' as *;
  2. // ─── Base Button ─────────────────────────────────────────────────────────────
  3. .btn {
  4. display: inline-flex;
  5. align-items: center;
  6. justify-content: center;
  7. gap: $space-2;
  8. padding: $space-2 $space-5;
  9. font-family: $font-family-base;
  10. font-size: $font-size-base;
  11. font-weight: $font-weight-medium;
  12. line-height: 1.4;
  13. border: none;
  14. border-radius: $radius-pill;
  15. cursor: pointer;
  16. text-decoration: none;
  17. transition:
  18. background-color $transition-fast,
  19. box-shadow $transition-fast,
  20. transform $transition-fast;
  21. white-space: nowrap;
  22. &:active {
  23. transform: translateY(1px);
  24. }
  25. &:focus-visible {
  26. outline: 2px solid $color-primary;
  27. outline-offset: 3px;
  28. }
  29. }
  30. // ─── Variants ────────────────────────────────────────────────────────────────
  31. .btn-primary {
  32. background: linear-gradient(135deg, $color-accent-light, $color-accent);
  33. color: $color-white;
  34. box-shadow: $shadow-button;
  35. &:hover {
  36. background: linear-gradient(135deg, $color-accent, $color-accent-dark);
  37. box-shadow: 0 3px 12px rgba($color-accent, 0.45);
  38. }
  39. }
  40. .btn-secondary {
  41. background: transparent;
  42. color: $color-text-muted;
  43. padding-left: $space-3;
  44. padding-right: $space-3;
  45. &:hover {
  46. color: $color-text-dark;
  47. text-decoration: underline;
  48. }
  49. }
  50. .btn-ghost {
  51. background: rgba($color-white, 0.15);
  52. color: $color-white;
  53. border-radius: $radius-sm;
  54. padding: $space-1 $space-3;
  55. &:hover {
  56. background: rgba($color-white, 0.25);
  57. }
  58. }