Skip to content

Commit 5e2b308

Browse files
committed
Improve the UI design
- Optimize the text color in light mode - Stop iOS Safari input field zooming - Uniform font size for posts
1 parent 6dac22d commit 5e2b308

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

_sass/addon/commons.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ footer {
357357
}
358358

359359
.post-content {
360+
font-size: 1.08rem;
360361
line-height: 1.8;
361362
margin-top: 2rem;
362363
overflow-wrap: break-word;
@@ -424,8 +425,6 @@ footer {
424425

425426
p {
426427
@include img(true);
427-
428-
font-size: 1.08rem;
429428
}
430429

431430
ul {
@@ -905,7 +904,6 @@ $sidebar-display: "sidebar-display";
905904
border-radius: 0;
906905
padding: 0.18rem 0.3rem;
907906
color: var(--text-color);
908-
font-size: 95%;
909907

910908
&:focus {
911909
box-shadow: none;
@@ -1430,7 +1428,7 @@ $sidebar-display: "sidebar-display";
14301428
}
14311429
}
14321430

1433-
.post-content p {
1431+
.post-content {
14341432
font-size: 1.03rem;
14351433
}
14361434

_sass/colors/light-syntax.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
/* --- custom light colors --- */
7070
--highlight-bg-color: #f7f7f7;
71-
--highlighter-rouge-color: #505050;
71+
--highlighter-rouge-color: #2f2f2f;
7272
--highlight-lineno-color: #c2c6cc;
7373
--highlight-lineno-border-color: #e9ecef;
7474
--inline-code-bg: #f3f3f3;

_sass/colors/light-typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--main-wrapper-bg: white;
1010
--main-border-color: #f3f3f3;
1111
--btn-border-color: #e9ecef;
12-
--text-color: #4a4a4a;
12+
--text-color: #34343c;
1313
--heading-color: black;
1414
--blockquote-border-color: #eee;
1515
--blockquote-text-color: #9a9a9a;

0 commit comments

Comments
 (0)