Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

404 lignes
11 KiB

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