Skip to content

Commit 79c1646

Browse files
author
danil-nizamov
committed
improved colors and styles
1 parent 367e48c commit 79c1646

File tree

3 files changed

+41
-24
lines changed

3 files changed

+41
-24
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66
import os
77

8-
PORT = 3000
8+
PORT = 8000
99
ALLOWED_FILES = {"test.json", "solution.json"}
1010

1111
class Handler(SimpleHTTPRequestHandler):

solution.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@
4141
],
4242
"indexes": [],
4343
"position": {
44-
"x": 603,
45-
"y": 125
46-
}
44+
"x": 377,
45+
"y": -83
46+
},
47+
"color": "white"
4748
},
4849
{
4950
"id": "tbl_orders",
@@ -77,9 +78,10 @@
7778
"uniqueConstraints": [],
7879
"indexes": [],
7980
"position": {
80-
"x": 234,
81-
"y": 109
82-
}
81+
"x": 92,
82+
"y": -65
83+
},
84+
"color": "red"
8385
}
8486
],
8587
"foreignKeys": [

style.css

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
/* Put these with your other :root vars */
55
:root {
66
/* 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;
1111
}
1212

1313
@media (prefers-color-scheme: dark) {
1414
:root {
1515
/* darker tints that read well with white text */
1616
--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 */
2020
}
2121
}
2222

@@ -71,21 +71,21 @@
7171
}
7272

7373
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 */
7575
border-bottom:1px solid var(--stroke);
7676
background:var(--box)
7777
}
7878

7979
/* Light theme navigation bar background */
8080
@media (prefers-color-scheme: light) {
8181
header {
82-
background: rgb(238, 239, 246);
82+
background: #ffffff; /* Changed to white */
8383
}
8484
}
8585
header h1{font-size:1.1rem;margin:0}
8686
#status{font-size:.9rem;color:var(--muted)}
8787

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 */
8989
#diagram-wrap{width:100%;height:100%}
9090

9191
#diagram{ background: var(--canvas); }
@@ -142,22 +142,27 @@
142142

143143
/* Input field specific styles (exclude checkboxes) */
144144
input:not([type="checkbox"]) {
145-
min-height: 3.75rem;
145+
min-height: 3rem; /* Reduced from 3.75rem (20% reduction) */
146146
max-height: 8.737499999999999rem;
147147
padding-left: 1rem;
148148
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 */
151151
}
152152

153153
/* Select field specific styles to match inputs */
154154
select {
155-
min-height: 3.75rem;
155+
min-height: 3rem; /* Reduced from 3.75rem (20% reduction) */
156156
max-height: 8.737499999999999rem;
157157
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;
161166
}
162167

163168
input:not([type="checkbox"]):hover, select:hover {
@@ -227,6 +232,16 @@
227232
border-color: transparent;
228233
}
229234

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+
230245
input:not([type="checkbox"]):hover, select:hover {
231246
border-color: #26314c;
232247
}

0 commit comments

Comments
 (0)