|
1 |
| -/* Code blocks */ |
2 |
| - |
3 |
| -.page-cheatmd pre code { |
4 |
| - /* -ms-overflow-style: none; |
5 |
| - scrollbar-width: none; */ |
6 |
| - padding: 1.5em 2em; |
7 |
| -} |
8 |
| - |
9 |
| -/* .page-cheatmd pre code:hover { |
10 |
| - -ms-overflow-style: auto; |
11 |
| - scrollbar-width: auto; |
12 |
| -} */ |
| 1 | +/* h1 styling */ |
13 | 2 |
|
14 |
| -/* .page-cheatmd pre code::-webkit-scrollbar { |
15 |
| - display: none; |
16 |
| -} |
17 |
| -
|
18 |
| -.page-cheatmd pre code:hover::-webkit-scrollbar { |
19 |
| - display: block; |
20 |
| -} */ |
21 |
| - |
22 |
| -.page-cheatmd pre { |
23 |
| - margin: 0; |
24 |
| -} |
25 |
| - |
26 |
| -.content-inner pre code::-webkit-scrollbar { |
27 |
| - width: 0.4rem; |
28 |
| - height: 0.3rem; |
| 3 | +.page-cheatmd h1 { |
| 4 | + margin-bottom: 1em; |
29 | 5 | }
|
30 | 6 |
|
31 | 7 | /* h2 styling */
|
32 | 8 |
|
33 | 9 | .page-cheatmd h2 {
|
34 |
| - margin: 1em 0 1em 0; |
| 10 | + margin: 1em 0; |
35 | 11 | column-span: all;
|
36 | 12 | padding-left: 3px;
|
37 |
| - color: var(--gray600); |
| 13 | + color: var(--gray700); |
38 | 14 | font-weight: 500;
|
39 |
| - font-size: 2rem; |
40 | 15 | }
|
41 | 16 |
|
42 | 17 | .page-cheatmd.dark h2 {
|
|
54 | 29 | font-weight: 400;
|
55 | 30 | }
|
56 | 31 |
|
57 |
| -.page-cheatmd .h3 { |
| 32 | +.page-cheatmd section.h3 { |
58 | 33 | min-width: 300px;
|
59 | 34 | margin: 0 0 2em 0;
|
| 35 | + break-inside: avoid; |
60 | 36 | -webkit-column-break-inside: avoid;
|
61 | 37 | }
|
62 | 38 |
|
|
80 | 56 | display: block;
|
81 | 57 | margin: 0;
|
82 | 58 | margin-bottom: -1px;
|
83 |
| - padding: 0.25em 2em; |
| 59 | + padding: 0.25em 1.5em; |
84 | 60 | font-weight: 400;
|
85 | 61 | background: var(--gray100);
|
86 | 62 | color: #567;
|
|
94 | 70 | border-bottom: 0;
|
95 | 71 | }
|
96 | 72 |
|
97 |
| -/* Columns */ |
98 |
| - |
99 |
| -.full-page { |
100 |
| - display: block; |
101 |
| - width: 100%; |
102 |
| -} |
103 |
| - |
104 |
| -.full-page > section > table { |
105 |
| - width: 100%; |
106 |
| -} |
| 73 | +/* Paragraphs */ |
107 | 74 |
|
108 |
| -.page-cheatmd section.width-50 { |
| 75 | +.page-cheatmd .h2 p { |
| 76 | + margin: 0; |
109 | 77 | display: block;
|
110 |
| - width: 50%; |
111 |
| - margin: 0; |
112 |
| -} |
113 |
| - |
114 |
| -.width-50 > section > table { |
115 |
| - width: 100%; |
116 |
| -} |
117 |
| - |
118 |
| -.col-2 { |
119 |
| - column-count: 2; |
120 |
| - column-gap: 40px; |
121 |
| - height: auto; |
122 |
| -} |
123 |
| - |
124 |
| -.col-2-left { |
125 |
| - display: grid; |
126 |
| - grid-template-columns: 33% 63.2%; |
127 |
| - column-gap: 40px; |
| 78 | + background: var(--gray50); |
| 79 | + padding: 1.5em; |
128 | 80 | }
|
129 | 81 |
|
130 |
| -.col-2-left > h2 { |
131 |
| - display: block; |
132 |
| - grid-column-end: span 2; |
| 82 | +.page-cheatmd.dark .h2 p { |
| 83 | + background: var(--gray700); |
133 | 84 | }
|
134 | 85 |
|
135 |
| -.col-3 { |
136 |
| - column-count: 3; |
137 |
| - column-gap: 40px; |
138 |
| - height: auto; |
| 86 | +.page-cheatmd .h2 p > code { |
| 87 | + color: #eb5757; |
| 88 | + border-radius: 3px; |
| 89 | + padding: 0.2em 0.4em; |
139 | 90 | }
|
140 | 91 |
|
141 |
| -/* paragraphs */ |
142 |
| - |
143 |
| -.page-cheatmd .h2 .h3 p { |
144 |
| - display: block; |
145 |
| - background: var(--gray50); |
146 |
| - padding: 1.5em 1em; |
147 |
| - padding-left: 2em; |
148 |
| -} |
| 92 | +/* Code blocks */ |
149 | 93 |
|
150 |
| -.page-cheatmd.dark .h2 .h3 p { |
151 |
| - background: var(--gray700); |
| 94 | +.page-cheatmd .h2 pre code { |
| 95 | + padding: 1em 1.5em; |
152 | 96 | }
|
153 | 97 |
|
154 |
| -.page-cheatmd .h2, |
155 |
| -.h3 { |
| 98 | +.page-cheatmd .h2 pre { |
156 | 99 | margin: 0;
|
157 | 100 | }
|
158 | 101 |
|
159 |
| -.page-cheatmd p { |
160 |
| - margin: 0; |
| 102 | +.page-cheatmd .h2 pre code::-webkit-scrollbar { |
| 103 | + width: 0.4rem; |
| 104 | + height: 0.3rem; |
161 | 105 | }
|
162 | 106 |
|
163 |
| -.page-cheatmd p > code { |
164 |
| - color: #eb5757; |
165 |
| - border-radius: 3px; |
166 |
| - padding: 0.2em 0.4em; |
| 107 | +.page-cheatmd pre.wrap { |
| 108 | + white-space: break-spaces; |
167 | 109 | }
|
168 | 110 |
|
169 | 111 | /* Tables */
|
170 | 112 |
|
171 |
| -.page-cheatmd table { |
| 113 | +.page-cheatmd .h2 table { |
172 | 114 | display: table;
|
173 | 115 | box-sizing: border-box;
|
174 | 116 | width: 100%;
|
175 | 117 | border-collapse: collapse;
|
176 | 118 | margin: 0;
|
177 | 119 | }
|
178 | 120 |
|
179 |
| -.page-cheatmd table th { |
180 |
| - padding: 0.75em 2em; |
| 121 | +.page-cheatmd .h2 table th { |
| 122 | + padding: 0.75em 1.5em; |
181 | 123 | line-height: 2em;
|
182 | 124 | margin-bottom: -1px;
|
183 | 125 | vertical-align: middle;
|
184 | 126 | border-bottom: 1px solid var(--codeBorder);
|
185 | 127 | }
|
186 | 128 |
|
187 |
| -.page-cheatmd table td { |
188 |
| - padding: 0.75em 2em; |
| 129 | +.page-cheatmd .h2 table td { |
| 130 | + padding: 0.75em 1.5em; |
189 | 131 | border: 0;
|
190 | 132 | border-bottom: 1px solid var(--codeBorder);
|
191 | 133 | }
|
192 | 134 |
|
193 |
| -.page-cheatmd table tr:first-child { |
| 135 | +.page-cheatmd .h2 table tr:first-child { |
194 | 136 | border-top: 1px solid var(--codeBorder);
|
195 | 137 | }
|
196 | 138 |
|
197 |
| -.page-cheatmd table td code { |
| 139 | +.page-cheatmd .h2 table td code { |
198 | 140 | color: #eb5757;
|
199 | 141 | border-radius: 3px;
|
200 | 142 | padding: 0.2em 0.4em;
|
201 | 143 | }
|
202 | 144 |
|
203 |
| -.page-cheatmd thead { |
| 145 | +.page-cheatmd .h2 thead { |
204 | 146 | background-color: var(--gray50);
|
205 | 147 | }
|
206 | 148 |
|
207 |
| -.page-cheatmd.dark thead { |
| 149 | +.page-cheatmd.dark .h2 thead { |
208 | 150 | background-color: var(--gray700);
|
209 | 151 | }
|
210 | 152 |
|
211 |
| -.page-cheatmd tbody { |
| 153 | +.page-cheatmd .h2 tbody { |
212 | 154 | background-color: var(--codeBackground);
|
213 | 155 | }
|
214 | 156 |
|
215 | 157 | /* Lists */
|
216 |
| -.page-cheatmd .h3 ul, |
217 |
| -ol { |
| 158 | +.page-cheatmd .h2 ul, |
| 159 | +.page-cheatmd .h2 ol { |
218 | 160 | margin: 0;
|
219 | 161 | padding: 0;
|
220 | 162 | }
|
221 | 163 |
|
222 |
| -.page-cheatmd .h3 li { |
| 164 | +.page-cheatmd .h2 li { |
223 | 165 | list-style-position: inside;
|
224 |
| - padding: 0.5em; |
225 |
| - padding-left: 2em; |
| 166 | + padding: 0.5em 1.5em; |
226 | 167 | line-height: 2em;
|
227 | 168 | vertical-align: middle;
|
228 | 169 | background-color: var(--codeBackground);
|
229 | 170 | border-bottom: 1px solid var(--codeBorder);
|
230 | 171 | }
|
231 | 172 |
|
232 |
| -.page-cheatmd .h3 li > code { |
| 173 | +.page-cheatmd .h2 li > code { |
233 | 174 | color: #eb5757;
|
234 | 175 | border-radius: 3px;
|
235 | 176 | padding: 0.2em 0.4em;
|
236 | 177 | }
|
237 | 178 |
|
238 |
| -/* List Columns*/ |
| 179 | +/* Columns */ |
| 180 | + |
| 181 | +.page-cheatmd section.full-page { |
| 182 | + display: block; |
| 183 | + width: 100%; |
| 184 | +} |
| 185 | + |
| 186 | +.page-cheatmd section.full-page > section > table { |
| 187 | + width: 100%; |
| 188 | +} |
| 189 | + |
| 190 | +.page-cheatmd section.width-50 { |
| 191 | + display: block; |
| 192 | + width: 50%; |
| 193 | + margin: 0; |
| 194 | +} |
| 195 | + |
| 196 | +.page-cheatmd section.width-50 > section > table { |
| 197 | + width: 100%; |
| 198 | +} |
| 199 | + |
| 200 | +.page-cheatmd section.col-2 { |
| 201 | + column-count: 2; |
| 202 | + column-gap: 40px; |
| 203 | + height: auto; |
| 204 | +} |
239 | 205 |
|
240 |
| -.col-4 > ul { |
| 206 | +.page-cheatmd section.col-2-left { |
| 207 | + display: grid; |
| 208 | + grid-template-columns: 33% 63.2%; |
| 209 | + column-gap: 40px; |
| 210 | +} |
| 211 | + |
| 212 | +.page-cheatmd section.col-2-left > h2 { |
| 213 | + display: block; |
| 214 | + grid-column-end: span 2; |
| 215 | +} |
| 216 | + |
| 217 | +.page-cheatmd section.col-3 { |
| 218 | + column-count: 3; |
| 219 | + column-gap: 40px; |
| 220 | + height: auto; |
| 221 | +} |
| 222 | + |
| 223 | +.page-cheatmd section.col-4 > ul { |
241 | 224 | display: flex;
|
242 | 225 | flex-wrap: wrap;
|
243 | 226 | }
|
244 | 227 |
|
245 |
| -.col-4 > ul > li { |
| 228 | +.page-cheatmd section.col-4 > ul > li { |
246 | 229 | flex: 0 0 25%;
|
247 | 230 | }
|
248 | 231 |
|
249 |
| -.col-6 > ul { |
| 232 | +.page-cheatmd section.col-6 > ul { |
250 | 233 | display: flex;
|
251 | 234 | flex-wrap: wrap;
|
252 | 235 | }
|
253 | 236 |
|
254 |
| -.col-6 > ul > li { |
| 237 | +.page-cheatmd section.col-6 > ul > li { |
255 | 238 | flex: 0 0 16.6667%;
|
256 | 239 | }
|
257 | 240 |
|
258 |
| -/* Wrap */ |
259 |
| - |
260 |
| -.page-cheatmd pre.wrap { |
261 |
| - white-space: normal; |
262 |
| -} |
263 |
| - |
264 |
| -/* media query */ |
| 241 | +/* Media query */ |
265 | 242 |
|
266 | 243 | @media (max-width: 1080px) {
|
267 |
| - .col-3 { |
| 244 | + .page-cheatmd section.col-3 { |
268 | 245 | column-count: 2;
|
269 | 246 | column-gap: 40px;
|
270 | 247 | }
|
271 | 248 | }
|
272 | 249 |
|
273 | 250 | @media (max-width: 850px) {
|
274 |
| - .col-2-left { |
| 251 | + .page-cheatmd section.col-2-left { |
275 | 252 | display: block;
|
276 | 253 | column-count: 1;
|
277 | 254 | }
|
278 | 255 |
|
279 |
| - .col-6 > ul > li { |
| 256 | + .page-cheatmd section.col-6 > ul > li { |
280 | 257 | flex: 0 0 25%;
|
281 | 258 | }
|
282 | 259 | }
|
283 | 260 |
|
284 | 261 | @media (max-width: 768px) {
|
285 |
| - .col-4 > ul > li { |
| 262 | + .page-cheatmd section.col-4 > ul > li { |
286 | 263 | flex: 0 0 33%;
|
287 | 264 | }
|
288 | 265 |
|
289 |
| - .col-6 > ul > li { |
| 266 | + .page-cheatmd section.col-6 > ul > li { |
290 | 267 | flex: 0 0 33%;
|
291 | 268 | }
|
292 | 269 | }
|
293 | 270 |
|
294 | 271 | @media (max-width: 680px) {
|
295 |
| - .col-3 { |
| 272 | + .page-cheatmd section.col-3 { |
296 | 273 | column-count: 1;
|
297 | 274 | }
|
298 | 275 |
|
299 |
| - .col-2 { |
| 276 | + .page-cheatmd section.col-2 { |
300 | 277 | column-count: 1;
|
301 | 278 | }
|
302 | 279 | }
|
303 | 280 |
|
304 | 281 | @media (max-width: 480px) {
|
305 |
| - .col-4 > ul > li { |
| 282 | + .page-cheatmd section.col-4 > ul > li { |
306 | 283 | flex: 0 0 50%;
|
307 | 284 | }
|
308 | 285 |
|
309 |
| - .col-6 > ul > li { |
| 286 | + .page-cheatmd section.col-6 > ul > li { |
310 | 287 | flex: 0 0 50%;
|
311 | 288 | }
|
312 | 289 | }
|
0 commit comments