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

96 行
3.1 KiB

  1. @use 'variables' as *;
  2. // ─── Base Input ──────────────────────────────────────────────────────────────
  3. .input,
  4. .select,
  5. .textarea {
  6. display: block;
  7. width: 100%;
  8. padding: $space-2 $space-3;
  9. font-family: $font-family-base;
  10. font-size: $font-size-base;
  11. color: $color-text-dark;
  12. background-color: $color-input-bg;
  13. border: 1px solid $color-input-border;
  14. border-radius: $radius-sm;
  15. box-shadow: $shadow-input;
  16. transition:
  17. border-color $transition-fast,
  18. box-shadow $transition-fast;
  19. appearance: none;
  20. -webkit-appearance: none;
  21. &::placeholder {
  22. color: $color-text-light;
  23. }
  24. &:focus {
  25. outline: none;
  26. border-color: var(--color-primary);
  27. box-shadow: $shadow-focus;
  28. }
  29. &:disabled {
  30. background-color: $color-card;
  31. color: $color-text-muted;
  32. cursor: not-allowed;
  33. }
  34. }
  35. // ─── Input Sizes ─────────────────────────────────────────────────────────────
  36. .input--sm {
  37. width: 80px;
  38. text-align: center;
  39. font-weight: $font-weight-medium;
  40. letter-spacing: 0.02em;
  41. }
  42. // ─── Select (with arrow) ─────────────────────────────────────────────────────
  43. .select {
  44. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8a9a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  45. background-repeat: no-repeat;
  46. background-position: right $space-3 center;
  47. padding-right: $space-8;
  48. cursor: pointer;
  49. &:hover {
  50. border-color: var(--color-primary-light);
  51. }
  52. }
  53. // ─── Select Label Tag (z.B. "Verrechenbar") ─────────────────────────────────
  54. .select-hint {
  55. font-size: $font-size-xs;
  56. color: $color-text-muted;
  57. font-style: italic;
  58. }
  59. // ─── Textarea ────────────────────────────────────────────────────────────────
  60. .textarea {
  61. resize: vertical;
  62. min-height: 72px;
  63. }
  64. // ─── Help Icon ───────────────────────────────────────────────────────────────
  65. .input-help {
  66. display: inline-flex;
  67. align-items: center;
  68. justify-content: center;
  69. width: 20px;
  70. height: 20px;
  71. border-radius: 50%;
  72. border: 1px solid $color-border;
  73. background: $color-white;
  74. color: $color-text-muted;
  75. font-size: $font-size-xs;
  76. font-weight: $font-weight-bold;
  77. cursor: help;
  78. flex-shrink: 0;
  79. transition: border-color $transition-fast, color $transition-fast;
  80. &:hover {
  81. border-color: var(--color-primary);
  82. color: var(--color-primary);
  83. }
  84. }