|
4 | 4 | /* Put these with your other :root vars */ |
5 | 5 | :root { |
6 | 6 | /* header fills (light) */ |
7 | | - --tbl-white: #ffffff; |
8 | | - --tbl-blue: #8eb3f0; |
9 | | - --tbl-green: #bbe5d1; |
10 | | - --tbl-red: #f8caca; |
| 7 | + --tbl-white: #f4f6f8; |
| 8 | + --tbl-blue: #8bd0f9; |
| 9 | + --tbl-green: #b0f1a9; |
| 10 | + --tbl-red: #ff8595; |
11 | 11 | } |
12 | 12 |
|
13 | 13 | @media (prefers-color-scheme: dark) { |
14 | 14 | :root { |
15 | 15 | /* darker tints that read well with white text */ |
16 | 16 | --tbl-white: #4a5a7b; /* slate-ish */ |
17 | | - --tbl-blue: #0c2658; /* deep blue */ |
18 | | - --tbl-green: #07402d; /* deep green */ |
19 | | - --tbl-red: #5d1d1d; /* deep red */ |
| 17 | + --tbl-blue: #5252b7; /* iris */ |
| 18 | + --tbl-green: #419f65; /* shamrock green */ |
| 19 | + --tbl-red: #df5353; /* deep red */ |
20 | 20 | } |
21 | 21 | } |
22 | 22 |
|
|
71 | 71 | } |
72 | 72 |
|
73 | 73 | header{ |
74 | | - display:flex;align-items:baseline;gap:1rem;padding:.75rem 1rem; |
| 74 | + display:flex;align-items:baseline;gap:1rem;padding:.5rem 1rem; /* Reduced from .75rem to .5rem */ |
75 | 75 | border-bottom:1px solid var(--stroke); |
76 | 76 | background:var(--box) |
77 | 77 | } |
78 | 78 |
|
79 | 79 | /* Light theme navigation bar background */ |
80 | 80 | @media (prefers-color-scheme: light) { |
81 | 81 | header { |
82 | | - background: rgb(238, 239, 246); |
| 82 | + background: #ffffff; /* Changed to white */ |
83 | 83 | } |
84 | 84 | } |
85 | 85 | header h1{font-size:1.1rem;margin:0} |
86 | 86 | #status{font-size:.9rem;color:var(--muted)} |
87 | 87 |
|
88 | | - main.layout{display:grid;grid-template-columns:300px 1fr;height:calc(100% - 50px)} |
| 88 | + main.layout{display:grid;grid-template-columns:300px 1fr;height:calc(100% - 42px)} /* Adjusted for smaller header */ |
89 | 89 | #diagram-wrap{width:100%;height:100%} |
90 | 90 |
|
91 | 91 | #diagram{ background: var(--canvas); } |
|
142 | 142 |
|
143 | 143 | /* Input field specific styles (exclude checkboxes) */ |
144 | 144 | input:not([type="checkbox"]) { |
145 | | - min-height: 3.75rem; |
| 145 | + min-height: 3rem; /* Reduced from 3.75rem (20% reduction) */ |
146 | 146 | max-height: 8.737499999999999rem; |
147 | 147 | padding-left: 1rem; |
148 | 148 | padding-right: 2.75rem; |
149 | | - padding-top: 0.94975rem; |
150 | | - padding-bottom: 0.94975rem; |
| 149 | + padding-top: 0.75rem; /* Reduced from 0.94975rem */ |
| 150 | + padding-bottom: 0.75rem; /* Reduced from 0.94975rem */ |
151 | 151 | } |
152 | 152 |
|
153 | 153 | /* Select field specific styles to match inputs */ |
154 | 154 | select { |
155 | | - min-height: 3.75rem; |
| 155 | + min-height: 3rem; /* Reduced from 3.75rem (20% reduction) */ |
156 | 156 | max-height: 8.737499999999999rem; |
157 | 157 | padding-left: 1rem; |
158 | | - padding-right: 2.75rem; |
159 | | - padding-top: 0.94975rem; |
160 | | - padding-bottom: 0.94975rem; |
| 158 | + padding-right: 3rem; /* Increased from 2.75rem to give arrow more space */ |
| 159 | + padding-top: 0.75rem; /* Reduced from 0.94975rem */ |
| 160 | + padding-bottom: 0.75rem; /* Reduced from 0.94975rem */ |
| 161 | + appearance: none; /* Remove default arrow */ |
| 162 | + background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e"); |
| 163 | + background-repeat: no-repeat; |
| 164 | + background-position: right 0.75rem center; /* Position arrow with proper spacing */ |
| 165 | + background-size: 1rem; |
161 | 166 | } |
162 | 167 |
|
163 | 168 | input:not([type="checkbox"]):hover, select:hover { |
|
227 | 232 | border-color: transparent; |
228 | 233 | } |
229 | 234 |
|
| 235 | + /* Dark mode dropdown arrow */ |
| 236 | + select { |
| 237 | + background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c1c7d7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e"); |
| 238 | + background-repeat: no-repeat; |
| 239 | + background-position: right 0.75rem center; |
| 240 | + background-size: 1rem; |
| 241 | + padding-left: 1rem; /* Ensure left padding is maintained in dark mode */ |
| 242 | + padding-right: 3rem; /* Ensure right padding is maintained in dark mode */ |
| 243 | + } |
| 244 | + |
230 | 245 | input:not([type="checkbox"]):hover, select:hover { |
231 | 246 | border-color: #26314c; |
232 | 247 | } |
|
0 commit comments