Skip to content

Commit e92c10d

Browse files
committed
Merge branch 'frontend-collapse-header-icons-on-mobile-account-page'
2 parents 88ca203 + 93ff5e4 commit e92c10d

File tree

2 files changed

+73
-73
lines changed

2 files changed

+73
-73
lines changed

frontends/web/src/components/hideamountsbutton/hideamountsbutton.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.button {
2+
border-width: 0;
23
display: flex;
4+
padding: 0;
35
}
46

57
.button img {
Lines changed: 71 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
.children {
2+
display: flex;
3+
gap: var(--space-half);
4+
flex-direction: row;
5+
align-items: center;
6+
margin-bottom: var(--space-quarter);
7+
}
8+
9+
.children > a {
10+
display: inline-block;
11+
height: 18px;
12+
font-size: var(--size-default);
13+
text-decoration: none;
14+
font-weight: 400;
15+
}
16+
17+
.children > a > svg {
18+
width: 18px;
19+
height: 18px;
20+
stroke-width: 2;
21+
}
22+
123
.container {
224
width: 100%;
325
}
@@ -10,37 +32,45 @@
1032
z-index: 1001;
1133
}
1234

13-
.header {
14-
padding: 0 var(--space-default);
15-
max-width: var(--content-width);
16-
height: var(--header-height);
17-
width: 100%;
18-
display: flex;
19-
flex-direction: row;
20-
justify-content: space-between;
21-
align-items: center;
22-
flex: none;
23-
margin: 0 auto;
35+
.disabled {
36+
opacity: 0.4;
2437
}
2538

26-
.children {
39+
.forceHidden .sidebarToggler {
40+
display: none !important;
41+
}
42+
43+
.guideIcon {
44+
font-size: var(--size-default);
45+
text-decoration: none;
2746
display: flex;
2847
flex-direction: row;
2948
align-items: center;
3049
}
3150

32-
.children > a {
33-
display: inline-block;
51+
.guideIcon img {
52+
width: 18px;
3453
height: 18px;
35-
font-size: var(--size-default);
36-
text-decoration: none;
37-
font-weight: 400;
54+
color: var(--color-blue);
55+
margin-right: calc(var(--space-quarter) / 2);
3856
}
3957

40-
.children > a > svg {
41-
width: 18px;
58+
.guideIconContainer {
4259
height: 18px;
43-
stroke-width: 2;
60+
}
61+
62+
.header {
63+
padding: 0 var(--space-default);
64+
max-width: var(--content-width);
65+
min-height: var(--header-height);
66+
width: 100%;
67+
display: flex;
68+
flex-direction: row;
69+
justify-content: space-between;
70+
align-items: center;
71+
flex: none;
72+
margin: 0 auto;
73+
flex-wrap: wrap;
4474
}
4575

4676
.header.narrow > *:nth-child(2) {
@@ -52,24 +82,10 @@
5282
width: 100%;
5383
}
5484

55-
.title {
56-
white-space: nowrap;
57-
flex: 1;
58-
}
59-
60-
.title > * {
61-
margin: 0;
62-
font-size: var(--header-default-font-size);
63-
font-weight: 400;
64-
line-height: 1;
65-
display: inline-flex;
66-
align-items: center;
67-
user-select: none;
68-
}
69-
7085
.sidebarToggler {
7186
width: 32px;
7287
height: 32px;
88+
margin-bottom: var(--space-quarter);
7389
margin-right: var(--spacing-default);
7490
display: flex;
7591
flex-direction: row;
@@ -80,56 +96,38 @@
8096
width: 20px;
8197
}
8298

83-
.forceHidden .sidebarToggler {
84-
display: none !important;
85-
}
86-
87-
.guideIconContainer {
88-
margin-left: var(--space-half);
89-
height: 18px;
99+
.title {
100+
white-space: nowrap;
101+
flex-grow: 1;
102+
margin-bottom: var(--space-quarter);
103+
padding-right: var(--space-half);
90104
}
91105

92-
.guideIcon {
93-
font-size: var(--size-default);
94-
text-decoration: none;
95-
display: flex;
96-
flex-direction: row;
106+
.title > * {
107+
margin: 0;
108+
font-size: var(--header-default-font-size);
109+
font-weight: 400;
110+
line-height: 1;
111+
display: inline-flex;
97112
align-items: center;
98-
}
99-
100-
.guideIcon img {
101-
width: 18px;
102-
height: 18px;
103-
color: var(--color-blue);
104-
margin-right: calc(var(--space-quarter) / 2);
105-
}
106-
107-
.disabled {
108-
opacity: 0.4;
109-
}
110-
111-
@media (min-width: 1200px) {
112-
.sidebarToggler {
113-
display: none;
114-
}
113+
user-select: none;
115114
}
116115

117116
@media (max-width: 768px) {
118-
117+
.header {
118+
padding: var(--space-half);
119+
}
119120
.sidebarToggler.hideSidebarToggler {
120121
display: none;
121122
}
122123

123-
.container .header {
124-
padding: 0 var(--space-half);
125-
}
126-
127124
.container .sidebarToggler {
128125
margin-right: 0;
129126
}
127+
}
130128

131-
.children > a,
132-
.guideIcon {
133-
font-size: var(--size-small);
129+
@media (min-width: 1200px) {
130+
.sidebarToggler {
131+
display: none;
134132
}
135-
}
133+
}

0 commit comments

Comments
 (0)