open-stage-control/src/scss/index.scss
2020-03-06 20:18:40 +01:00

332 lines
6.4 KiB
SCSS

@import 'reset';
@import 'mixins';
@import 'ui';
@import 'widgets';
input,
textarea,
{
caret-color: var(--color-widget);
}
input:focus::selection,
textarea:focus::selection,
{
background:var(--color-widget);
color:var(--color-text);
}
input {
cursor: text;
}
.fa {
font-weight: 900;
}
html, body {
height:100%;
position:relative;
overflow:hidden;
overscroll-behavior: none;
}
html{
// global pixel scaling
font-size: 1px;
// prevent android's auto font-resize
max-height: 999999px;
// prevent pinch-zoom
touch-action:none;
}
body {
color: var(--color-text);
white-space:nowrap;
opacity:1;
cursor: default;
font-family: 'Roboto', sans-serif;
font-size:11rem;
line-height:100%;
font-weight: 500;
// text-transform: uppercase;
letter-spacing: 1rem;
}
#launcher {
overflow: initial;
body {
background: var(--color-fg);
overflow: auto;
}
.form {
padding:8rem;
padding-top:58rem;
position: relative;
width: 100%;
background: var(--color-fg);
overflow: hidden;
opacity: 0;
transition: opacity .25s;
&.loaded {
opacity: 1;
overflow: auto;
}
}
.item-wrapper {
// margin-bottom:4rem;
label {
min-width:98rem;
}
.input-wrapper {
position: relative;
// height: 28rem;
// overflow: hidden;
// margin: 0;
box-shadow: none;
.clear {
padding:0;
height:26rem;
width: 26rem;
line-height: 26rem;
text-align: center;
position: absolute;
right:1rem;
top:2rem;
background: none;
opacity: .7;
box-shadow: none;
}
input {
padding-right:35rem;
box-shadow: none;
}
input[value="true"] {
color: inherit;
}
input[disabled] {
color:var(--color-accent);
}
.checkbox {
right: 30rem;
&.disabled {
pointer-events: none;
&.on i {
color:var(--color-text-fade);
}
}
}
}
.error-msg, .restart-msg {
transition: height .25s;
height: 0rem;
white-space:normal;
padding: 0 4rem;
margin-left:1rem;
text-transform: none;
}
&.error, &.restart {
.error-msg {
height: 28rem;
line-height: 28rem;
background: rgba(red,0.25)
}
.restart-msg {
height: 28rem;
line-height: 28rem;
background: rgba(orange,0.25)
}
}
}
.header {
position: fixed;
top:8rem;
left:8rem;
right:8rem;
background: var(--color-fg);
border: 1rem solid var(--color-bg);
margin-bottom: -1rem;
color: var(--color-accent);
cursor: default;
z-index: 2;
box-shadow: none;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 -8rem 0 0 var(--color-fg);
padding: 16rem 15rem 14rem;
#title {
text-transform: uppercase;
letter-spacing: 1rem;
font-size: 12rem;
line-height: 12rem;
}
#version {
opacity: .5;
text-transform: none;
}
#new-version {
color:yellow;
cursor: pointer;
float:right;
}
}
.start {
border: 1rem solid var(--color-bg);
z-index: 1;
margin-top: 8rem;
&:after {
content:"";
position: absolute;
top:0;
left:0;
right: 0;
bottom:0;
box-shadow: 0 0 0 1rem var(--color-light) inset;
pointer-events: none;
}
&.disabled {
opacity: .5;
}
&.started {
color:#fff;
cursor: default;
a {
cursor: pointer;
text-decoration: underline;
}
}
&.started:before {
content:"";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
background-color: var(--color-accent);
opacity: 0.25;
z-index: -1;
}
}
.save {
float:left;
width:97rem;
border-right: 0;
&:before {
transition: opacity .5s;
content:"";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
background-color: var(--color-accent);
opacity: 0;
z-index: -1;
}
&.saved:before {
transition: none;
opacity: 0.25;
}
}
.terminal {
margin-top: 8rem;
background: var(--color-bg);
font-family: 'RobotoMono';
text-transform: none;
padding:3rem;
border:2rem solid var(--color-bg);
letter-spacing: normal;
cursor: auto;
flex:1;
height: auto;
min-height: 50rem;
div {
user-select:text;
width: 100%;
white-space: pre-line;
word-wrap: break-word;
text-indent: -10px;
padding-left: 10px;
margin-top: 4rem;
}
.log {
}
.error {
color: rgba(255, 150, 50, 1)
}
}
}
.error-stack {
> span {
background: none!important;
color: inherit!important;
}
padding:10rem;
user-select:initial;
cursor: initial;
* {
user-select:initial;
cursor: initial;
}
overflow:auto;
white-space:pre;
font-family: monospace;
font-weight:bold;
}
.translation-missing {
color: #ff00ff;
}
.fa-osc:before {
content:"\f111";
color: transparent;
background-image: url(../assets/logo.png);
background-size: contain;
background-repeat: no-repeat;
}
@import 'themes/default';