Skip to content

Commit 7f97354

Browse files
committed
fix: use CSS vars for text colors in new project dialog
Add --text-heading and --text-body CSS vars for consistent, tunable text colors. Soften all heading text from #FFFFFF to #e0e0e0 to reduce harsh contrast on dark backgrounds.
1 parent b2f1881 commit 7f97354

1 file changed

Lines changed: 30 additions & 28 deletions

File tree

src/assets/new-project/assets/css/style.css

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
:root {
22
--sansFontFamily: 'SourceSansPro', Helvetica, Arial, "Meiryo UI", "MS Pゴシック", "MS PGothic", sans-serif;
3+
--text-heading: #e0e0e0;
4+
--text-body: #cccccc;
35
}
46

57
/* SourceSansPro Regular */
@@ -20,7 +22,7 @@ body {
2022
overflow: hidden;
2123
background-color: #fff;
2224
height: 100%;
23-
color: #cccccc;
25+
color: var(--text-body);
2426
}
2527

2628
.even-layout {
@@ -32,7 +34,7 @@ body {
3234

3335
#download-phcode-banner {
3436
background-color: #1e1e1e;
35-
color: white;
37+
color: var(--text-heading);
3638
border-radius: 10px;
3739
margin-top: 26px;
3840
cursor: pointer;
@@ -84,7 +86,7 @@ img {
8486
color: #8A8A8A;
8587
}
8688
.recent-project-remove:hover {
87-
color: white;
89+
color: var(--text-heading);
8890
}
8991

9092
.side-nav {
@@ -173,7 +175,7 @@ img {
173175
}
174176

175177
.modal-nav-tabs .nav-item.show .nav-link, .modal-nav-tabs .nav-link.active {
176-
color: #fff;
178+
color: var(--text-heading);
177179
background-color: #1e1e1e;
178180
border-color: #dee2e6 #dee2e6 #fff;
179181
border-bottom: 2px solid #016DC4 !important;
@@ -218,7 +220,7 @@ img {
218220
font-size: 14px;
219221
line-height: 17px;
220222
text-align: center;
221-
color: #FFFFFF;
223+
color: var(--text-heading);
222224
padding: 10px;
223225
transition: all .6s ease-in-out;
224226
cursor: pointer;
@@ -233,7 +235,7 @@ img {
233235
font-size: 16px;
234236
line-height: 19px;
235237

236-
color: #FFFFFF;
238+
color: var(--text-heading);
237239
margin-bottom: 20px;
238240
}
239241

@@ -265,7 +267,7 @@ img {
265267
font-size: 13px;
266268
line-height: 14px;
267269

268-
color: #FFFFFF;
270+
color: var(--text-heading);
269271
margin-top: 10px;
270272
display: block;
271273
opacity: 1;
@@ -287,7 +289,7 @@ img {
287289
}
288290

289291
.ex-tabs .nav-item.show .nav-link, .ex-tabs .nav-link.active {
290-
color: #fff;
292+
color: var(--text-heading);
291293
background-color: #1e1e1e;
292294
border-color: #016DC4;
293295
}
@@ -337,7 +339,7 @@ img {
337339
font-size: 16px;
338340
line-height: 19px;
339341

340-
color: #FFFFFF;
342+
color: var(--text-heading);
341343
margin-bottom: 3px;
342344
}
343345

@@ -394,7 +396,7 @@ img {
394396
font-weight: 600;
395397
font-size: 12px;
396398
line-height: 14px;
397-
color: #FFFFFF;
399+
color: var(--text-heading);
398400
border: none;
399401
cursor: pointer;
400402
}
@@ -559,7 +561,7 @@ img {
559561
font-size: 13px;
560562
line-height: 16px;
561563

562-
color: #FFFFFF;
564+
color: var(--text-heading);
563565
margin-right: 15px;
564566
display: block;
565567
}
@@ -584,7 +586,7 @@ img {
584586
}
585587

586588
.view-all select option {
587-
color: #fff;
589+
color: var(--text-heading);
588590
font-weight: 500;
589591
font-size: 16px;
590592
background: rgba(0, 0, 0, 1);
@@ -624,12 +626,12 @@ img {
624626

625627
.on-hover-text h6 {
626628
font-size: 12px;
627-
color: #fff;
629+
color: var(--text-heading);
628630
margin-bottom: 2px;
629631
}
630632

631633
.review-star .fa {
632-
color: #fff;
634+
color: var(--text-heading);
633635
margin: 0px 1px;
634636
font-size: 15px;
635637
}
@@ -666,7 +668,7 @@ img {
666668
font-size: 25px;
667669
line-height: 25px;
668670
text-align: left;
669-
color: #FFFFFF;
671+
color: var(--text-heading);
670672
margin-bottom: 10px;
671673
}
672674

@@ -689,7 +691,7 @@ img {
689691
line-height: 17px;
690692
text-align: center;
691693
cursor: pointer;
692-
color: #FFFFFF;
694+
color: var(--text-heading);
693695
transition: all .2s ease-in-out;
694696
}
695697

@@ -745,7 +747,7 @@ img {
745747
font-weight: 500;
746748
font-size: 13px;
747749
line-height: 14px;
748-
color: #FFFFFF;
750+
color: var(--text-heading);
749751
margin-top: 10px;
750752
display: block;
751753
opacity: 1;
@@ -754,7 +756,7 @@ img {
754756
}
755757

756758
.project-type-list li a.active {
757-
color: #fff;
759+
color: var(--text-heading);
758760
background-color: #1e1e1e;
759761
border-color: #016DC4;
760762
}
@@ -818,22 +820,22 @@ img {
818820
font-weight: 600;
819821
font-size: 14px;
820822
line-height: 17px;
821-
color: #FFFFFF;
823+
color: var(--text-heading);
822824
text-align: center;
823825
}
824826

825827
.no-project-card h5 {
826828
font-weight: 600;
827829
font-size: 14px;
828830
line-height: 17px;
829-
color: #FFFFFF;
831+
color: var(--text-heading);
830832
text-align: center;
831833
}
832834

833835
.no-project-card span {
834836
font-size: 14px;
835837
line-height: 17px;
836-
color: #FFFFFF;
838+
color: var(--text-heading);
837839
}
838840

839841
.project-content-right {
@@ -844,7 +846,7 @@ img {
844846
font-weight: 500;
845847
font-size: 13px;
846848
line-height: 14px;
847-
color: #FFFFFF;
849+
color: var(--text-heading);
848850
}
849851

850852
.recent-project-list li {
@@ -896,7 +898,7 @@ img {
896898
font-weight: bold;
897899
font-size: 20px;
898900
line-height: 24px;
899-
color: #FFFFFF;
901+
color: var(--text-heading);
900902
}
901903

902904
.back-btn {
@@ -987,7 +989,7 @@ img {
987989
font-size: 14px;
988990
line-height: 17px;
989991
text-align: center;
990-
color: #FFFFFF;
992+
color: var(--text-heading);
991993
cursor: pointer;
992994
}
993995

@@ -1034,7 +1036,7 @@ img {
10341036
font-weight: 600;
10351037
font-size: 16px;
10361038
line-height: 19px;
1037-
color: #FFFFFF;
1039+
color: var(--text-heading);
10381040
}
10391041

10401042
.full-screen-btn {
@@ -1080,7 +1082,7 @@ img {
10801082
line-height: 19px;
10811083

10821084
margin-bottom: 0;
1083-
color: #FFFFFF;
1085+
color: var(--text-heading);
10841086
}
10851087

10861088
.lity-close-big {
@@ -1134,7 +1136,7 @@ img {
11341136
color: #333;
11351137
}
11361138
a:hover {
1137-
color: white;
1139+
color: var(--text-heading);
11381140
}
11391141
}
11401142
.notification-ui-hidden {
@@ -1186,7 +1188,7 @@ img {
11861188

11871189
/* Links inside the dropdown */
11881190
.dropdown-content div {
1189-
color: white;
1191+
color: var(--text-heading);
11901192
padding: 3px 5px;
11911193
text-decoration: none;
11921194
text-align: left;

0 commit comments

Comments
 (0)