You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

164 rivejä
3.8 KiB

  1. @use '../atoms/variables' as *;
  2. // ─── Ausstehend-Badge ──────────────────────────────────────────────────────────
  3. .team-badge {
  4. display: inline-block;
  5. padding: 1px 8px;
  6. border-radius: $radius-pill;
  7. font-size: $font-size-xs;
  8. font-weight: $font-weight-medium;
  9. margin-left: $space-2;
  10. &--pending {
  11. background: rgba($color-warning-light, 0.12);
  12. color: $color-warning;
  13. }
  14. }
  15. // ─── Modal ─────────────────────────────────────────────────────────────────────
  16. .modal-overlay {
  17. position: fixed;
  18. inset: 0;
  19. background: $color-overlay;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. z-index: 200;
  24. &[hidden] { display: none !important; }
  25. }
  26. .modal-card {
  27. background: $color-card-white;
  28. border-radius: $radius-lg;
  29. box-shadow: $shadow-card;
  30. width: 100%;
  31. max-width: 460px;
  32. padding: 0;
  33. overflow: hidden;
  34. }
  35. .modal-card__header {
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. padding: $space-5 $space-6;
  40. border-bottom: 1px solid rgba($color-border, 0.6);
  41. }
  42. .modal-card__title {
  43. font-size: $font-size-lg;
  44. font-weight: $font-weight-bold;
  45. color: $color-text-dark;
  46. }
  47. .modal-card__close {
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. width: 28px;
  52. height: 28px;
  53. background: transparent;
  54. border: none;
  55. cursor: pointer;
  56. color: $color-text-muted;
  57. border-radius: 50%;
  58. transition: background $transition-fast;
  59. svg { width: 16px; height: 16px; }
  60. &:hover { background: rgba($color-border, 0.5); }
  61. }
  62. .modal-card__body {
  63. padding: $space-5 $space-6;
  64. display: flex;
  65. flex-direction: column;
  66. gap: $space-4;
  67. }
  68. .modal-card__footer {
  69. display: flex;
  70. justify-content: flex-end;
  71. gap: $space-3;
  72. padding: $space-4 $space-6;
  73. border-top: 1px solid rgba($color-border, 0.6);
  74. }
  75. // ─── Formularfelder im Modal ───────────────────────────────────────────────────
  76. .form-row {
  77. display: grid;
  78. grid-template-columns: 1fr 1fr;
  79. gap: $space-4;
  80. }
  81. .form-field {
  82. display: flex;
  83. flex-direction: column;
  84. gap: $space-1;
  85. }
  86. .form-field__label {
  87. font-size: $font-size-sm;
  88. font-weight: $font-weight-medium;
  89. color: $color-text-dark;
  90. }
  91. .form-errors {
  92. margin: 0 $space-6;
  93. padding: $space-3 $space-4;
  94. background: rgba($color-error, 0.08);
  95. border-radius: $radius-md;
  96. border: 1px solid rgba($color-error, 0.2);
  97. color: $color-error;
  98. font-size: $font-size-sm;
  99. &[hidden] { display: none !important; }
  100. ul { margin: 0; padding-left: 1.2em; }
  101. }
  102. // ─── Empty State ───────────────────────────────────────────────────────────────
  103. .crud-list__empty {
  104. padding: $space-6;
  105. text-align: center;
  106. color: $color-text-muted;
  107. font-size: $font-size-sm;
  108. }
  109. // ─── Rollen-Selector (Inline-Edit + Modal) ────────────────────────────────────
  110. .team-role-selector {
  111. display: flex;
  112. flex-direction: row;
  113. gap: $space-5;
  114. flex-wrap: wrap;
  115. &--disabled {
  116. opacity: 0.45;
  117. pointer-events: none;
  118. }
  119. }
  120. .team-role-option {
  121. display: flex;
  122. align-items: center;
  123. gap: $space-2;
  124. cursor: pointer;
  125. input[type='radio'] {
  126. accent-color: $color-primary;
  127. width: 15px;
  128. height: 15px;
  129. flex-shrink: 0;
  130. cursor: pointer;
  131. }
  132. &__label {
  133. font-size: $font-size-sm;
  134. color: $color-text-dark;
  135. }
  136. }
  137. .team-role-hint {
  138. margin-top: $space-1;
  139. font-size: $font-size-xs;
  140. color: $color-text-muted;
  141. }