Electron integration, scss integration, styles improvement, wip...

This commit is contained in:
jean-emmanuel 2015-08-14 17:55:36 +02:00 • committed by bordun
parent d1b0c0dc2e
commit a35ab74b6a
20 changed files with 5677 additions and 127 deletions

View file

@ -0,0 +1,316 @@
/* Functional styling;
* These styles are required for noUiSlider to function.
* You don't need to change these rules to apply your design.
*/
.noUi-target,
.noUi-target * {
-webkit-touch-callout: none;
-webkit-user-select: none;
-ms-touch-action: none;
-ms-user-select: none;
-moz-user-select: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.noUi-target {
position: relative;
}
.noUi-base {
width: 100%;
height: 100%;
position: relative;
}
.noUi-origin {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
}
.noUi-handle {
position: relative;
z-index: 1;
}
.noUi-stacking .noUi-handle {
/* This class is applied to the lower origin when
its values is > 50%. */
z-index: 10;
}
.noUi-stacking + .noUi-origin {
/* Fix stacking order in IE7, which incorrectly
creates a new context for the origins. */
*z-index: -1;
}
.noUi-state-tap .noUi-origin {
-webkit-transition: left 0.3s, top 0.3s;
transition: left 0.3s, top 0.3s;
}
.noUi-state-drag * {
cursor: inherit !important;
}
/* Painting and performance;
* Browsers can paint handles in their own layer.
*/
.noUi-base {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
/* Slider size and handle placement;
*/
.noUi-horizontal {
height: 4px!important;
}
.noUi-handle {
border-radius:100%!important;
background:#528bff!important;
box-shadow:0 0 10px 0px #aaa inset,0 0 1px 1px rgba(0,0,0,.5),0 0 0 3px rgba(255,255,255,.2)!important
}
.noUi-horizontal .noUi-handle {
width: 10px;
height: 10px;
left: -5px;
top: -3px;
border:0;
padding:0;
}
.noUi-vertical {
width: 4px;
}
.noUi-vertical .noUi-handle {
width: 10px;
height: 10px;
left: -3px;
top: -5px;
}
/* Styling;
*/
.noUi-background {
background: #FAFAFA;
}
.noUi-connect {
background: $color-accent;
-webkit-transition: background 450ms;
transition: background 450ms;
}
.noUi-origin {
border-radius: 2px;
}
.noUi-target {
border-radius: 4px;
border: 1px solid #D3D3D3;
}
.noUi-target.noUi-connect {
}
/* Handles and cursors;
*/
.noUi-dragable {
cursor: w-resize;
}
.noUi-vertical .noUi-dragable {
cursor: n-resize;
}
.noUi-handle {
background: #FFF;
cursor: default;
box-shadow: inset 0 0 1px #FFF,
inset 0 1px 7px #EBEBEB,
0 3px 6px -3px #BBB;
}
.noUi-active {
box-shadow: inset 0 0 1px #FFF,
inset 0 1px 7px #DDD,
0 3px 6px -3px #BBB;
}
/* Disabled state;
*/
[disabled].noUi-connect,
[disabled] .noUi-connect {
background: #B8B8B8;
}
[disabled] .noUi-handle {
cursor: not-allowed;
}
/* PIPS */
/* Base;
*
*/
.noUi-pips,
.noUi-pips * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.noUi-pips {
position: absolute;
font: 400 12px Arial;
color: #999;
}
/* Values;
*
*/
.noUi-value {
width: 40px;
position: absolute;
text-align: center;
}
.noUi-value-sub {
color: #ccc;
font-size: 10px;
}
/* Markings;
*
*/
.noUi-marker {
position: absolute;
background: #CCC;
}
.noUi-marker-sub {
background: #AAA;
}
.noUi-marker-large {
background: #AAA;
}
/* Horizontal layout;
*
*/
.noUi-pips-horizontal {
padding: 10px 0;
height: 50px;
top: 100%;
left: 0;
width: 100%;
}
.noUi-value-horizontal {
margin-left: -20px;
padding-top: 20px;
}
.noUi-value-horizontal.noUi-value-sub {
padding-top: 15px;
}
.noUi-marker-horizontal.noUi-marker {
margin-left: -1px;
width: 2px;
height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
height: 15px;
}
/* Vertical layout;
*
*/
.noUi-pips-vertical {
padding: 0 10px;
height: 100%;
top: 0;
left: 100%;
}
.noUi-value-vertical {
width: 15px;
margin-left: 20px;
margin-top: -5px;
}
.noUi-marker-vertical.noUi-marker {
width: 5px;
height: 2px;
margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
width: 15px;
}
.noUi-background {
background:#222;
border:0px;
border-radius:0px;
box-shadow:0 0 0;
}
.noUi-target {
box-shadow:0 0 0;
}
.noUi-base {
z-index:2;
}
.noUi-handle {
border-radius:0;
box-shadow:0 0 0;
border-color:rgba(255,255,255,0.4);
}
.noUi-handle:after {
display:none;
}
.noUi-horizontal .noUi-dragable:after {
content:"";
position:absolute;
height:100%;
left:-5000px;
width:10000px;
}
.noUi-connect {
background:#528bff;
border:0;
border-radius:0;
}
.noUi-vertical .noUi-dragable:after {
content:"";
position:absolute;
height:10000px;
top:-5000px;
width:500px;
left:-250px;
}
.noUi-horizontal .noUi-handle:after {
content:"";
position:absolute;
height:500px;
left:-5000px;
width:10000px;
top:-250px;
background:none;
display:block!important;
}
.noUi-pips {
font-size:11px;
font-family:sans;
}
.noUi-value-vertical {
margin-top:-7px;
}
.noUi-marker-vertical.noUi-marker {
height:1px;
}
.noUi-marker-horizontal.noUi-marker {
width:1px;
}

420
lib-dev/css/style.scss Normal file
View file

@ -0,0 +1,420 @@
/////////////
$color-text:rgba(white,.9);
$color-text-fade:transparentize($color-text,.5);
$color-title:rgba(white,.05);
$color-fg:#282c34;
$color-bg:mix($color-fg,black,85);
$color-accent:#528bff;
$color-border:mix($color-fg,black,55);
$nav-height:50px;
/////////////
* {
margin:0;
padding:0;
box-sizing:border-box;
text-decoration:none;
outline:0;
font:inherit;
cursor: url('data:image/x-icon;base64,AAACAAEAICAQAAcACADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAAAAAAAAuLW0AL+8uwAwMC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIiEDASIiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////////////////////////////////////////////////7////+/////v////7////+/////////4KD/////////v////7////+/////v////7//////////////w=='),auto!important;
}
* ::selection{
background:rgba(0,0,0,0);
}
input:focus::selection{
background:$color-accent;
}
html, body {
height:100%;
overflow:hidden;
position:relative;
background:$color-bg;
}
body {
font-size:14px;
line-height:16px;
font-family:'Open Sans';
color:$color-text;
white-space:nowrap;
}
.content {
background:$color-fg;
}
$sidepanel-size:300px;
#container {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
overflow:hidden;
transition:right .3s;
&.sidepanel-open {
right:$sidepanel-size;
}
}
#sidepanel {
position:absolute;
z-index: 999999;
width:$sidepanel-size;
top:0;
right:0;
bottom:0;
margin-right:-$sidepanel-size;
background:$color-fg;
border-left:1px solid $color-border;
//box-shadow: 0 0 10px 0 $color-border;
transition:right .3s;
&.sidepanel-open {
right:$sidepanel-size;
}
.open-toggle {
position:absolute;
top:7px;
left:-47px;
width:47px;
height:40px;
background:$color-fg;
padding:10px 10px;
border:1px solid $color-border;
border-right:0;
//box-shadow: 0 0 10px 0 $color-border;
border-radius:3px 0 0 3px;
.bars {
display:block;
position: relative;
width:100%;
height:3px;
background: $color-border;
&:after, &:before {
content:"";
position: absolute;
width: 100%;
height:100%;
top:8px;
left:0;
background: $color-border;
}
&::after {
top:16px;
}
&, &:after, &:before {
//transition:all .3s;
}
&.sidepanel-open {
background:transparent,
}
&.sidepanel-open:before {
background:$color-accent;
transform: rotate(45deg);
}
&.sidepanel-open:after {
background:$color-accent;
transform: rotate(-45deg);
top:8px;
}
}
}
#options {
position:absolute;
left:0;top:3px;
right:0;bottom:0;
padding:5px;
list-style:none;
background:$color-fg;
li {
display:block;
margin-bottom:5px;
background:$color-title;
border:1px solid $color-border;
div {
padding:10px;
}
}
}
}
.nicescroll-rails-hr {
margin-top:3px;
}
.nicescroll-rails-vr {
display:none!important;
}
a {
color:inherit;
}
.navigation {
position:absolute;
top:0;
left:0;
right:0;
z-index:20;
padding:7px 0px 0;
font-size:14px;
box-shadow:0;
::first-letter {
text-transform: uppercase;
}
&.sub {
padding-top:2px
}
.main {
top:0;
position:fixed;
z-index:3;
white-space:nowrap;
border-bottom:0;
overflow:hidden
}
ul {
list-style:none;
li {
display:inline-block;
margin:0 5px;
a {
display:block;
padding: 5px 10px;
line-height: ($nav-height - 22px);
border-radius:3px 3px 0 0;
overflow:hidden;
&.on {
background:#282c34;
border:1px solid $color-border;
border-bottom-color:$color-fg;
position:relative;
&:after {
content:"";
position:absolute;
top:0;
left:0;
right:0;
height:4px;
background:linear-gradient(rgba($color-accent,0.25),rgba($color-accent,0))
}
}
}
}
}
}
.content {
position:absolute;
left:0;
top:$nav-height - 4px;
right:0;
bottom:0;
padding:5px;
border-top:1px solid $color-border;
.tab {
height:100%;
font-size:0;
position:relative;
overflow: auto;
}
.content {
border:1px solid $color-border;
top:$nav-height - 9px;
}
}
.tab {
display:none;
&.on {
display: block;
}
}
// WIDGETS
.widget {
display:inline-block;
height:100%;
position:relative;
font-size:13px;
border:1px solid $color-border;
padding:35px 0;
width:100px;
vertical-align:top;
.title {
border-bottom:1px solid $color-border;
border-left:0;
border-right:0;
background:$color-title;
padding:10px 10px;
position:absolute;
top:0px;
left:0;
right:0;
text-overflow:ellipsis;
overflow:hidden;
height:35px;
}
input {
width:100%;
height:35px;
border:0;
border-left:0;
border-right:0;
background:$color-bg;
color:inherit;
border-top: 1px solid $color-border;
display:block;
margin:0 auto;
padding:10px;
position:absolute;
bottom:0;
left:0;
right:0;
border-top
&:focus {
box-shadow: 0 0 0 1px $color-accent inset;
}
&[disabled] {
color:$color-text-fade;
}
}
}
/* SEPARATOR */
.separator {
width:5px;
display:inline-block;
height:100%;
position:relative;vertical-align:top;
}
/* BUTTON */
$button-size:20px;
.button-wrapper {
height:100%;
overflow:hidden;
.button {
width:100%;
height:100%;
position:relative;
&:after{
content:"";
position:absolute;
height:$button-size;
width:$button-size;
top:50%;left:50%;
margin:(- $button-size/2) 0 0 (- $button-size/2);
border-radius:$button-size;
background:$color-bg;
}
&.on:after {
background:$color-accent;
box-shadow:0 0 0 4px rgba(255,255,255,0.1);
}
}
}
/* STACK (contains any widgets) */
.stack {
width:400px;
height:auto;
padding-bottom:0;
border-bottom: 0;
}
.stack-wrapper {
height:100%;
}
.stack-wrapper .widget {
border-right:0;
border-left:0;
}
.stack-wrapper .widget:nth-child(2n+2) {
}
.stack .widget {
height:70px;
width:100%;
display:block;
padding:0;
border-top:0;
}
.stack .fader {
width:100%;
}
.stack .fader-wrapper {
padding:20px 20px;
float:right;
width:70%;
}
.stack .button-wrapper {
float:right;
width:70%;
}
.stack .widget .title {
width:30%;
height:50%;
border-right:1px solid $color-border;
}
.stack .widget input {
width:30%;
height:50%;
left:0;
right:auto;
border-top:0;
border-right:1px solid $color-border;
}
/* STRIP (vertical fader) */
.fader-wrapper {
padding:20px 15px;
overflow:hidden;
height:100%;
}
.fader{
height:100%;
}