Skip to content

Commit d603228

Browse files
committed
Refactor: style: fixed password label when displaying wrong color when clicking
1 parent 25cee0e commit d603228

6 files changed

Lines changed: 0 additions & 49 deletions

File tree

src/app/components/crash-history/history.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
width: 100%;
33
overflow: hidden;
44
padding: 6px 0;
5-
/* Removed margin-bottom to fix spacing */
65
position: relative;
7-
/* Reduced mask to make it look full width */
86
mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
97
}
108

@@ -27,15 +25,10 @@
2725
.history-scroll {
2826
display: flex;
2927
gap: 10px;
30-
/* Align to end so Newest (and + btn) allow standard reading flow LTR but prioritized?
31-
Actually with 50 items and Old->New order, flex-start is fine, user scrolls to see old.
32-
But user wants "Space for screen size". With 50, it fills.
33-
*/
3428
justify-content: flex-end;
3529
flex-direction: row;
3630
overflow-x: auto;
3731
padding: 5px;
38-
/* Hide scrollbar */
3932
scrollbar-width: none;
4033
-ms-overflow-style: none;
4134
}
@@ -59,34 +52,29 @@
5952
border: 1px solid rgba(255, 255, 255, 0.1);
6053
}
6154

62-
/* LOW (< 2.0x) - Green (Basilico) */
6355
.history-badge.low {
6456
background: rgba(0, 140, 69, 0.2);
6557
color: #4caf50;
6658
border-color: rgba(0, 140, 69, 0.5);
6759
box-shadow: 0 0 10px rgba(0, 140, 69, 0.4);
6860
}
6961

70-
/* MEDIUM (2.0x - 10.0x) - White (Mozzarella) */
7162
.history-badge.medium {
7263
background: rgba(255, 255, 255, 0.15);
7364
color: #ffffff;
7465
border-color: rgba(255, 255, 255, 0.4);
7566
box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
7667
}
7768

78-
/* HIGH (>= 10.0x) - Red (Rosso Pomodoro) */
7969
.history-badge.high {
8070
background: rgba(227, 27, 35, 0.15);
8171
color: #ff5252;
8272
border-color: rgba(227, 27, 35, 0.3);
8373
box-shadow: 0 0 15px rgba(227, 27, 35, 0.2);
84-
/* Extra Pop for high wins */
8574
transform: scale(1.05);
8675
font-weight: 800;
8776
}
8877

89-
/* Hover effects */
9078
.history-badge:hover {
9179
transform: translateY(-2px);
9280
cursor: default;

src/app/components/top-bar/top-bar.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
1111
}
1212

13-
14-
1513
.brand {
1614
font-weight: 800;
1715
font-size: 1.2rem;
1816
display: flex;
1917
align-items: center;
2018
gap: 0.5rem;
2119
color: #e31b23;
22-
/* Pizza Red */
2320
}
2421

