Skip to content

Commit d31c881

Browse files
committed
More responsive design
1 parent c7a950a commit d31c881

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</section>
7474

7575
<section>
76-
<h2 id="why">Why?</h2>
76+
<h2 id="why">Why you might want this</h2>
7777

7878
<p>
7979
Sometimes your website needs a simple code editor that is easier on the
@@ -127,7 +127,7 @@ <h2 id="try">Try</h2>
127127
<li>This website - yes, go play with the <a href="#editor">editor</a> if you haven't yet!</li>
128128
</ul>
129129

130-
<h2 id="diy">Want to add this to your website?</h2>
130+
<h2 id="diy">Want to add it to your website?</h2>
131131
<p>
132132
Download
133133
<a href="codebedder.js" target="_blank">codebedder.js</a>,

style.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ nav a {
203203

204204
section:has(code-bedder) {
205205
display: grid;
206-
grid-auto-rows: 33vh;
206+
grid-auto-rows: calc(45.5vh - 8vw);
207207
}
208208

209209
iframe {
@@ -216,6 +216,7 @@ iframe {
216216

217217
@media (min-width: 960px) {
218218
section:has(code-bedder) {
219+
min-height: 75vh;
219220
grid-auto-rows: initial;
220221
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
221222
}
@@ -225,6 +226,12 @@ iframe {
225226
}
226227
}
227228

229+
@media (min-width: 1280px) {
230+
section:has(code-bedder) {
231+
min-height: 57vh;
232+
}
233+
}
234+
228235
section:not(:has(code-bedder)) {
229236
max-width: 1028px;
230237
width: 100%;

0 commit comments

Comments
 (0)