Skip to content

Commit 2c4a0ef

Browse files
committed
style: portfolio tab underline, mono numbers, token-driven borders and footer
1 parent 7324663 commit 2c4a0ef

1 file changed

Lines changed: 88 additions & 73 deletions

File tree

‎public/css/portfolio.css‎

Lines changed: 88 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -792,18 +792,33 @@
792792
cursor: pointer;
793793
white-space: nowrap;
794794
margin-bottom: -1px;
795-
transition: color 0.2s, border-color 0.2s;
795+
transition: color 0.15s ease, border-color 0.15s ease;
796796
font-family: var(--font-sans);
797797
}
798798
.tab-btn:hover { color: var(--foreground); }
799799
.tab-btn.active {
800800
color: var(--primary);
801801
border-bottom-color: var(--primary);
802+
background: transparent;
802803
}
803804

804805
.tab-panel { display: none; }
805806
.tab-panel.active { display: block; }
806807

808+
/* ── Monospace Font for Monetary Values ─────────── */
809+
.holding-value,
810+
.holding-price,
811+
.holding-change,
812+
.portfolio-total,
813+
.pnl-value,
814+
.wl-price,
815+
.wl-change,
816+
.wl-price-val,
817+
.wl-price-change,
818+
.summary-value {
819+
font-family: var(--font-mono);
820+
}
821+
807822
/* ── Onboarding Card (empty state) ──────────────── */
808823
.onboarding-card {
809824
text-align: center;
@@ -988,75 +1003,75 @@
9881003
flex-shrink: 0;
9891004
}
9901005
.wl-remove-btn:hover { color: #ef4444; }
991-
992-
/* ── New modal form aliases ──────────────────────── */
993-
.form-label {
994-
display: block;
995-
color: var(--card-foreground);
996-
font-size: 0.9rem;
997-
margin-bottom: 8px;
998-
font-weight: 500;
999-
}
1000-
.form-input {
1001-
width: 100%;
1002-
padding: 12px 15px;
1003-
background: var(--input);
1004-
border: 1px solid var(--border);
1005-
border-radius: 10px;
1006-
color: var(--foreground);
1007-
font-size: 1rem;
1008-
font-family: var(--font-sans);
1009-
}
1010-
.form-input:focus {
1011-
outline: none;
1012-
border-color: var(--primary);
1013-
box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
1014-
}
1015-
.form-input::placeholder { color: var(--muted-foreground); }
1016-
1017-
.form-error {
1018-
color: #ef4444;
1019-
font-size: 0.85rem;
1020-
margin-top: 8px;
1021-
}
1022-
1023-
.btn-submit {
1024-
flex: 1;
1025-
padding: 12px;
1026-
background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
1027-
border: none;
1028-
border-radius: 10px;
1029-
color: white;
1030-
font-size: 1rem;
1031-
font-weight: 600;
1032-
cursor: pointer;
1033-
font-family: var(--font-sans);
1034-
transition: opacity 0.2s;
1035-
}
1036-
.btn-submit:hover { opacity: 0.9; }
1037-
1038-
/* ── Chart cards (Overview tab) ──────────────────── */
1039-
.chart-card {
1040-
background: var(--card);
1041-
border: 1px solid var(--border);
1042-
border-radius: 12px;
1043-
padding: 24px;
1044-
}
1045-
.chart-header {
1046-
display: flex;
1047-
align-items: center;
1048-
justify-content: space-between;
1049-
margin-bottom: 20px;
1050-
}
1051-
.chart-title {
1052-
font-size: 0.85rem;
1053-
text-transform: uppercase;
1054-
letter-spacing: 0.06em;
1055-
color: var(--muted-foreground);
1056-
font-weight: 600;
1057-
margin: 0;
1058-
}
1059-
.chart-body {
1060-
position: relative;
1061-
height: 280px;
1062-
}
1006+
1007+
/* ── New modal form aliases ──────────────────────── */
1008+
.form-label {
1009+
display: block;
1010+
color: var(--card-foreground);
1011+
font-size: 0.9rem;
1012+
margin-bottom: 8px;
1013+
font-weight: 500;
1014+
}
1015+
.form-input {
1016+
width: 100%;
1017+
padding: 12px 15px;
1018+
background: var(--input);
1019+
border: 1px solid var(--border);
1020+
border-radius: 10px;
1021+
color: var(--foreground);
1022+
font-size: 1rem;
1023+
font-family: var(--font-sans);
1024+
}
1025+
.form-input:focus {
1026+
outline: none;
1027+
border-color: var(--primary);
1028+
box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
1029+
}
1030+
.form-input::placeholder { color: var(--muted-foreground); }
1031+
1032+
.form-error {
1033+
color: #ef4444;
1034+
font-size: 0.85rem;
1035+
margin-top: 8px;
1036+
}
1037+
1038+
.btn-submit {
1039+
flex: 1;
1040+
padding: 12px;
1041+
background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
1042+
border: none;
1043+
border-radius: 10px;
1044+
color: white;
1045+
font-size: 1rem;
1046+
font-weight: 600;
1047+
cursor: pointer;
1048+
font-family: var(--font-sans);
1049+
transition: opacity 0.2s;
1050+
}
1051+
.btn-submit:hover { opacity: 0.9; }
1052+
1053+
/* ── Chart cards (Overview tab) ──────────────────── */
1054+
.chart-card {
1055+
background: var(--card);
1056+
border: 1px solid var(--border);
1057+
border-radius: 12px;
1058+
padding: 24px;
1059+
}
1060+
.chart-header {
1061+
display: flex;
1062+
align-items: center;
1063+
justify-content: space-between;
1064+
margin-bottom: 20px;
1065+
}
1066+
.chart-title {
1067+
font-size: 0.85rem;
1068+
text-transform: uppercase;
1069+
letter-spacing: 0.06em;
1070+
color: var(--muted-foreground);
1071+
font-weight: 600;
1072+
margin: 0;
1073+
}
1074+
.chart-body {
1075+
position: relative;
1076+
height: 280px;
1077+
}

0 commit comments

Comments
 (0)