Skip to content

Commit 66e251b

Browse files
authored
Merge pull request #2 from OptimaiNetwork/ui
Imrove UI
2 parents fcce547 + 44ac446 commit 66e251b

19 files changed

Lines changed: 81 additions & 28 deletions

File tree

src/pages/index.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737

3838
.heroTitle {
3939
font-size: 3rem;
40-
font-weight: 700;
40+
font-weight: 600;
4141
color: white;
4242
margin-bottom: 0.5rem;
4343
}
4444

4545
.heroSubtitle {
4646
font-size: 1.75rem;
47-
font-weight: 500;
47+
font-weight: 400;
4848
color: #a6e22e;
4949
margin-bottom: 1rem;
5050
}
@@ -68,7 +68,7 @@
6868
padding: 0.8rem 2rem;
6969
border-radius: 12px;
7070
font-size: 1rem;
71-
font-weight: bold;
71+
font-weight: 600;
7272
text-transform: uppercase;
7373
text-decoration: none;
7474
transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;

src/styles/admonition.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
overflow: hidden;
1010
color: rgba(white, 0.8);
1111
--border-color: rgba(255, 255, 255, 0.3);
12+
--ifm-heading-line-height: 1.63;
1213

1314
&::before {
1415
content: '';

src/styles/footer.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.footer {
55
background-color: $background;
66
padding: 2.4rem 2rem;
7+
position: relative;
78

89
@include xl {
910
padding: 3.2rem 4rem;
@@ -56,7 +57,7 @@
5657
font-size: 1.6rem;
5758
line-height: 1.5;
5859
color: white;
59-
font-weight: 700;
60+
font-weight: 600;
6061

6162
@include xl {
6263
font-size: 1.8rem;
@@ -72,7 +73,7 @@
7273
.footer__link-item {
7374
font-size: 1.6rem;
7475
line-height: 1.5;
75-
font-weight: 500;
76+
font-weight: 400;
7677
width: 100%;
7778
display: flex;
7879
align-items: center;
@@ -91,7 +92,7 @@
9192
.footer__copyright {
9293
font-size: 1.4rem;
9394
line-height: 1.5;
94-
font-weight: 500;
95+
font-weight: 400;
9596
color: white;
9697
opacity: 0.5;
9798

src/styles/markdown.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
@use '@site/src/styles/common/media.scss' as *;
33

44
.markdown {
5-
--ifm-heading-line-height: 1.5;
5+
--ifm-heading-line-height: 2;
66
--ifm-leading-desktop: 1.5;
77
color: rgba(white, 0.8);
8+
line-height: var(--ifm-heading-line-height);
89

910
h1,
1011
h2,
1112
h3,
1213
h4,
1314
h5 {
1415
color: white;
16+
line-height: 1.5;
1517
}
1618

1719
h1 {
@@ -34,7 +36,13 @@
3436
}
3537

3638
li + li {
37-
margin-top: 0.4rem;
39+
margin-top: 0.6rem;
40+
}
41+
42+
li {
43+
ul {
44+
margin-top: 0.4rem;
45+
}
3846
}
3947

4048
p:has(+ h2) {

src/styles/nav.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
color: black;
5555
font-size: 1.6rem;
5656
line-height: 2rem;
57-
font-weight: 600;
57+
font-weight: 500;
5858
border-radius: 0.8rem;
5959
display: flex;
6060
align-items: center;
@@ -116,7 +116,7 @@
116116
.DocSearch-Button-Placeholder {
117117
font-size: 1.6rem;
118118
line-height: 1.63;
119-
font-weight: 500;
119+
font-weight: 400;
120120
color: $muted-background;
121121
}
122122

src/styles/pagination.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
span {
4242
font-size: 1.4rem;
43-
font-weight: 500;
43+
font-weight: 400;
4444
line-height: 1.5;
4545
}
4646

@@ -62,7 +62,7 @@
6262

6363
span {
6464
font-size: 1.6rem;
65-
font-weight: 600;
65+
font-weight: 500;
6666
line-height: 1.5;
6767
}
6868

src/styles/search-modal.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
.DocSearch-Input {
4444
font-size: 1.6rem;
4545
line-height: 1.63;
46-
font-weight: 500;
46+
font-weight: 400;
4747
color: white;
4848

4949
&::placeholder {
@@ -112,7 +112,7 @@
112112
.DocSearch-HitsFooter {
113113
a {
114114
border: none;
115-
font-weight: 600;
115+
font-weight: 500;
116116
font-size: 1.6rem;
117117
line-height: 150%;
118118
}

src/styles/search-page.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.searchQueryInput_u2C7 {
66
font-size: 1.6rem;
77
line-height: 1.63;
8-
font-weight: 500;
8+
font-weight: 400;
99
color: white;
1010
height: 4.4rem;
1111
background-color: rgba($accent, 0.8);

src/styles/sidebar.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
.menu__link {
3939
font-size: 1.6rem;
4040
line-height: 1.5;
41-
font-weight: 500;
41+
font-weight: 400;
4242
color: white !important;
4343
}
4444

@@ -79,7 +79,22 @@
7979
}
8080

8181
.menu__list {
82+
position: relative;
8283
padding-left: 2.4rem;
84+
margin: 0;
85+
86+
&::before {
87+
content: '';
88+
position: absolute;
89+
display: block;
90+
width: 1px;
91+
height: 100%;
92+
top: 0;
93+
left: 2.4rem;
94+
transform: translateX(-100%);
95+
background-color: rgba(white, 0.2);
96+
}
97+
8398
.menu__link {
8499
border: none;
85100
background-color: transparent;

src/styles/toc.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
&::before {
2121
content: '';
2222
position: absolute;
23-
top: 0.6rem;
23+
top: 1.1rem;
2424
left: 0;
2525
width: 0.4rem;
2626
height: 1.2rem;
27+
transform: translateY(-50%);
2728
background: #f6f655;
2829
border-radius: 0.4rem;
2930
opacity: 0;
@@ -38,9 +39,9 @@
3839
}
3940

4041
a {
41-
font-size: 1.6rem;
42+
font-size: 1.4rem;
4243
font-weight: normal;
43-
line-height: normal;
44+
line-height: 1.5;
4445
color: white;
4546
opacity: 0.5;
4647
transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;

0 commit comments

Comments
 (0)