|
1 | 1 | .overlay { |
2 | | - position: fixed; |
3 | | - top: 0; |
| 2 | + background-color: rgba(0, 0, 0, 0.3); |
4 | 3 | left: 0; |
5 | | - width: 100%; |
6 | 4 | height: 100%; |
7 | | - background-color: rgba(0, 0, 0, 0.3); |
8 | | - z-index: -1; |
9 | 5 | opacity: 0; |
| 6 | + position: fixed; |
| 7 | + top: 0; |
10 | 8 | transition: opacity ease 0.2s; |
| 9 | + width: 100%; |
| 10 | + z-index: -1; |
11 | 11 | } |
12 | 12 |
|
13 | 13 | .close { |
14 | | - height: 24px; |
15 | | - width: 24px; |
16 | 14 | display: flex; |
| 15 | + height: 24px; |
17 | 16 | padding: 4px; |
| 17 | + width: 24px; |
18 | 18 | } |
19 | 19 |
|
20 | 20 | .close img { |
21 | | - width: 20px; |
22 | 21 | height: 20px; |
23 | 22 | margin-left: calc(var(--space-quarter) / 2); |
| 23 | + width: 20px; |
24 | 24 | } |
25 | 25 |
|
26 | 26 | .wrapper { |
27 | 27 | position: relative; |
28 | 28 | } |
29 | 29 |
|
30 | 30 | .guide { |
31 | | - margin-right: calc(var(--guide-width) * -1); |
| 31 | + background-color: var(--color-lightblue); |
| 32 | + color: white; |
32 | 33 | height: 100vh; |
33 | 34 | /* 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); |
38 | 37 | overflow-y: auto; |
39 | 38 | transition: margin-right 0.2s ease, transform 0.2s ease; |
| 39 | + width: var(--guide-width); |
40 | 40 | will-change: margin-right, transform; |
41 | 41 | } |
42 | 42 |
|
43 | 43 | .header { |
44 | | - margin-bottom: var(--space-default); |
| 44 | + background-color: var(--color-blue); |
45 | 45 | height: var(--header-height); |
| 46 | + margin-bottom: var(--space-default); |
46 | 47 | padding: 0 var(--space-default); |
47 | | - background-color: var(--color-blue); |
48 | 48 | } |
49 | 49 |
|
50 | 50 | .header h2 { |
51 | | - margin: 0; |
52 | 51 | font-size: var(--header-default-font-size); |
53 | 52 | font-weight: 400; |
| 53 | + margin: 0; |
54 | 54 | } |
55 | 55 |
|
56 | 56 | .header a { |
|
63 | 63 | } |
64 | 64 |
|
65 | 65 | .content h1 { |
66 | | - margin-top: 0px; |
67 | 66 | font-size: 1.5em; |
| 67 | + margin-top: 0px; |
68 | 68 | } |
69 | 69 |
|
70 | 70 | .content h2 { |
71 | | - margin: 0px; |
72 | 71 | font-size: 1.1em; |
73 | | - line-height: 1.2em; |
74 | 72 | font-weight: 400; |
| 73 | + line-height: 1.2em; |
| 74 | + margin: 0px; |
75 | 75 | } |
76 | 76 |
|
77 | 77 | .guide p { |
78 | | - margin: 0.4em 0; |
79 | 78 | font-size: var(--size-default); |
| 79 | + margin: 0.4em 0; |
80 | 80 | } |
81 | 81 |
|
82 | 82 | .show { |
|
88 | 88 | } |
89 | 89 |
|
90 | 90 | .entryTitle { |
| 91 | + align-items: flex-start; |
| 92 | + cursor: default; |
91 | 93 | display: flex; |
92 | 94 | flex-direction: row; |
93 | 95 | justify-content: flex-start; |
94 | | - align-items: flex-start; |
95 | | - cursor: default; |
96 | 96 | } |
97 | 97 |
|
98 | 98 | .entryTitle .entryToggle { |
99 | | - width: 16px; |
100 | | - line-height: 1.2em; |
| 99 | + align-items: center; |
101 | 100 | display: flex; |
102 | 101 | flex-direction: row; |
103 | | - justify-content: flex-start; |
104 | | - align-items: center; |
105 | 102 | font-weight: bold; |
| 103 | + justify-content: flex-start; |
| 104 | + line-height: 1.2em; |
| 105 | + width: 16px; |
106 | 106 | } |
107 | 107 |
|
108 | 108 | .entryTitle .entryTitleText { |
109 | 109 | flex: 1; |
110 | 110 | } |
111 | 111 |
|
112 | 112 | .entryContent { |
| 113 | + align-items: flex-start; |
113 | 114 | display: flex; |
114 | 115 | flex-direction: row; |
115 | 116 | justify-content: flex-start; |
116 | | - align-items: flex-start; |
117 | 117 | padding-left: 16px; |
118 | 118 | } |
119 | 119 |
|
|
142 | 142 | } |
143 | 143 |
|
144 | 144 | .guide { |
145 | | - position: fixed; |
146 | 145 | margin-right: 0; |
147 | | - top: 0; |
148 | | - right: 0; |
149 | | - width: 100%; |
150 | 146 | max-width: 460px; |
151 | 147 | opacity: 0; |
152 | | - z-index: -10; |
| 148 | + position: fixed; |
| 149 | + right: 0; |
| 150 | + top: 0; |
153 | 151 | transform: translateX(100%); |
154 | 152 | transition-delay: 0.2s; |
| 153 | + width: 100%; |
| 154 | + z-index: -10; |
155 | 155 | } |
156 | 156 |
|
157 | 157 | .show { |
|
167 | 167 | @media (max-width: 768px) { |
168 | 168 | .guideWrapper { |
169 | 169 | position: fixed; |
170 | | - top: 0; |
171 | 170 | right: 0; |
| 171 | + top: 0; |
172 | 172 | width: calc(var(--space-half) + 18px); |
173 | 173 | } |
174 | 174 |
|
|
0 commit comments