Skip to content

Commit 7127e06

Browse files
fix status config banner colors
1 parent 1001747 commit 7127e06

4 files changed

Lines changed: 28 additions & 103 deletions

File tree

frontend/src/app/components/dashboard/dashboard.component.css

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -189,25 +189,24 @@
189189
padding: 12px 20px;
190190
width: 100%;
191191
border: none;
192-
border-left: 3px solid #2563eb;
192+
border-left: 3px solid var(--color-accentedPalette-500);
193193
border-radius: 0;
194-
background: #ebf2ff;
194+
background: var(--color-accentedPalette-50);
195195
font-size: 13px;
196-
color: #1e293b;
197196
}
198197

199-
.status-banner--done {
200-
border-left-color: #16a34a;
201-
background: #edfaf3;
198+
/* .status-banner--done {
199+
border-left-color: var(--success-color);
200+
background: var(--success-background-color);
202201
}
203202
204203
.status-banner--done .status-banner__icon {
205-
color: #16a34a;
206-
}
204+
color: var(--success-color);
205+
} */
207206

208207
.status-banner__icon {
209208
flex-shrink: 0;
210-
color: #2563eb;
209+
color: var(--color-accentedPalette-500);
211210
font-size: 20px;
212211
width: 20px;
213212
height: 20px;
@@ -222,37 +221,37 @@
222221
}
223222

224223
.status-banner__title {
225-
color: #1e293b;
224+
color: var(--color-accentedPalette-900);
226225
white-space: nowrap;
227226
}
228227

229228
.status-banner__subtitle {
230-
color: #475569;
229+
color: var(--color-accentedPalette-700);
231230
}
232231

233232
.status-banner__link {
234-
color: #2563eb;
233+
color: var(--color-accentedPalette-500);
235234
text-decoration: underline;
236235
}
237236

238237
.status-banner__link:hover {
239-
color: #1d4ed8;
238+
color: var(--color-accentedPalette-700);
240239
}
241240

242241
.status-banner__progress {
243242
flex-shrink: 0;
244243
width: 80px;
245244
height: 3px;
246245
border-radius: 2px;
247-
background: rgba(37, 99, 235, 0.15);
246+
background: var(--color-accentedPalette-100);
248247
overflow: hidden;
249248
}
250249

251250
.status-banner__progress-fill {
252251
width: 40%;
253252
height: 100%;
254253
border-radius: 2px;
255-
background: #2563eb;
254+
background: var(--color-accentedPalette-500);
256255
animation: banner-indeterminate 1.5s ease-in-out infinite;
257256
}
258257

@@ -263,31 +262,30 @@
263262

264263
@media (prefers-color-scheme: dark) {
265264
.status-banner {
266-
background: #1a2744;
267-
color: #93c5fd;
265+
background: var(--color-accentedPalette-900);
268266
}
269267

270268
.status-banner__title {
271-
color: #e2e8f0;
269+
color: var(--color-accentedPalette-100);
272270
}
273271

274272
.status-banner__subtitle {
275-
color: #93c5fd;
273+
color: var(--color-accentedPalette-200);
276274
}
277275

278276
.status-banner__link {
279-
color: #60a5fa;
277+
color: var(--color-accentedPalette-500);
280278
}
281279

282280
.status-banner__link:hover {
283-
color: #93c5fd;
281+
color: var(--color-accentedPalette-200);
284282
}
285283

286284
.status-banner__icon {
287-
color: #60a5fa;
285+
color: var(--color-accentedPalette-500);
288286
}
289287

290-
.status-banner--done {
288+
/* .status-banner--done {
291289
background: #0f2a1a;
292290
color: #86efac;
293291
}
@@ -302,14 +300,14 @@
302300
303301
.status-banner--done .status-banner__subtitle {
304302
color: #86efac;
305-
}
303+
} */
306304

307305
.status-banner__progress {
308-
background: rgba(96, 165, 250, 0.15);
306+
background: var(--color-accentedPalette-800);
309307
}
310308

311309
.status-banner__progress-fill {
312-
background: #60a5fa;
310+
background: var(--color-accentedPalette-300);
313311
}
314312
}
315313

frontend/src/app/components/dashboard/dashboard.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ <h3 class='mat-subheading-2'>Rocketadmin can not find any tables</h3>
5656
<div class="status-banner__progress-fill"></div>
5757
</div>
5858
</div>
59-
} @else if (configurationDone) {
59+
}
60+
<!--@else if (configurationDone) {
6061
<div class="status-banner status-banner--done">
6162
<mat-icon class="status-banner__icon">check_circle</mat-icon>
6263
<div class="status-banner__body">
6364
<strong class="status-banner__title">All tables configured</strong>
6465
<span class="status-banner__subtitle">Everything is ready to use.</span>
6566
</div>
6667
</div>
67-
}
68+
} -->
6869

