Skip to content

Commit 11d2c3c

Browse files
committed
fix: playground responsiveness on 1230 < ... < 1280 sites
1 parent 88f87a4 commit 11d2c3c

File tree

1 file changed

+46
-43
lines changed

1 file changed

+46
-43
lines changed

playground/playground.css

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -85,49 +85,6 @@ a:not(.button) {
8585
justify-content: center;
8686
}
8787

88-
@media (max-width: 1230px) {
89-
.page-container,
90-
.preview-code {
91-
height: unset;
92-
}
93-
94-
.preview-code {
95-
flex-direction: column;
96-
}
97-
98-
.code-output {
99-
max-width: 100%;
100-
}
101-
}
102-
103-
@media (max-width: 768px) {
104-
.sidebar {
105-
box-shadow: none;
106-
width: 100%;
107-
position: relative;
108-
background-color: transparent;
109-
height: unset;
110-
}
111-
112-
.code-section {
113-
width: 100%;
114-
display: flex;
115-
align-items: center;
116-
justify-content: center;
117-
}
118-
119-
.preview-code-container {
120-
margin-left: 0px;
121-
}
122-
.preview-code {
123-
padding: 42px 12px;
124-
}
125-
126-
.docs-container {
127-
padding: 24px 12px;
128-
}
129-
}
130-
13188
.form-container {
13289
text-align: left;
13390
display: flex;
@@ -315,6 +272,52 @@ footer {
315272
transform: rotate(10deg);
316273
}
317274
}
275+
276+
277+
@media (max-width: 1280px) {
278+
.page-container,
279+
.preview-code {
280+
height: unset;
281+
}
282+
283+
.preview-code {
284+
flex-direction: column;
285+
}
286+
287+
.code-output {
288+
max-width: 100%;
289+
}
290+
}
291+
292+
@media (max-width: 768px) {
293+
.sidebar {
294+
box-shadow: none;
295+
width: 100%;
296+
position: relative;
297+
background-color: transparent;
298+
height: unset;
299+
}
300+
301+
.code-section {
302+
width: 100%;
303+
display: flex;
304+
align-items: center;
305+
justify-content: center;
306+
}
307+
308+
.preview-code-container {
309+
margin-left: 0px;
310+
}
311+
.preview-code {
312+
padding: 42px 12px;
313+
}
314+
315+
.docs-container {
316+
padding: 24px 12px;
317+
}
318+
}
319+
320+
318321
@media (max-width: 500px) {
319322
.github-corner:hover .octo-arm {
320323
animation: none;

0 commit comments

Comments
 (0)