|
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:center;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 | + -webkit-appearance: none; |
| 156 | + -moz-appearance: none; |
| 157 | + min-height: 3rem; /* Reduced from 3.75rem (20% reduction) */ |
156 | 158 | max-height: 8.737499999999999rem;
|
157 | 159 | padding-left: 1rem;
|
158 |
| - padding-right: 2.75rem; |
159 |
| - padding-top: 0.94975rem; |
160 |
| - padding-bottom: 0.94975rem; |
| 160 | + padding-right: 3rem; /* Increased from 2.75rem to give arrow more space */ |
| 161 | + padding-top: 0.75rem; /* Reduced from 0.94975rem */ |
| 162 | + padding-bottom: 0.75rem; /* Reduced from 0.94975rem */ |
| 163 | + appearance: none; /* Remove default arrow */ |
| 164 | + 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"); |
| 165 | + background-repeat: no-repeat; |
| 166 | + background-position: right 0.75rem center; /* Position arrow with proper spacing */ |
| 167 | + background-size: 1rem; |
| 168 | + } |
| 169 | + |
| 170 | + /* Hide IE/Edge dropdown arrow */ |
| 171 | + select::-ms-expand { |
| 172 | + display: none; |
161 | 173 | }
|
162 | 174 |
|
163 | 175 | input:not([type="checkbox"]):hover, select:hover {
|
|
227 | 239 | border-color: transparent;
|
228 | 240 | }
|
229 | 241 |
|
| 242 | + /* Dark mode dropdown arrow */ |
| 243 | + select { |
| 244 | + 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"); |
| 245 | + background-repeat: no-repeat; |
| 246 | + background-position: right 0.75rem center; |
| 247 | + background-size: 1rem; |
| 248 | + padding-left: 1rem; /* Ensure left padding is maintained in dark mode */ |
| 249 | + padding-right: 3rem; /* Ensure right padding is maintained in dark mode */ |
| 250 | + } |
| 251 | + |
230 | 252 | input:not([type="checkbox"]):hover, select:hover {
|
231 | 253 | border-color: #26314c;
|
232 | 254 | }
|
|
307 | 329 |
|
308 | 330 | /* --- help button alignment --- */
|
309 | 331 | .spacer { flex: 1; }
|
310 |
| -#btn-help { margin-left: auto; } |
| 332 | +#btn-help { margin-left: auto; margin-top: 0; } |
311 | 333 |
|
312 | 334 | .as-button {
|
313 |
| - display: inline-block; |
| 335 | + display: inline-flex; |
| 336 | + align-items: center; |
314 | 337 | padding: .5rem .75rem;
|
315 | 338 | border: 1px solid #e2e8f0;
|
316 | 339 | border-radius: .5rem;
|
|
0 commit comments