Skip to content

Commit 272fe57

Browse files
committed
style: Update dashboard CSS for improved dropdown and button aesthetics; enhance active state handling in JavaScript
1 parent 4202fd1 commit 272fe57

6 files changed

Lines changed: 137 additions & 87 deletions

File tree

static/css/dashboard.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,16 +325,17 @@ body {
325325

326326
.options-dropdown {
327327
position: absolute;
328+
top: calc(100% + 10px);
328329
right: 0;
329-
top: calc(100% + 8px);
330+
left: auto;
330331
min-width: 720px;
331332
max-width: 86vw;
332333
padding: 20px;
333-
border: 1px solid var(--border);
334-
border-radius: var(--radius-lg);
335-
background: rgba(13, 17, 35, 0.98);
336-
backdrop-filter: blur(70px);
337-
box-shadow: var(--shadow);
334+
background: rgba(15, 20, 35, 0.98);
335+
border: 1px solid rgba(255, 255, 255, 0.15);
336+
border-radius: 12px;
337+
backdrop-filter: blur(16px);
338+
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px 0px;
338339
z-index: 1000;
339340
}
340341

static/css/dashboard/dateRangePicker.css

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,30 @@
55
}
66

77
.date-range-trigger {
8-
padding: 10px 15px;
9-
border-radius: 12px;
10-
color: white;
11-
background: rgba(255, 255, 255, 0.15);
12-
border: 1px solid rgba(255, 255, 255, 0.18);
13-
box-shadow: rgba(0, 0, 0, 0.16) 0 10px 36px 0px, rgba(0, 0, 0, 0.06) 0 0 0 1px;
8+
padding: 8px 14px;
9+
border-radius: 8px;
10+
color: rgba(255, 255, 255, 0.85);
11+
background: rgba(255, 255, 255, 0.08);
12+
border: 1px solid rgba(255, 255, 255, 0.12);
1413
cursor: pointer;
1514
display: flex;
1615
align-items: center;
17-
gap: 10px;
16+
gap: 8px;
1817
min-width: 160px;
19-
transition: background-color 0.2s ease-in-out;
18+
transition: all 0.2s ease;
19+
font-weight: 500;
2020
}
2121

2222
.date-range-trigger:hover {
23-
background: rgba(255, 255, 255, 0.25);
23+
background: rgba(255, 255, 255, 0.15);
24+
border-color: rgba(255, 255, 255, 0.2);
25+
color: rgba(255, 255, 255, 0.95);
26+
}
27+
28+
.date-range-trigger.active {
29+
background: rgba(124, 58, 237, 0.15);
30+
border-color: rgba(124, 58, 237, 0.4);
31+
color: rgba(255, 255, 255, 0.95);
2432
}
2533

2634
.selected-range {
@@ -30,29 +38,30 @@
3038

3139
.clock-icon {
3240
font-size: 16px;
33-
color: rgba(255, 255, 255, 0.8);
41+
color: rgba(255, 255, 255, 0.7);
3442
}
3543

3644
.dropdown-icon {
37-
font-size: 14px;
38-
color: rgba(255, 255, 255, 0.7);
45+
font-size: 12px;
46+
color: rgba(255, 255, 255, 0.6);
3947
transition: transform 0.2s ease;
4048
}
4149

42-
.dropdown-icon:hover {
50+
.date-range-trigger.active .dropdown-icon {
4351
transform: rotate(180deg);
52+
color: rgba(255, 255, 255, 0.8);
4453
}
4554

4655
.date-range-dropdown {
4756
position: absolute;
4857
top: calc(100% + 10px);
4958
right: 0;
5059
left: auto;
51-
background: rgba(20, 25, 40, 0.98);
52-
border: 1px solid rgba(255, 255, 255, 0.18);
60+
background: rgba(15, 20, 35, 0.95);
61+
border: 1px solid rgba(255, 255, 255, 0.15);
5362
border-radius: 12px;
5463
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px 0px;
55-
backdrop-filter: blur(10px);
64+
backdrop-filter: blur(16px);
5665
z-index: 1000;
5766
min-width: 700px;
5867
max-height: 500px;
@@ -281,6 +290,7 @@
281290
opacity: 0;
282291
transform: translateY(-10px) scaleY(0.8);
283292
}
293+
284294
to {
285295
opacity: 1;
286296
transform: translateY(0) scaleY(1);
@@ -294,16 +304,16 @@
294304
left: 50%;
295305
transform: translateX(-50%);
296306
}
297-
307+
298308
.dropdown-header {
299309
flex-direction: column;
300310
gap: 15px;
301311
}
302-
312+
303313
.custom-inputs {
304314
padding: 15px;
305315
}
306-
316+
307317
.history-section {
308318
padding: 15px;
309319
}

static/css/dashboard/links.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,17 +482,18 @@
482482

483483
.options-dropdown {
484484
position: absolute;
485-
top: 100%;
485+
top: calc(100% + 10px);
486486
right: 0;
487-
margin-top: 8px;
487+
left: auto;
488488
width: 500px;
489489
max-width: 90vw;
490-
background: rgba(20, 25, 40, 0.98);
491-
backdrop-filter: blur(20px);
492-
border: 1px solid var(--border-color);
493-
border-radius: var(--radius-md);
490+
position: absolute;
494491
padding: 20px;
495-
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
492+
background: rgba(15, 20, 35, 0.98);
493+
border: 1px solid rgba(255, 255, 255, 0.15);
494+
border-radius: 12px;
495+
backdrop-filter: blur(60px);
496+
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px 0px;
496497
z-index: 9999;
497498
}
498499

@@ -620,7 +621,7 @@ input[type="datetime-local"]::-webkit-inner-spin-button {
620621

621622
.seg-indicator {
622623
position: absolute;
623-
top: 2px;
624+
top: 3px;
624625
bottom: 2.5px;
625626
left: 2.5px;
626627
width: calc(33.33% - 2.67px);

0 commit comments

Comments
 (0)