Skip to content

Commit 163a01a

Browse files
authored
Merge pull request #1049 from alexstotsky/reduce-nav-width
(improvement) Adjust navigation panel
2 parents 7fdee41 + 68c2e3f commit 163a01a

3 files changed

Lines changed: 64 additions & 42 deletions

File tree

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
.app-download {
2-
padding: 24px;
2+
padding: 16px;
33

44
&--title {
55
margin: 0;
6-
font-size: 16px;
7-
max-width: 240px;
8-
margin-bottom: 6px;
6+
font-size: 14px;
7+
max-width: 200px;
8+
margin-bottom: 4px;
99
}
1010

1111
&--sub-title {
1212
margin: 0;
13-
font-size: 14px;
14-
max-width: 240px;
13+
font-size: 12px;
14+
max-width: 200px;
1515
color: var(--color2);
16-
margin-bottom: 15px;
16+
margin-bottom: 10px;
1717
}
1818

1919
&--list {
20-
padding-left: 20px;
20+
padding-left: 16px;
2121

2222
li {
23-
font-size: 14px;
23+
font-size: 12px;
2424
color: var(--color2);
25-
padding-bottom: 6px;
25+
padding-bottom: 4px;
2626
}
2727
}
2828

2929
&--btn {
30-
min-height: 40px;
31-
padding: 5px 20px;
30+
min-height: 34px;
31+
padding: 4px 10px;
32+
width: 100%;
3233

3334
.bp3-button-text {
34-
font-size: 15px;
35+
font-size: 12px;
3536
font-weight: 700;
37+
white-space: normal;
38+
line-height: 1.3;
3639
}
3740
}
3841
}

src/components/Header/_Header.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
position: relative;
1818
display: inline-flex;
1919
align-items: center;
20-
width: 283px;
20+
width: 228px;
2121
height: 100%;
2222

2323
.hamburger-menu {
@@ -27,13 +27,12 @@
2727
&-logo {
2828
display: block;
2929
position: absolute;
30-
width: 230px;
30+
width: 160px;
3131
height: 22px;
32-
margin: auto;
3332
top: 0;
34-
left: 0;
3533
bottom: 0;
36-
right: 0;
34+
left: 24px;
35+
margin: auto 0;
3736
}
3837
}
3938

@@ -90,7 +89,7 @@
9089
height: 56px;
9190

9291
&-brand {
93-
width: 347px;
92+
width: 275px;
9493

9594
&-logo, .platform-logo {
9695
width: 250px;
@@ -144,16 +143,17 @@
144143
@media screen and (max-width: 855px) {
145144
.header {
146145
&-brand {
146+
width: auto;
147147
border-right: none;
148148

149149
&-logo {
150+
position: relative;
150151
width: 175px;
151152
}
152153

153154
.hamburger-menu {
154155
display: block;
155-
margin-top: 6px;
156-
margin-left: 15px;
156+
margin: 6px 0 0 15px;
157157
}
158158
}
159159

src/ui/NavMenu/_NavMenu.scss

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.bitfinex-nav-menu {
22
display: inline-block;
3-
width: 290px;
3+
width: 235px;
44
padding: 0;
55
border-radius: 0;
66
clip-path: inset(0 -1px 0 0);
@@ -36,41 +36,60 @@
3636

3737
.bp3-menu-item {
3838
display: flex;
39+
align-items: center;
3940
width: 100%;
40-
height: 34px;
41-
line-height: 34px;
42-
padding: 0 0 0 51px;
43-
font-size: 1rem;
41+
min-height: 34px;
42+
height: auto;
43+
line-height: 1.3;
44+
padding: 6px 10px 6px 42px;
45+
font-size: 14px;
4446
border-radius: 0;
4547
color: var(--color2);
48+
white-space: normal;
49+
50+
.bp3-fill,
51+
.bp3-text-overflow-ellipsis {
52+
white-space: normal;
53+
overflow: visible;
54+
text-overflow: unset;
55+
}
4656

4757
&.reports_title {
48-
font-size: 16px;
58+
font-size: 15px;
4959
}
5060

5161
&.active,
5262
&.reports_title {
53-
height: 44px;
54-
line-height: 44px;
55-
padding: 0 0 0 20px;
63+
min-height: 40px;
64+
height: auto;
65+
line-height: 1.3;
66+
padding: 6px 10px 6px 15px;
5667
color: var(--color1);
5768
font-weight: 500;
5869
}
5970

6071
&.section_title {
61-
height: 44px;
62-
line-height: 44px;
63-
padding: 0 0 0 20px;
72+
min-height: 40px;
73+
height: auto;
74+
line-height: 1.3;
75+
padding: 0 10px 0 15px;
76+
77+
.bp3-menu-item-label {
78+
display: flex;
79+
align-items: center;
80+
}
6481
}
6582

6683
svg {
67-
height: 44px;
68-
margin-right: 14px;
84+
min-height: 34px;
85+
margin-right: 10px;
86+
flex-shrink: 0;
87+
align-self: center;
6988
}
7089

7190
div {
7291
display: inline-block;
73-
width: 218px;
92+
width: 160px;
7493
}
7594

7695
&.bp3-active {
@@ -108,7 +127,7 @@
108127
}
109128

110129
.bp3-fill {
111-
width: 200px;
130+
width: 160px;
112131
}
113132
}
114133

@@ -139,20 +158,20 @@
139158

140159
@media screen and (min-width: 2560px) {
141160
.bitfinex-nav-menu {
142-
width: 346px;
161+
width: 275px;
143162

144163
.bp3-menu {
145164
&-item {
146-
height: 52px;
147-
line-height: 52px;
165+
min-height: 52px;
166+
height: auto;
148167

149168
svg {
150169
width: 28px;
151-
height: 52px;
170+
min-height: 52px;
152171
}
153172

154173
div {
155-
width: 278px;
174+
width: 200px;
156175
}
157176
}
158177
}

0 commit comments

Comments
 (0)