| 1 | .app { |
| 2 | display: flex; |
| 3 | flex-direction: column; |
| 4 | height: 100vh; |
| 5 | |
| 6 | & > nav { |
| 7 | padding: 1rem; |
| 8 | display: flex; |
| 9 | justify-content: space-between; |
| 10 | align-items: center; |
| 11 | } |
| 12 | |
| 13 | & > main { |
| 14 | flex: 1; |
| 15 | overflow: auto; |
| 16 | width: 100%; |
| 17 | margin: 0 auto; |
| 18 | display: flex; |
| 19 | flex-direction: column; |
| 20 | |
| 21 | & > article { |
| 22 | padding: 1rem; |
| 23 | } |
| 24 | |
| 25 | & > header { |
| 26 | padding: 1rem; |
| 27 | } |
| 28 | |
| 29 | & > * { |
| 30 | max-width: 80ch; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | .post-box textarea { |
| 36 | font-size: 16px; |
| 37 | } |
| 38 | |
| 39 | .empty-state { |
| 40 | padding: 2rem 1rem; |
| 41 | color: var(--gray); |
| 42 | text-align: center; |
| 43 | } |
| 44 | |
| 45 | /* Medium screens and larger */ |
| 46 | @media (min-width: 768px) { |
| 47 | .app { |
| 48 | flex-direction: row; |
| 49 | |
| 50 | & > nav { |
| 51 | width: 200px; |
| 52 | height: 100%; |
| 53 | border-bottom: none; |
| 54 | flex-direction: column; |
| 55 | align-items: flex-start; |
| 56 | flex: 1; |
| 57 | max-width: 400px; |
| 58 | } |
| 59 | |
| 60 | & > main { |
| 61 | margin: 0 auto; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |