Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

405 рядки
11 KiB

  1. @use '../atoms/variables' as *;
  2. @use '../atoms/mixins' as *;
  3. // ─── Minimal Theme ─────────────────────────────────────────────────────────────
  4. // Gilt nur wenn body[data-theme="minimal"] gesetzt ist.
  5. // Standard-Theme bleibt vollständig unverändert.
  6. body[data-theme="minimal"] {
  7. background: $color-white;
  8. // ── Normale Top-Nav ausblenden ──────────────────────────────────────────────
  9. .main-nav { display: none; }
  10. // ── Hamburger-Nav einblenden ────────────────────────────────────────────────
  11. .hamburger-nav {
  12. display: flex;
  13. justify-content: flex-end;
  14. padding: $space-4 $space-4 $space-5;
  15. }
  16. // ── Page-Background weiß ───────────────────────────────────────────────────
  17. .tt-page { background: $color-white; }
  18. // ── TT-Header: kein Gradient, kein Schatten, cleaner Rahmen ───────────────
  19. .tt-header {
  20. background: $color-white;
  21. box-shadow: none;
  22. border-bottom: 1px solid $color-border;
  23. padding: $space-3 $space-5;
  24. min-height: auto;
  25. flex-direction: column;
  26. align-items: stretch;
  27. gap: 0;
  28. }
  29. // Account/Report-Header: kein Schatten
  30. .account-header,
  31. .report-header {
  32. box-shadow: none;
  33. }
  34. // Karten ohne Schatten
  35. .account-card,
  36. .crud-list,
  37. .crud-create,
  38. .entry-form {
  39. box-shadow: none;
  40. }
  41. // Standard-Meta und Collapsible umschalten
  42. .tt-header__meta { display: none; }
  43. .tt-header__minimal-bar { display: flex; }
  44. // Collapsible: standardmäßig versteckt (JS steuert aria-expanded)
  45. .tt-header__collapsible {
  46. overflow: hidden;
  47. transition: max-height $transition-slow;
  48. max-height: 0;
  49. &.is-open { max-height: 120px; }
  50. }
  51. // Week-Nav im Minimal-Stil (dunkler Hintergrund funktioniert nicht auf weiß)
  52. .week-nav {
  53. background: var(--color-bg);
  54. border-radius: $radius-md;
  55. margin-top: $space-2;
  56. }
  57. .week-nav__arrow { color: $color-text-dark; &:hover { background: $color-border; } }
  58. .week-nav__day-name { color: $color-text-base; }
  59. .week-nav__day-date { color: $color-text-muted; }
  60. .week-nav__day--active { background: $color-text-dark; .week-nav__day-name, .week-nav__day-date { color: $color-white; } }
  61. .week-nav__day:hover:not(.week-nav__day--active) { background: rgba($color-text-dark, 0.07); }
  62. .week-nav__cal { background: rgba($color-text-dark, 0.08); color: $color-text-dark; &:hover { background: rgba($color-text-dark, 0.15); } }
  63. // ── Greeting versteckt ─────────────────────────────────────────────────────
  64. .greeting { display: none; }
  65. // ── Content zentriert, angenehme Breite ───────────────────────────────────
  66. .tt-content {
  67. max-width: 660px;
  68. padding: $space-6 $space-4;
  69. gap: $space-6;
  70. }
  71. // ── Entry Form: cleaner, größere Inputs ────────────────────────────────────
  72. .entry-form {
  73. background: $color-white;
  74. border: none;
  75. border-radius: 0;
  76. padding: $space-4 0;
  77. }
  78. .entry-form__grid {
  79. grid-template-columns: 100px 1fr;
  80. gap: $space-5 $space-4;
  81. }
  82. .input,
  83. .select,
  84. .textarea {
  85. font-size: $font-size-md;
  86. }
  87. // Höhere Inputs (außer Textarea)
  88. .input,
  89. .select {
  90. height: 44px;
  91. padding: 0 $space-3;
  92. }
  93. // Borderless inputs inside the entry form — Markenfarbe statt hardcoded
  94. .entry-form .input,
  95. .entry-form .select {
  96. border: none;
  97. box-shadow: none;
  98. background-color: var(--color-bg);
  99. &:focus { box-shadow: none; }
  100. }
  101. // Bemerkung-Zeile: standardmäßig versteckt
  102. .entry-form__label--note,
  103. .entry-form__field--note {
  104. display: none;
  105. &.is-visible { display: flex; }
  106. }
  107. .entry-form__label--note.is-visible { display: block; }
  108. // Bemerkung-Toggle-Row: standardmäßig sichtbar (im Standard ausgeblendet)
  109. .entry-form__note-toggle-row { display: flex; }
  110. // ── Primärbutton in Minimal: Markenfarbe statt Orange ─────────────────────
  111. .btn-primary {
  112. background: var(--color-primary);
  113. color: var(--header-text);
  114. box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.35);
  115. &:hover {
  116. background: var(--color-primary-dark);
  117. box-shadow: 0 3px 12px rgba(var(--color-primary-rgb), 0.45);
  118. }
  119. }
  120. // ── Entry-List ─────────────────────────────────────────────────────────────
  121. .entry-list__summary { display: block; }
  122. // Entry List standardmäßig versteckt (JS steuert)
  123. .entry-list.is-collapsed {
  124. display: none;
  125. }
  126. .entry-list {
  127. background: $color-white;
  128. box-shadow: none;
  129. border: 1px solid $color-border;
  130. border-radius: $radius-md;
  131. }
  132. // ── Unterseiten (Report, Clients, etc.): nur Navigation ───────────────────
  133. .report-page,
  134. .crud-page,
  135. .account-page,
  136. .team-page {
  137. background: $color-white;
  138. }
  139. }
  140. // ─── Hamburger-Nav (immer im DOM, per CSS im Standard versteckt) ──────────────
  141. .hamburger-nav {
  142. display: none; // Standard: versteckt
  143. position: relative;
  144. }
  145. .hamburger-nav__toggle {
  146. width: 52px;
  147. height: 52px;
  148. border: none;
  149. border-radius: $radius-lg;
  150. background: $color-white;
  151. cursor: pointer;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. transition: background $transition-fast;
  156. &:hover { background: var(--color-bg); }
  157. }
  158. // Hamburger-Icon aus drei Balken
  159. .hamburger-nav__icon,
  160. .hamburger-nav__icon::before,
  161. .hamburger-nav__icon::after {
  162. display: block;
  163. width: 22px;
  164. height: 2px;
  165. background: $color-text-dark;
  166. border-radius: 2px;
  167. transition: transform $transition-base, opacity $transition-fast;
  168. }
  169. .hamburger-nav__icon {
  170. position: relative;
  171. &::before,
  172. &::after {
  173. content: '';
  174. position: absolute;
  175. left: 0;
  176. }
  177. &::before { top: -6px; }
  178. &::after { top: 6px; }
  179. }
  180. // X-Icon wenn geöffnet
  181. .hamburger-nav__toggle[aria-expanded="true"] {
  182. .hamburger-nav__icon {
  183. background: transparent;
  184. &::before { transform: translateY(6px) rotate(45deg); }
  185. &::after { transform: translateY(-6px) rotate(-45deg); }
  186. }
  187. }
  188. .hamburger-nav__panel {
  189. position: absolute;
  190. top: calc(100% + #{$space-2});
  191. right: 0;
  192. min-width: 200px;
  193. background: $color-white;
  194. border: 1px solid $color-border;
  195. border-radius: $radius-md;
  196. box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  197. padding: $space-2 0;
  198. z-index: 301;
  199. }
  200. .hamburger-nav__item {
  201. display: block;
  202. padding: $space-3 $space-5;
  203. font-size: $font-size-base;
  204. font-weight: $font-weight-medium;
  205. color: $color-text-base;
  206. text-decoration: none;
  207. transition: background $transition-fast, color $transition-fast;
  208. &:hover { background: var(--color-bg); color: $color-text-dark; }
  209. &--active {
  210. color: var(--color-primary);
  211. font-weight: $font-weight-bold;
  212. }
  213. }
  214. .hamburger-nav__divider {
  215. height: 1px;
  216. background: $color-border;
  217. margin: $space-2 0;
  218. }
  219. // ─── TT-Header Minimal-Bar (immer im DOM, im Standard ausgeblendet) ───────────
  220. .tt-header__minimal-bar {
  221. display: none; // Standard: versteckt, Minimal: sichtbar (override oben)
  222. align-items: center;
  223. justify-content: space-between;
  224. padding: $space-1 0;
  225. }
  226. .tt-header__minimal-date {
  227. font-size: $font-size-md;
  228. font-weight: $font-weight-bold;
  229. color: $color-text-dark;
  230. }
  231. .tt-header__week-toggle {
  232. background: none;
  233. border: 1px solid $color-border;
  234. border-radius: $radius-pill;
  235. padding: $space-1 $space-3;
  236. font-size: $font-size-sm;
  237. font-weight: $font-weight-medium;
  238. color: $color-text-muted;
  239. cursor: pointer;
  240. transition: border-color $transition-fast, color $transition-fast;
  241. &:hover { border-color: $color-text-muted; color: $color-text-dark; }
  242. &[aria-expanded="true"] { color: $color-text-dark; border-color: $color-text-dark; }
  243. }
  244. // ─── Entry-List-Summary (immer im DOM, im Standard ausgeblendet) ──────────────
  245. .entry-list__summary {
  246. display: none; // Standard: versteckt
  247. }
  248. .entry-list__summary-btn {
  249. width: 100%;
  250. display: flex;
  251. align-items: center;
  252. gap: $space-2;
  253. padding: $space-3 $space-4;
  254. background: $color-white;
  255. border: 1px solid $color-border;
  256. border-radius: $radius-md;
  257. font-size: $font-size-base;
  258. font-weight: $font-weight-medium;
  259. color: $color-text-base;
  260. cursor: pointer;
  261. transition: background $transition-fast;
  262. &:hover { background: var(--color-bg); }
  263. }
  264. .entry-list__summary-count { font-weight: $font-weight-bold; color: $color-text-dark; }
  265. .entry-list__summary-sep { color: $color-text-light; }
  266. .entry-list__summary-total { color: $color-text-muted; }
  267. .entry-list__summary-arrow {
  268. margin-left: auto;
  269. color: $color-text-muted;
  270. font-size: $font-size-xs;
  271. transition: transform $transition-fast;
  272. .entry-list__summary-btn[aria-expanded="true"] & {
  273. transform: rotate(180deg);
  274. }
  275. }
  276. // ─── Note-Toggle-Button (immer im DOM, im Standard ausgeblendet) ──────────────
  277. .entry-form__note-toggle-row {
  278. display: none; // Standard: versteckt, Minimal: flex (override oben)
  279. grid-column: 2;
  280. }
  281. .entry-form__note-toggle {
  282. background: none;
  283. border: none;
  284. padding: 0;
  285. font-size: $font-size-sm;
  286. color: $color-text-muted;
  287. cursor: pointer;
  288. font-weight: $font-weight-medium;
  289. transition: color $transition-fast;
  290. &:hover { color: $color-text-dark; }
  291. &.is-open { color: $color-text-muted; }
  292. }
  293. // ─── Theme-Picker auf der Account-Seite ──────────────────────────────────────
  294. .account-form__divider-row {
  295. grid-column: 1 / -1;
  296. padding: $space-2 0 $space-4;
  297. }
  298. .account-form__divider {
  299. border: none;
  300. border-top: 1px solid $color-border;
  301. margin: 0;
  302. }
  303. .theme-picker {
  304. display: flex;
  305. gap: $space-3;
  306. flex-wrap: wrap;
  307. }
  308. .theme-option {
  309. display: flex;
  310. flex-direction: column;
  311. gap: $space-1;
  312. padding: $space-4;
  313. border: 2px solid $color-border;
  314. border-radius: $radius-md;
  315. cursor: pointer;
  316. min-width: 160px;
  317. transition: border-color $transition-fast, background $transition-fast;
  318. user-select: none;
  319. input[type="radio"] { display: none; }
  320. &:hover { border-color: var(--color-primary-light); background: rgba($color-primary, 0.02); }
  321. &--active {
  322. border-color: var(--color-primary);
  323. background: rgba($color-primary, 0.04);
  324. }
  325. }
  326. .theme-option__label {
  327. font-size: $font-size-base;
  328. font-weight: $font-weight-bold;
  329. color: $color-text-dark;
  330. }
  331. .theme-option__desc {
  332. font-size: $font-size-sm;
  333. color: $color-text-muted;
  334. line-height: 1.4;
  335. }