Skip to content

Commit 8e826e6

Browse files
committed
more tweaks
1 parent 15a65ca commit 8e826e6

File tree

11 files changed

+29
-63
lines changed

11 files changed

+29
-63
lines changed

site/src/routes/repl/_components/AppControls/UserMenu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
opacity: 1;
8686
}
8787

88-
@media (min-width: 768px) {
88+
@media (min-width: 600px) {
8989
.user {
9090
padding: 0em 3.2rem 0 1.6rem;
9191
}

site/src/routes/repl/_components/AppControls/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
display: none;
345345
}
346346

347-
@media (min-width: 768px) {
347+
@media (min-width: 600px) {
348348
.icon[title^='fullscreen'] { display: inline }
349349

350350
button span {

site/src/routes/repl/_components/CodeMirror.html

+2-11
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@
148148
.codemirror-container {
149149
position: relative;
150150
width: 100%;
151+
height: 100%;
152+
border: none;
151153
}
152154

153155
.codemirror-container :global(.CodeMirror) {
@@ -166,17 +168,6 @@
166168
padding: 0;
167169
}
168170

169-
@media (min-width: 768px) {
170-
.codemirror-container {
171-
height: 100%;
172-
border: none;
173-
}
174-
175-
.codemirror-container :global(.CodeMirror) {
176-
height: 100%;
177-
}
178-
}
179-
180171
.codemirror-container :global(.CodeMirror-gutters) {
181172
padding: 0 1.6rem 0 .8rem;
182173
border: none;

site/src/routes/repl/_components/Input/ComponentSelector.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
</style>
169169

170170
<div class="component-selector">
171-
<div class="file-tabs" on:dblclick="{() => dispatch('create')}">
171+
<div class="file-tabs" on:dblclick="{addNew}">
172172
{#each $component_store as component}
173173
<button
174174
id={component.name}

site/src/routes/repl/_components/Input/ModuleEditor.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
background: var(--back-light);
1414
}
1515

16-
@media (min-width: 768px) {
16+
@media (min-width: 600px) {
1717
.editor-wrapper {
1818
/* make it easier to interact with scrollbar */
1919
padding-right: 8px;

site/src/routes/repl/_components/Output/Viewer.html

+3-13
Original file line numberDiff line numberDiff line change
@@ -297,29 +297,19 @@
297297

298298
<style>
299299
.iframe-container {
300-
border-top: 1px solid #ccc;
301300
background-color: white;
301+
border: none;
302+
height: 100%;
302303
}
303304

304305
iframe {
305306
width: 100%;
306-
height: calc(100vh -3em);
307+
height: 100%;
307308
/* height: calc(100vh - var(--nav-h)); */
308309
border: none;
309310
display: block;
310311
}
311312

312-
@media (min-width: 768px) {
313-
.iframe-container {
314-
border: none;
315-
height: 100%;
316-
}
317-
318-
iframe {
319-
height: 100%;
320-
}
321-
}
322-
323313
.greyed-out {
324314
filter: grayscale(50%) blur(1px);
325315
opacity: .25;

site/src/routes/repl/_components/Output/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
.view-toggle {
4949
height: var(--pane-controls-h);
5050
border-bottom: 1px solid #eee;
51+
white-space: nowrap;
5152
}
5253

5354
button {

site/src/routes/repl/_components/Repl.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
transform: translate(-50%,0);
251251
}
252252

253-
@media (min-width: 768px) {
253+
@media (min-width: 600px) {
254254
.container {
255255
height: 100%;
256256
}
@@ -272,7 +272,7 @@
272272

273273
<div class="container" bind:clientWidth={width}>
274274
<div class="repl-inner" class:offset="{show_output}">
275-
<SplitPane type="horizontal" fixed="{768 > width}" pos={60} fixed_pos={50}>
275+
<SplitPane type="horizontal" fixed="{600 > width}" pos={60} fixed_pos={50}>
276276
<section slot=a>
277277
<Input
278278
{component_store}

site/src/routes/repl/_components/SplitPane.html

+13-24
Original file line numberDiff line numberDiff line change
@@ -126,33 +126,22 @@
126126
height: 1px;
127127
}
128128

129-
/* @media (max-width: 767px) {
130-
.pane {
131-
override divider-set dimensions
132-
width: 100% !important;
133-
height: auto !important;
134-
}
135-
} */
136-
137-
/* @media (min-width: 768px) { */
138-
.left, .right, .divider {
139-
display: block;
140-
141-
}
129+
.left, .right, .divider {
130+
display: block;
131+
}
142132

143-
.left, .right {
144-
height: 100%;
145-
float: left;
146-
}
133+
.left, .right {
134+
height: 100%;
135+
float: left;
136+
}
147137

148-
.top, .bottom {
149-
position: absolute;
150-
width: 100%;
151-
}
138+
.top, .bottom {
139+
position: absolute;
140+
width: 100%;
141+
}
152142

153-
.top { top: 0; }
154-
.bottom { bottom: 0; }
155-
/* } */
143+
.top { top: 0; }
144+
.bottom { bottom: 0; }
156145
</style>
157146

158147
<div class="container" bind:this={refs.container}>

site/src/routes/repl/embed.html

+3-8
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,11 @@
8484
left: 0;
8585
width: 100%;
8686
height: 100%;
87+
background-color: var(--back);
88+
overflow: hidden;
89+
box-sizing: border-box;
8790
--pane-controls-h: 4.2rem;
8891
}
89-
90-
/* @media (min-width: 768px) { */
91-
.repl-outer {
92-
background-color: var(--back);
93-
overflow: hidden;
94-
box-sizing: border-box;
95-
}
96-
/* } */
9792
</style>
9893

9994
<svelte:head>

site/src/routes/repl/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157

158158
.pane { width: 100%; height: 100% }
159159

160-
@media (min-width: 768px) {
160+
@media (min-width: 600px) {
161161
.repl-outer {
162162
margin: 0 -4.8rem; /* can't do calc(0 - var(--side-nav)) */
163163
}

0 commit comments

Comments
 (0)