more tweaks

pull/1901/head
Rich Harris 6 years ago
parent 15a65caf87
commit 8e826e618d

@ -85,7 +85,7 @@
opacity: 1; opacity: 1;
} }
@media (min-width: 768px) { @media (min-width: 600px) {
.user { .user {
padding: 0em 3.2rem 0 1.6rem; padding: 0em 3.2rem 0 1.6rem;
} }

@ -344,7 +344,7 @@ export default app;` });
display: none; display: none;
} }
@media (min-width: 768px) { @media (min-width: 600px) {
.icon[title^='fullscreen'] { display: inline } .icon[title^='fullscreen'] { display: inline }
button span { button span {

@ -148,6 +148,8 @@
.codemirror-container { .codemirror-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%;
border: none;
} }
.codemirror-container :global(.CodeMirror) { .codemirror-container :global(.CodeMirror) {
@ -166,17 +168,6 @@
padding: 0; padding: 0;
} }
@media (min-width: 768px) {
.codemirror-container {
height: 100%;
border: none;
}
.codemirror-container :global(.CodeMirror) {
height: 100%;
}
}
.codemirror-container :global(.CodeMirror-gutters) { .codemirror-container :global(.CodeMirror-gutters) {
padding: 0 1.6rem 0 .8rem; padding: 0 1.6rem 0 .8rem;
border: none; border: none;

@ -168,7 +168,7 @@
</style> </style>
<div class="component-selector"> <div class="component-selector">
<div class="file-tabs" on:dblclick="{() => dispatch('create')}"> <div class="file-tabs" on:dblclick="{addNew}">
{#each $component_store as component} {#each $component_store as component}
<button <button
id={component.name} id={component.name}

@ -13,7 +13,7 @@
background: var(--back-light); background: var(--back-light);
} }
@media (min-width: 768px) { @media (min-width: 600px) {
.editor-wrapper { .editor-wrapper {
/* make it easier to interact with scrollbar */ /* make it easier to interact with scrollbar */
padding-right: 8px; padding-right: 8px;

@ -297,29 +297,19 @@
<style> <style>
.iframe-container { .iframe-container {
border-top: 1px solid #ccc;
background-color: white; background-color: white;
border: none;
height: 100%;
} }
iframe { iframe {
width: 100%; width: 100%;
height: calc(100vh -3em); height: 100%;
/* height: calc(100vh - var(--nav-h)); */ /* height: calc(100vh - var(--nav-h)); */
border: none; border: none;
display: block; display: block;
} }
@media (min-width: 768px) {
.iframe-container {
border: none;
height: 100%;
}
iframe {
height: 100%;
}
}
.greyed-out { .greyed-out {
filter: grayscale(50%) blur(1px); filter: grayscale(50%) blur(1px);
opacity: .25; opacity: .25;

@ -48,6 +48,7 @@
.view-toggle { .view-toggle {
height: var(--pane-controls-h); height: var(--pane-controls-h);
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
white-space: nowrap;
} }
button { button {

@ -250,7 +250,7 @@
transform: translate(-50%,0); transform: translate(-50%,0);
} }
@media (min-width: 768px) { @media (min-width: 600px) {
.container { .container {
height: 100%; height: 100%;
} }
@ -272,7 +272,7 @@
<div class="container" bind:clientWidth={width}> <div class="container" bind:clientWidth={width}>
<div class="repl-inner" class:offset="{show_output}"> <div class="repl-inner" class:offset="{show_output}">
<SplitPane type="horizontal" fixed="{768 > width}" pos={60} fixed_pos={50}> <SplitPane type="horizontal" fixed="{600 > width}" pos={60} fixed_pos={50}>
<section slot=a> <section slot=a>
<Input <Input
{component_store} {component_store}

@ -126,33 +126,22 @@
height: 1px; height: 1px;
} }
/* @media (max-width: 767px) { .left, .right, .divider {
.pane { display: block;
override divider-set dimensions }
width: 100% !important;
height: auto !important;
}
} */
/* @media (min-width: 768px) { */
.left, .right, .divider {
display: block;
}
.left, .right { .left, .right {
height: 100%; height: 100%;
float: left; float: left;
} }
.top, .bottom { .top, .bottom {
position: absolute; position: absolute;
width: 100%; width: 100%;
} }
.top { top: 0; } .top { top: 0; }
.bottom { bottom: 0; } .bottom { bottom: 0; }
/* } */
</style> </style>
<div class="container" bind:this={refs.container}> <div class="container" bind:this={refs.container}>

@ -84,16 +84,11 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: var(--back);
overflow: hidden;
box-sizing: border-box;
--pane-controls-h: 4.2rem; --pane-controls-h: 4.2rem;
} }
/* @media (min-width: 768px) { */
.repl-outer {
background-color: var(--back);
overflow: hidden;
box-sizing: border-box;
}
/* } */
</style> </style>
<svelte:head> <svelte:head>

@ -157,7 +157,7 @@
.pane { width: 100%; height: 100% } .pane { width: 100%; height: 100% }
@media (min-width: 768px) { @media (min-width: 600px) {
.repl-outer { .repl-outer {
margin: 0 -4.8rem; /* can't do calc(0 - var(--side-nav)) */ margin: 0 -4.8rem; /* can't do calc(0 - var(--side-nav)) */
} }

Loading…
Cancel
Save