Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

90 righe
3.0 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. }
  30. // ─── Input Sizes ─────────────────────────────────────────────────────────────
  31. .input--sm {
  32. width: 80px;
  33. text-align: center;
  34. font-weight: $font-weight-medium;
  35. letter-spacing: 0.02em;
  36. }
  37. // ─── Select (with arrow) ─────────────────────────────────────────────────────
  38. .select {
  39. 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");
  40. background-repeat: no-repeat;
  41. background-position: right $space-3 center;
  42. padding-right: $space-8;
  43. cursor: pointer;
  44. &:hover {
  45. border-color: var(--color-primary-light);
  46. }
  47. }
  48. // ─── Select Label Tag (wie "Dogument", "Verrechenbar") ───────────────────────
  49. .select-hint {
  50. font-size: $font-size-xs;
  51. color: $color-text-muted;
  52. font-style: italic;
  53. }
  54. // ─── Textarea ────────────────────────────────────────────────────────────────
  55. .textarea {
  56. resize: vertical;
  57. min-height: 72px;
  58. }
  59. // ─── Help Icon ───────────────────────────────────────────────────────────────
  60. .input-help {
  61. display: inline-flex;
  62. align-items: center;
  63. justify-content: center;
  64. width: 20px;
  65. height: 20px;
  66. border-radius: 50%;
  67. border: 1px solid $color-border;
  68. background: $color-white;
  69. color: $color-text-muted;
  70. font-size: $font-size-xs;
  71. font-weight: $font-weight-bold;
  72. cursor: help;
  73. flex-shrink: 0;
  74. transition: border-color $transition-fast, color $transition-fast;
  75. &:hover {
  76. border-color: var(--color-primary);
  77. color: var(--color-primary);
  78. }
  79. }