more REPL stuff

pull/1890/head
Rich Harris 7 years ago
parent 8bb0dcf7a4
commit 000d4488ca

@ -137,7 +137,9 @@
<style> <style>
.repl-outer { .repl-outer {
position: relative;
min-height: calc(100vh - var(--nav-h)); min-height: calc(100vh - var(--nav-h));
--pane-controls-h: 4.2rem;
} }
.pane { width: 100%; height: 100% } .pane { width: 100%; height: 100% }
@ -150,12 +152,12 @@
@media (min-width: 768px) { @media (min-width: 768px) {
.repl-outer { .repl-outer {
display: grid; height: calc(100vh - var(--nav-h));
grid-template-rows: 5.6rem 1fr;
min-height: auto;
min-height: calc(100vh - var(--nav-h));
background-color: var(--back); background-color: var(--back);
overflow: hidden; overflow: hidden;
--app-controls-h: 5.6rem;
padding: var(--app-controls-h) 0 0 0;
box-sizing: border-box;
} }
.repl-outer.zen-mode { .repl-outer.zen-mode {

@ -210,29 +210,11 @@ blockquote {
/* buttons -------------------------------- */ /* buttons -------------------------------- */
button { button {
--bttn-h: 4rem; font-family: inherit;
--bttn-outline: var(--border-w); font-size: inherit;
--bttn-font: var(--font-ui); background-color: transparent;
--bttn-calc-h: calc(var(--bttn-h) - var(--bttn-outline) * 2); border: none;
/* --bttn-hover: linear-gradient(
to top, rgba(0,0,0,.05), rgba(0,0,0,.05)
); */
--bttn-active: linear-gradient(
to top, rgba(255,255,255,.1), rgba(255,255,255,.1)
);
position: relative;
margin: 0 .8rem .8rem 0;
vertical-align: middle;
white-space: nowrap;
display: inline-block;
zoom: 1;
border: none transparent;
font: 1.3rem var(--bttn-font);
border-radius: var(--border-r);
color: currentColor; color: currentColor;
letter-spacing: .05em;
cursor: pointer;
} }
button:focus { outline: 0 } button:focus { outline: 0 }
@ -257,11 +239,11 @@ button {
transition: all .1s; transition: all .1s;
} }
button:hover { background-image: var(--bttn-hover) } /* button:hover { background-image: var(--bttn-hover) }
button:active { button:active {
mix-blend-mode: overlay; mix-blend-mode: overlay;
background-image: var(--bttn-active) background-image: var(--bttn-active)
} } */
/* options */ /* options */
button[outline] { button[outline] {

Loading…
Cancel
Save