open-stage-control/browser/scss/style.scss
2016-04-03 10:51:41 +02:00

259 lines
4.4 KiB
SCSS

@import 'vars';
@import 'reset';
@import 'scrollbars';
@import 'layout';
@import 'editor';
@import 'sidepanel';
@import 'widgets';
input:focus::selection{
background:var(--color-accent);
color:var(--color-text);
}
input {
cursor: text;
}
html, body {
height:100%;
overflow:hidden;
position:relative;
}
html{
// global pixel scaling
font-size: calc(var(--pixel-scale) * 1px);
// prevent android's auto font-resize
max-height: 999999px;
}
body {
font-size:13rem;
line-height:16rem;
font-family:Droid Sans;
color:var(--color-text);
white-space:nowrap;
opacity:1;
cursor: default;
}
i {
font-size: 14rem!important;
}
.btn {
background: var(--color-raised);
display: block;
padding:15rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
&.small {
padding:8rem;
padding-right: 15rem;
}
&.warning {
background:firebrick;
}
&.disabled {
pointer-events: none;
color:var(--color-text-fade);
}
&.align-center {
text-align: center
}
}
#lobby {
background: var(--color-bg);
position: absolute;
top:0;
left:0;
right: 0;
bottom:0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
padding:20rem;
.main {
width:600rem;
max-width: 100%;
max-height:100%;
display: flex;
flex-direction: column;
}
.list {
flex:1;
overflow: auto;
background: var(--color-fg);
border-top:2rem solid var(--color-bg);
}
.header {
padding:20rem;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
background-color: var(--color-faded);
color:var(--color-accent);
font-size:16rem;
line-height: 24rem;
}
.footer {
background: var(--color-raised);
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
background: var(--color-faded);
border-top:2rem solid var(--color-bg);
}
a {
display: block;
padding-right:35rem;
overflow: hidden;
padding-top:15rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
background: none;
border-bottom:1rem solid var(--color-bg);
&:hover {
background:var(--color-raised)
}
&:last-child {
border-bottom:0;
}
span {
position: absolute;
right:0rem;
top:0rem;
padding:15rem;
color:var(--color-text-fade);
}
}
}
#loading {
position: absolute;
top:50%;
left:50%;
margin-top:-15rem;
text-align: center;
.spinner {
display: block;
margin: 0 auto;
height:30rem;
width:30rem;
border-radius: 50%;
border:2rem solid var(--color-track);
border-top-color:var(--color-accent);
animation: spin .5s linear infinite;
}
#status {
margin-top: 10rem;
display: inline-block;
}
}
@keyframes spin {
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
.popup {
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
padding:10%;
display: flex;
align-items: center;
z-index:1000000;
&:before {
content: "";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
background:var(--color-bg);
opacity: .5;
}
.popup-title {
position: relative;
padding:15rem;
background:var(--color-raised);
.closer {
position:absolute;
right:0rem;
top:0;
padding:15rem;
color:var(--color-text-fade);
cursor: pointer;
}
}
.popup-wrapper {
display: flex;
flex-direction: column;
align-items: stretch;
background:var(--color-fg);
width:auto;
max-width:600rem;
margin:0 auto;
position: relative;
overflow: hidden;
border:1rem solid var(--color-track);
.popup-content {
height:100%;
width:100%;
padding:10rem;
overflow-y:auto;
white-space: normal;
}
}
}