2522
.brand-logo {
@@ -40,7 +37,6 @@
4037
.user-balance {
4138
font-weight: bold;
4239
color: #4caf50;
43-
/* Green for money */
4440
}
4541

4642
.username {

src/app/components/top-bar/top-bar.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
</div>
1313
}
1414

15-
<!-- Chat Toggle Button (Mobile/Tablet only via CSS) -->
1615
<p-button styleClass="chat-toggle p-button-text p-button-rounded" icon="pi pi-comments"
1716
(onClick)="onToggleChat()"></p-button>
1817

19-
<!-- Logout -->
2018
<p-button icon="pi pi-sign-out" styleClass="p-button-danger p-button-text p-button-rounded p-button-sm ml-2"
2119
(onClick)="onLogout()"></p-button>
2220
</div>

src/app/pages/home/home.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
.dashboard-layout {
99
display: grid;
1010
grid-template-columns: 350px 1fr;
11-
/* 2 Columns: Bets + Game */
1211
gap: 1rem;
1312
padding: 1rem;
1413
flex: 1;
@@ -18,16 +17,13 @@
1817
position: relative;
1918
}
2019

21-
2220
.column {
2321
display: flex;
2422
flex-direction: column;
2523
min-height: 0;
2624
height: 100%;
27-
/* Ensure column takes full available height */
2825
}
2926

30-
/* Ensure components fill the column */
3127
app-player-bets,
3228
app-chat {
3329
display: block;
@@ -41,18 +37,15 @@ app-chat {
4137
flex-direction: column;
4238
height: 100%;
4339
overflow: hidden;
44-
/* Ensure it contains its children */
4540
}
4641

4742
.canvas-wrapper {
4843
background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
4944
border-radius: 12px;
5045
padding: 1rem;
5146
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
52-
/* height: 480px; Removed fixed height */
5347
flex: 1;
5448
min-height: 250px;
55-
/* Prevent collapse */
5649
width: 100%;
5750
position: relative;
5851
border: 1px solid #333;
@@ -66,11 +59,9 @@ canvas {
6659
height: 100%;
6760
}
6861

69-
/* Chat Drawer - Always Fixed */
7062
.right-col {
7163
position: fixed;
7264
top: 60px;
73-
/* Below TopBar */
7465
right: -100%;
7566
bottom: 0;
7667
width: 350px;
@@ -127,7 +118,6 @@ canvas {
127118

128119
.canvas-wrapper {
129120
height: 400px;
130-
/* Reduce height on smaller laptops */
131121
}
132122
}
133123

@@ -143,17 +133,14 @@ canvas {
143133
height: auto;
144134
overflow-y: auto;
145135
padding-bottom: 80px;
146-
/* Space for bottom interaction if needed */
147136
display: block;
148-
/* Switch to block for flow layout */
149137
}
150138

151139
.column {
152140
height: auto;
153141
margin-bottom: 1rem;
154142
}
155143

156-
/* Side panels (Bets) stack normally */
157144
.left-col {
158145
height: 400px;
159146
order: 2;
@@ -165,7 +152,6 @@ canvas {
165152

166153
.right-col {
167154
width: 85%;
168-
/* Wider on mobile */
169155
max-width: 350px;
170156
}
171157

src/app/pages/login/login.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
1313
border-radius: 1rem;
1414
border: 1px solid rgba(227, 27, 35, 0.2);
15-
/* Red subtle border */
1615
}
1716

18-
/* Add a glow effect to the card on hover */
1917
:host ::ng-deep .p-card:hover {
2018
border-color: var(--logo-red);
2119
box-shadow: 0 0 30px var(--logo-red-glow);
@@ -61,7 +59,6 @@
6159

6260
.text-primary:hover {
6361
color: #ff4d4d;
64-
/* lighter red on hover */
6562
}
6663

6764
.no-underline {
@@ -107,7 +104,6 @@
107104

108105
:host ::ng-deep .p-button:enabled:hover {
109106
background: #c0151c;
110-
/* Darker red */
111107
border-color: #c0151c;
112108
box-shadow: 0 0 10px var(--logo-red-glow);
113109
}
@@ -126,19 +122,12 @@
126122
:host ::ng-deep .p-float-label textarea.p-filled~label,
127123
:host ::ng-deep p-floatLabel input:focus+label,
128124
:host ::ng-deep p-floatLabel input.p-filled+label,
129-
/* Fix for p-password and other wrapped inputs */
130125
:host ::ng-deep p-floatLabel .p-inputwrapper-focus~label,
131126
:host ::ng-deep p-floatLabel .p-inputwrapper-filled~label,
132127
:host ::ng-deep .p-float-label .p-inputwrapper-focus~label,
133128
:host ::ng-deep .p-float-label .p-inputwrapper-filled~label,
134-
/* Robust Override for Password Label */
135129
:host ::ng-deep p-floatLabel p-password.ng-dirty.ng-valid~label,
136130
:host ::ng-deep p-floatLabel p-password.p-inputwrapper-filled~label,
137-
:host ::ng-deep p-floatLabel p-password~label {
138-
color: #ffffff !important;
139-
}
140-
141-
/* Ensure focus state is also white (redundant but safe) */
142131
:host ::ng-deep p-floatLabel p-password.p-inputwrapper-focus~label {
143132
color: #ffffff !important;
144133
}

src/app/pages/register/register.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,8 @@
129129
:host ::ng-deep .p-float-label .p-inputwrapper-filled~label,
130130
:host ::ng-deep p-floatLabel .p-inputwrapper-focus~label,
131131
:host ::ng-deep p-floatLabel .p-inputwrapper-filled~label,
132-
/* Robust Override for Password Label */
133132
:host ::ng-deep p-floatLabel p-password.ng-dirty.ng-valid~label,
134133
:host ::ng-deep p-floatLabel p-password.p-inputwrapper-filled~label,
135-
:host ::ng-deep p-floatLabel p-password~label {
136-
color: #ffffff !important;
137-
}
138-
139-
/* Ensure focus state is also white (redundant but safe) */
140134
:host ::ng-deep p-floatLabel p-password.p-inputwrapper-focus~label {
141135
color: #ffffff !important;
142136
}

0 commit comments

Comments
 (0)