Skip to content

Commit 8b52298

Browse files
committed
Merge branch 'frontend-fix-guide-height'
2 parents 23e06b1 + f12aa09 commit 8b52298

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
.overlay {
2-
position: fixed;
3-
top: 0;
2+
background-color: rgba(0, 0, 0, 0.3);
43
left: 0;
5-
width: 100%;
64
height: 100%;
7-
background-color: rgba(0, 0, 0, 0.3);
8-
z-index: -1;
95
opacity: 0;
6+
position: fixed;
7+
top: 0;
108
transition: opacity ease 0.2s;
9+
width: 100%;
10+
z-index: -1;
1111
}
1212

1313
.close {
14-
height: 24px;
15-
width: 24px;
1614
display: flex;
15+
height: 24px;
1716
padding: 4px;
17+
width: 24px;
1818
}
1919

2020
.close img {
21-
width: 20px;
2221
height: 20px;
2322
margin-left: calc(var(--space-quarter) / 2);
23+
width: 20px;
2424
}
2525

2626
.wrapper {
2727
position: relative;
2828
}
2929

3030
.guide {
31-
margin-right: calc(var(--guide-width) * -1);
31+
background-color: var(--color-lightblue);
32+
color: white;
3233
height: 100vh;
3334
/* mobile viewport bug fix */
34-
height: -webkit-fill-available;
35-
width: var(--guide-width);
36-
color: white;
37-
background-color: var(--color-lightblue);
35+
max-height: -webkit-fill-available;
36+
margin-right: calc(var(--guide-width) * -1);
3837
overflow-y: auto;
3938
transition: margin-right 0.2s ease, transform 0.2s ease;
39+
width: var(--guide-width);
4040
will-change: margin-right, transform;
4141
}
4242

4343
.header {
44-
margin-bottom: var(--space-default);
44+
background-color: var(--color-blue);
4545
height: var(--header-height);
46+
margin-bottom: var(--space-default);
4647
padding: 0 var(--space-default);
47-
background-color: var(--color-blue);
4848
}
4949

5050
.header h2 {
51-
margin: 0;
5251
font-size: var(--header-default-font-size);
5352
font-weight: 400;
53+
margin: 0;
5454
}
5555

5656
.header a {
@@ -63,20 +63,20 @@
6363
}
6464

6565
.content h1 {
66-
margin-top: 0px;
6766
font-size: 1.5em;
67+
margin-top: 0px;
6868
}
6969

7070
.content h2 {
71-
margin: 0px;
7271
font-size: 1.1em;
73-
line-height: 1.2em;
7472
font-weight: 400;
73+
line-height: 1.2em;
74+
margin: 0px;
7575
}
7676

7777
.guide p {
78-
margin: 0.4em 0;
7978
font-size: var(--size-default);
79+
margin: 0.4em 0;
8080
}
8181

8282
.show {
@@ -88,32 +88,32 @@
8888
}
8989

9090
.entryTitle {
91+
align-items: flex-start;
92+
cursor: default;
9193
display: flex;
9294
flex-direction: row;
9395
justify-content: flex-start;
94-
align-items: flex-start;
95-
cursor: default;
9696
}
9797

9898
.entryTitle .entryToggle {
99-
width: 16px;
100-
line-height: 1.2em;
99+
align-items: center;
101100
display: flex;
102101
flex-direction: row;
103-
justify-content: flex-start;
104-
align-items: center;
105102
font-weight: bold;
103+
justify-content: flex-start;
104+
line-height: 1.2em;
105+
width: 16px;
106106
}
107107

108108
.entryTitle .entryTitleText {
109109
flex: 1;
110110
}
111111

112112
.entryContent {
113+
align-items: flex-start;
113114
display: flex;
114115
flex-direction: row;
115116
justify-content: flex-start;
116-
align-items: flex-start;
117117
padding-left: 16px;
118118
}
119119

@@ -142,16 +142,16 @@
142142
}
143143

144144
.guide {
145-
position: fixed;
146145
margin-right: 0;
147-
top: 0;
148-
right: 0;
149-
width: 100%;
150146
max-width: 460px;
151147
opacity: 0;
152-
z-index: -10;
148+
position: fixed;
149+
right: 0;
150+
top: 0;
153151
transform: translateX(100%);
154152
transition-delay: 0.2s;
153+
width: 100%;
154+
z-index: -10;
155155
}
156156

157157
.show {
@@ -167,8 +167,8 @@
167167
@media (max-width: 768px) {
168168
.guideWrapper {
169169
position: fixed;
170-
top: 0;
171170
right: 0;
171+
top: 0;
172172
width: calc(var(--space-half) + 18px);
173173
}
174174

0 commit comments

Comments
 (0)