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

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