Skip to content

Commit f55883b

Browse files
Fix: Align 'Transfer Funds' text properly (#2661)
1 parent 87f1639 commit f55883b

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed

src/app/savings/savings-account-view/general-tab/general-tab.component.scss

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,165 @@ $color: #e2e4ec;
7070
width: $bar;
7171
}
7272
}
73+
74+
.general-tab-container {
75+
padding: 16px 20px;
76+
width: 100%;
77+
box-sizing: border-box;
78+
position: relative;
79+
background-color: var(--background-color, #f8f9fa);
80+
color: var(--text-color, #333);
81+
transition:
82+
background-color 0.3s ease,
83+
color 0.3s ease;
84+
85+
.page-header {
86+
margin-bottom: 24px;
87+
padding: 16px 0;
88+
position: relative;
89+
border-bottom: 1px solid var(--border-color, #e9ecef);
90+
91+
.header-title {
92+
font-size: 1.75rem;
93+
font-weight: 600;
94+
margin: 0 0 8px;
95+
line-height: 1.2;
96+
color: var(--primary-color, #007bff);
97+
position: relative;
98+
}
99+
100+
.header-subtitle {
101+
font-size: 0.95rem;
102+
margin: 0;
103+
line-height: 1.4;
104+
color: var(--text-secondary, #6c757d);
105+
position: relative;
106+
}
107+
}
108+
109+
.content-wrapper {
110+
position: relative;
111+
width: 100%;
112+
}
113+
114+
.account-info-card {
115+
background: var(--card-background, #fff);
116+
border-radius: 8px;
117+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
118+
overflow: hidden;
119+
position: relative;
120+
width: 100%;
121+
max-width: 600px;
122+
transition:
123+
box-shadow 0.3s ease,
124+
background-color 0.3s ease;
125+
126+
.card-header {
127+
padding: 16px 20px;
128+
background: var(--card-header-bg, #f8f9fa);
129+
border-bottom: 1px solid var(--border-color, #e9ecef);
130+
position: relative;
131+
132+
h3 {
133+
margin: 0;
134+
font-size: 1.1rem;
135+
font-weight: 600;
136+
line-height: 1.3;
137+
color: var(--text-color, #333);
138+
}
139+
}
140+
141+
.card-content {
142+
padding: 20px;
143+
position: relative;
144+
145+
.info-row {
146+
display: flex;
147+
justify-content: space-between;
148+
align-items: baseline;
149+
padding: 10px 0;
150+
border-bottom: 1px solid var(--border-light, #f1f3f4);
151+
position: relative;
152+
min-height: 24px;
153+
154+
&:last-child {
155+
border-bottom: none;
156+
}
157+
158+
.label {
159+
font-weight: 500;
160+
color: var(--text-secondary, #6c757d);
161+
flex: 0 0 auto;
162+
margin-right: 16px;
163+
white-space: nowrap;
164+
line-height: 1.4;
165+
}
166+
167+
.value {
168+
font-weight: 600;
169+
color: var(--text-color, #333);
170+
text-align: right;
171+
flex: 1 1 auto;
172+
line-height: 1.4;
173+
174+
&.currency {
175+
color: var(--success-color, #28a745);
176+
font-size: 1.05rem;
177+
}
178+
}
179+
}
180+
}
181+
}
182+
}
183+
184+
// Dark mode styles
185+
[data-theme='dark'] .general-tab-container,
186+
.dark-theme .general-tab-container {
187+
--background-color: #1a1a1a;
188+
--text-color: #e9ecef;
189+
--text-secondary: #adb5bd;
190+
--primary-color: #4dabf7;
191+
--card-background: #2d3748;
192+
--card-header-bg: #374151;
193+
--border-color: #4a5568;
194+
--border-light: #2d3748;
195+
--success-color: #68d391;
196+
}
197+
198+
// Responsive adjustments for mobile
199+
@media (width <= 768px) {
200+
.general-tab-container {
201+
padding: 12px 16px;
202+
203+
.page-header {
204+
margin-bottom: 20px;
205+
padding: 12px 0;
206+
207+
.header-title {
208+
font-size: 1.5rem;
209+
}
210+
211+
.header-subtitle {
212+
font-size: 0.9rem;
213+
}
214+
}
215+
216+
.account-info-card {
217+
.card-header {
218+
padding: 14px 16px;
219+
}
220+
221+
.card-content {
222+
padding: 16px;
223+
224+
.info-row {
225+
padding: 8px 0;
226+
227+
.label {
228+
margin-right: 12px;
229+
}
230+
}
231+
}
232+
}
233+
}
234+
}

0 commit comments

Comments
 (0)