| 1 | /* App-local styles for habbits. The shared design system (palette, typography, |
| 2 | forms, admin lists) comes from /assets/darkmatter.css. Only small layout |
| 3 | extensions live here. */ |
| 4 | |
| 5 | .section { |
| 6 | width: 100%; |
| 7 | margin-bottom: 1.5rem; |
| 8 | } |
| 9 | |
| 10 | .section h2 { |
| 11 | font-size: 16px; |
| 12 | margin: 0 0 0.5rem; |
| 13 | } |
| 14 | |
| 15 | /* Inline record edit row: value + datetime + save on one line, aligned. */ |
| 16 | .record-edit { |
| 17 | align-items: flex-end; |
| 18 | flex: 1; |
| 19 | gap: 0.5rem; |
| 20 | } |
| 21 | |
| 22 | .record-edit .form-field { |
| 23 | margin: 0; |
| 24 | } |
| 25 | |
| 26 | /* Each habit's edit form on the settings page, divided by a hairline. */ |
| 27 | .settings-habit { |
| 28 | padding: 1rem 0; |
| 29 | border-bottom: 1px solid #333; |
| 30 | } |
| 31 | |
| 32 | .settings-habit .inline-form { |
| 33 | margin-top: 0.5rem; |
| 34 | } |
| 35 | |
| 36 | /* Day / habit groupings in record lists. */ |
| 37 | .day-group { |
| 38 | margin-bottom: 1rem; |
| 39 | } |
| 40 | |
| 41 | .day-heading { |
| 42 | font-size: 12px; |
| 43 | text-transform: uppercase; |
| 44 | opacity: 0.5; |
| 45 | margin: 0 0 0.25rem; |
| 46 | border-bottom: 1px solid #333; |
| 47 | padding-bottom: 0.25rem; |
| 48 | } |
| 49 | |
| 50 | .habit-group { |
| 51 | margin: 0.5rem 0 0.75rem; |
| 52 | } |
| 53 | |
| 54 | .habit-group-name { |
| 55 | display: block; |
| 56 | font-size: 12px; |
| 57 | opacity: 0.7; |
| 58 | margin-bottom: 0.15rem; |
| 59 | } |