mcopy/app/css/app.less

678 lines
10 KiB
Plaintext
Raw Normal View History

2016-04-19 20:49:37 +00:00
//@BG: rgb(50, 43, 47);
@BG : #272b30;
2016-04-14 04:17:42 +00:00
@COMMON: #fff;
@FORWARD: #00C4A0;
@BACKWARD: #AB1A25;
@SELECTED: #DAE035;
@SEQ: #3C3636;
@SCRIPT: rgb(39, 40, 34);
@INPUT_BG : rgba(255, 255, 255, 0.05);
2016-04-19 20:49:37 +00:00
@FOOTER_H : 150px;
2016-04-14 04:17:42 +00:00
.monospace () {
2016-04-19 20:49:37 +00:00
font-family: 'Menlo', monospace;
2016-04-14 04:17:42 +00:00
}
.button (@color: @COMMON) {
display: block;
border-radius: 5px;
border: 2px solid @color;
text-align: center;
background: transparent;
color: @color;
padding: 8px 0;
font-size: 12px;
font-weight: 400;
span{
display: block;
font-size: 16px;
font-weight: 200;
}
&:active,.active{
background: @color;
color: @BG;
outline: none;
}
&:focus{
outline: none;
}
}
2016-04-19 03:43:32 +00:00
*{
cursor: default;
-webkit-touch-callout: none;
-webkit-user-select: none;
}
2016-04-14 04:17:42 +00:00
html, body{
-webkit-overflow-scrolling: auto;
overflow-x: hidden;
}
2016-04-13 21:36:12 +00:00
input {
background: @INPUT_BG;
color: @COMMON;
border-color: @COMMON;
2016-04-13 21:36:12 +00:00
&:focus{
outline: none !important;
}
2016-04-13 20:59:22 +00:00
}
footer{
2016-04-13 02:06:06 +00:00
position: fixed;
bottom: 0;
width: 100%;
2016-04-19 20:49:37 +00:00
height: @FOOTER_H;
2016-04-13 02:06:06 +00:00
}
#log{
position: fixed;
2016-04-13 04:06:19 +00:00
width: 100%;
2016-04-19 20:49:37 +00:00
height: @FOOTER_H;
2016-04-13 02:06:06 +00:00
}
2016-04-14 04:17:42 +00:00
#screens{
overflow-x: hidden;
}
2016-04-13 04:06:19 +00:00
.screen{
display: none;
}
#colors-tabs{
width: 411px;
}
#colors-content{
width: 411px;
float: left;
.colors-page{
display: none;
}
}
#kelvin-page{
h3{
text-align: center;
}
h4{
text-align: center;
width: 411px;
position: absolute;
top: 121px;
left: 110px;
}
}
#kelvin{
background: @INPUT_BG;
color: @COMMON;
border: 1px solid @COMMON;
width: 140px;
font-size: 20px;
margin: 20px auto;
display: block;
text-align: center;
}
#kelvin-slider{
position: relative;
width: 352px;
margin: 40px auto 0;
padding-bottom: 2px;
cursor: pointer;
}
#kelvin-scale{
width: 350px;
height: 60px;
border: 1px solid @COMMON;
span{
display: inline-block;
height: 58px;
width: 1px;
}
}
#kelvin-pos{
height: 64px;
border: 2px solid #000;
width: 5px;
position: absolute;
left: -1px;
top: -2px;
&:before{
2016-05-13 21:28:51 +00:00
font-family: 'FontAwesome';
content: '\f107';
position: absolute;
color: #000;
top: -24px;
left: -8px;
font-size: 27px;
}
}
2016-05-13 21:28:51 +00:00
2016-05-16 14:41:24 +00:00
#kelvin-preview {
margin-top: 25px;
width: 350px;
height: 60px;
border: 1px solid @COMMON;
text-align: center;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 60px;
color: @BG;
}
2016-05-13 21:28:51 +00:00
@dial_size : 5.5em;
@dial_thickness : 0.5em;
@dial_cyan : #00FFFF;
@dial_magenta : #FF00FF;
@dial_yellow : #FFFF00;
2016-05-16 14:41:24 +00:00
@dial_black : #000;
2016-05-13 21:28:51 +00:00
@dial_left : 15px;
@dial_spacing : 90px;
2016-05-16 14:41:24 +00:00
.dial-class (@color, @i) {
margin-left: @dial_left + (@dial_spacing * @i);
2016-05-13 21:28:51 +00:00
margin-top: 85px;
.dial-wedge,
.dial-marker{
2016-05-16 14:41:24 +00:00
background: @color;
2016-05-13 21:28:51 +00:00
}
input{
2016-05-16 14:41:24 +00:00
color: @color;
border-color: @color;
2016-05-13 21:28:51 +00:00
}
}
2016-05-16 14:41:24 +00:00
#dial-c {
.dial-class(@dial_cyan, 0);
}
2016-05-13 21:28:51 +00:00
#dial-m {
2016-05-16 14:41:24 +00:00
.dial-class(@dial_magenta, 1);
2016-05-13 21:28:51 +00:00
}
#dial-y {
2016-05-16 14:41:24 +00:00
.dial-class(@dial_yellow, 2);
}
#dial-k {
.dial-class(@dial_black, 3);
2016-05-13 21:28:51 +00:00
input{
2016-05-16 14:41:24 +00:00
color: #fff;
border-color: #fff;
2016-05-13 21:28:51 +00:00
}
}
.dial-wrapper {
position: absolute;
width: @dial_size;
height: @dial_size;
&:after {
content: "";
background: @BG;
border-radius: 50%;
width: @dial_size - @dial_thickness;
height: @dial_size - @dial_thickness;
position: absolute;
top: @dial_thickness / 2;
left: @dial_thickness / 2;
}
input{
margin-top: @dial_size + 0.5em;
width: @dial_size - 1em;
2016-05-16 14:41:24 +00:00
margin-left: 0.5em;
2016-05-13 21:28:51 +00:00
background: @BG;
border: 1px solid;
text-align: center;
}
}
.dial-container {
position: absolute;
top: 0;
bottom: 0;
overflow: hidden;
width: @dial_size / 2;
&.dial-container1 {
left: @dial_size / 2;
.dial-wedge {
transform: rotateZ(360deg);
border-radius: 0 @dial_size @dial_size 0;
left: 0;
transform-origin: 0 50%;
}
}
&.dial-container2 {
left: 0;
.dial-wedge {
transform: rotateZ(0);
border-radius: @dial_size 0 0 @dial_size;
transform-origin: @dial_size @dial_size;
}
}
}
.dial-wedge {
height: @dial_size;
width: @dial_size / 2;
}
.dial-marker {
border-radius: 50%;
height: @dial_thickness / 2;
width: @dial_thickness / 2;
position: absolute;
top: 0;
left: calc(50% - (@dial_thickness * 2));
}
.dial-end {
transform: rotateZ(360deg);
transform-origin: 50% @dial_size / 2;
}
2016-05-16 14:41:24 +00:00
#cmy-preview {
position: absolute;
margin-top: 220px;
margin-left: 15px;
width: 350px;
height: 60px;
border: 1px solid @COMMON;
text-align: center;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 60px;
color: @BG;
2016-05-13 21:28:51 +00:00
}
.mcopy-light{
background: #000;
width: 15px;
height: 15px;
2016-04-13 20:59:22 +00:00
border-radius: 15px;
}
#light-status{
2016-04-22 18:33:49 +00:00
width: 360px;
float: right;
margin-top: -25px;
h3{
font-size: 20px;
text-align: center;
}
>div{
position: relative;
clear: both;
&:after{
content: "";
display: block;
}
}
form{
float: left;
line-height: 30px;
width: 40%;
span{
width: 20px;
margin-left: 40px;
display: inline-block;
}
input[type=text]{
width: 40px;
background: @INPUT_BG;
color: @COMMON;
border: 1px solid @COMMON;
}
}
}
#light-swatches{
width: 100%;
.swatch{
cursor: pointer;
width: 50px;
height: 50px;
display: inline-block;
margin: 3px;
box-sizing: border-box;
border: 1px solid #fff;
&.default{
border-color: #9ecaed;
box-shadow: 0 0 10px #9ecaed;
}
}
#new-swatch{
cursor: pointer;
display: inline-block;
border: 1px solid rgb(255, 255, 255);
width: 50px;
height: 50px;
margin: 3px;
box-sizing: border-box;
line-height: 88px;
text-align: center;
font-size: 22px;
position: relative;
opacity: 0.25;
&:hover{
opacity: 0.5;
}
&:active{
opacity: 1;
}
i{
display: block;
position: absolute;
top: 14px;
left: 16px;
color: #fff;
}
}
}
#w2ui-popup{
.swatch{
cursor: pointer;
width: 50px;
height: 50px;
display: inline-block;
margin: 3px;
box-sizing: border-box;
border: 1px solid #fff;
&.default{
border-color: #9ecaed;
box-shadow: 0 0 10px #9ecaed;
}
}
#new-swatch{
display: none;
}
}
#preview-wrap{
margin-top: 140px;
h4{
display: inline-block;
margin: 0;
margin-left: 123px;
margin-right: 10px;
width: 81px;
height: 30px;
span{
display: block;
margin-top: 6px;
position: absolute;
}
}
}
#preview{
//margin-top: 40px;
}
#rgb{
border: 0;
border-radius: 0;
width: 411px;
font-size: 12px;
text-align: center;
}
#color{
width: 100px;
height: 100px;
margin: 0 50px;
background-color: #000;
float: right;
}
2016-04-19 03:43:32 +00:00
#counters, #counters_2{
2016-04-14 04:17:42 +00:00
.cam,.proj{
width: 50%;
padding-bottom: 25px;
label{
text-align: center;
font-size: 24px;
display: block;
}
input{
background: @INPUT_BG;
2016-04-14 04:17:42 +00:00
color: @COMMON;
padding: 6px 12px;
font-size: 21px;
display: block;
margin: 0 auto;
text-align: center;
.monospace();
&.changed{
color: @SELECTED;
}
}
}
.cam{
float: left;
}
.proj{
float: right;
}
}
#seq_scroll{
width: 100%;
overflow-x: scroll;
>div>div>div{
float: left;
input{
float: none;
}
}
}
#numbers{
div{
font-size: 10px;
text-align: center;
color: rgb(220, 220, 220);
2016-04-14 04:17:42 +00:00
}
}
#actions{
padding: 8px 0 0 55px;
input[type=number] {
background: @INPUT_BG;
border: 2px solid @COMMON;
color: @COMMON;
padding: 6px;
border-radius: 5px;
float: right;
width: 90px;
margin-right: 60px;
}
2016-04-14 04:17:42 +00:00
}
#seq_stats{
2016-04-19 20:49:37 +00:00
width: 40%;
2016-04-14 04:17:42 +00:00
float: right;
2016-04-19 20:49:37 +00:00
padding: 20px 61px 0 0;
h3{
font-size: 20px;
2016-04-19 20:49:37 +00:00
margin: 16px 0 3px;
}
2016-04-14 04:17:42 +00:00
span{
font-weight: 600;
float: right;
}
.timing{
}
}
#seq_loop{
width: 40%;
float: left;
2016-04-19 20:49:37 +00:00
padding: 0 0 0 56px;
h3{
font-size: 20px;
margin: 12px 0 3px;
}
2016-04-14 04:17:42 +00:00
input{
.monospace();
background: @INPUT_BG;
color: @COMMON;
font-size: 21px;
2016-04-14 04:17:42 +00:00
width: 121px;
2016-04-19 20:49:37 +00:00
margin-top: 10px;
padding: 6px 12px;
2016-04-14 04:17:42 +00:00
}
}
button{
.button();
display: inline-block;
padding: 4px 16px;
font-size: 14px;
}
#sequencer{
}
#sequence{
width: 970px;
padding-bottom: 21px;
2016-04-14 04:17:42 +00:00
padding-left: 70px;
#cam_forward,
#proj_forward,
#black_forward{
clear: both;
input[type=checkbox]{
border: 1px solid @FORWARD;
&:checked{
background: @FORWARD;
//background: radial-gradient(circle at 25px 25px, #00C4A0, #343434);
}
}
>div{
color: @FORWARD;
}
}
#cam_backward,
#proj_backward,
#black_backward{
clear: both;
input[type=checkbox]{
border: 1px solid @BACKWARD;
&:checked{
background: @BACKWARD;
//background: radial-gradient(circle at 25px 25px, #AB1A25, #343434);
}
}
>div{
color: @BACKWARD;
}
}
input[type=checkbox]{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: transparent;
outline: none;
width: 35px;
height: 35px;
border-radius: 5px;
margin: 0;
margin-bottom: 3px;
margin-right: 3px;
display: inline-block;
2016-04-14 04:17:42 +00:00
box-sizing: border-box;
cursor: pointer;
}
.L{
display: inline-block;
width: 35px;
height: 35px;
border-radius: 35px;
margin: 0;
margin-bottom: 3px;
margin-right: 3px;
border: 1px solid @COMMON;
opacity: 0.5;
cursor: pointer;
&.a{
opacity: 1;
}
2016-04-14 04:17:42 +00:00
}
input.h{
//background: @SELECTED !important;
border-color: @SELECTED !important;
&:checked{
background: @SELECTED !important;
}
}
#numbers{
clear: both;
> div{
width: 35px;
color: @COMMON;
font-family: monospace;
float: left;
margin-right: 3px;
2016-04-14 04:17:42 +00:00
text-align: center;
opacity: 0.5;
&.h{
color: @SELECTED;
opacity: 1;
}
2016-04-14 04:17:42 +00:00
}
}
}
#seq_labels{
.monospace();
background-color: #272b30;
position: absolute;
top: 128px;
padding-top: 2px;
padding-bottom: 15px;
width: 54px;
div{
height: 43px;
line-height: 35px;
}
span{
text-indent: 7px;
display: inline-block;
margin-right: 5px;
}
}
2016-04-19 03:43:32 +00:00
2016-04-19 20:49:37 +00:00
#console{
background: #000;
border-top: 2px solid rgba(255, 255, 255, 0.3);
textarea{
.monospace();
font-size: 12px;
line-height: 17px;
outline: none !important;
border: none;
box-sizing: border-box;
margin: 0;
padding: 20px;
width: 100%;
height: @FOOTER_H;
display: block;
background: black;
color: @COMMON;
}
}
2016-04-19 03:43:32 +00:00
#overlay{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
display: none;
//z-index: 1200;
}
.spacer{
margin-top: 15px;
}
2016-04-14 04:17:42 +00:00
.cp-app{
position: relative !important;
border-radius: 0px !important;
top: 0px !important;
.cp-memo{
bottom: 2px !important;
}
2016-04-19 20:49:37 +00:00
}
.cm-s-monokai.CodeMirror{
background: @BG !important;
}
.cm-s-monokai .CodeMirror-gutters {
background: @BG + rgb(15, 15, 15) !important;
2016-04-13 02:06:06 +00:00
}