6970
<mat-sidenav-container class="table-list-sidenav-container">
7071
<mat-sidenav #sideList mode="side" [(opened)]="shownTableTitles"

frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.css

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -591,29 +591,6 @@
591591
max-width: calc(100% - 40px);
592592
}
593593

594-
.folder-name.editing {
595-
background: white;
596-
border: 1px solid #2196f3;
597-
border-radius: 2px;
598-
padding: 2px 6px;
599-
margin: 0 4px;
600-
flex: 1;
601-
max-width: 100%;
602-
}
603-
604-
.enter-icon {
605-
font-size: 16px;
606-
width: 16px;
607-
height: 16px;
608-
color: #9e9e9e;
609-
cursor: pointer;
610-
margin-left: 4px;
611-
}
612-
613-
.enter-icon:hover {
614-
color: #757575;
615-
}
616-
617594
.folder-icon {
618595
font-size: 20px;
619596
width: 20px;
@@ -724,59 +701,13 @@
724701
}
725702

726703
.table-link_active {
727-
background: rgba(37, 99, 235, 0.08);
728704
border-radius: 4px;
729705
margin: 0 -12px;
730706
padding: 0 12px;
731707
}
732708

733709
.table-link_active .table-name {
734-
color: #2563eb;
735-
}
736-
737-
@media (prefers-color-scheme: dark) {
738-
.table-link_active {
739-
background: rgba(96, 165, 250, 0.1);
740-
}
741-
742-
.table-link_active .table-name {
743-
color: #60a5fa;
744-
}
745-
}
746-
747-
/* ── Dot indicators ── */
748-
749-
.table-dot {
750-
flex-shrink: 0;
751-
width: 6px;
752-
height: 6px;
753-
border-radius: 50%;
754-
background: transparent;
755-
margin-right: 6px;
756-
}
757-
758-
.table-dot--configured {
759-
background: #16a34a;
760-
}
761-
762-
.table-dot--configuring {
763-
background: #2563eb;
764-
animation: dot-pulse 1.5s ease-in-out infinite;
765-
}
766-
767-
@keyframes dot-pulse {
768-
0%, 100% { opacity: 1; transform: scale(1); }
769-
50% { opacity: 0.4; transform: scale(0.75); }
770-
}
771-
772-
@media (prefers-color-scheme: dark) {
773-
.table-dot--configured {
774-
background: #4ade80;
775-
}
776-
777-
.table-dot--configuring {
778-
background: #60a5fa;
779-
}
710+
color: var(--color-accentedPalette-500);
780711
}
781712

782713
.table-name {

frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@
161161
(dragstart)="accessLevel === 'edit' && onTableDragStart($event, table)"
162162
(dragend)="accessLevel === 'edit' && onTableDragEnd($event)"
163163
(click)="closeSidebar()">
164-
<span class="table-dot"
165-
[ngClass]="{
166-
'table-dot--configured': table.configured,
167-
'table-dot--configuring': table.configuring
168-
}"></span>
169164
<span class="table-name">{{getTableName(table)}}</span>
170165
</a>
171166
</div>

0 commit comments

Comments
 (0)