Initial commit

This commit is contained in:
aslauris
2014-05-12 00:00:51 +01:00
commit 952dd715db
39 changed files with 4246 additions and 0 deletions
+420
View File
@@ -0,0 +1,420 @@
/*
colpick Color Picker / colpick.com
*/
/*Main container*/
.colpick {
position: absolute;
width: 346px;
height: 170px;
overflow: hidden;
display: none;
font-family: Arial, Helvetica, sans-serif;
background:#ebebeb;
border: 1px solid #bbb;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
/*Prevents selecting text when dragging the selectors*/
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
/*Color selection box with gradients*/
.colpick_color {
position: absolute;
left: 7px;
top: 7px;
width: 156px;
height: 156px;
overflow: hidden;
outline: 1px solid #aaa;
cursor: crosshair;
}
.colpick_color_overlay1 {
position: absolute;
left:0;
top:0;
width: 156px;
height: 156px;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')"; /* IE8 */
background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff'); /* IE6 & IE7 */
}
.colpick_color_overlay2 {
position: absolute;
left:0;
top:0;
width: 156px;
height: 156px;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')"; /* IE8 */
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
}
/*Circular color selector*/
.colpick_selector_outer {
background:none;
position: absolute;
width: 11px;
height: 11px;
margin: -6px 0 0 -6px;
border: 1px solid black;
border-radius: 50%;
}
.colpick_selector_inner{
position: absolute;
width: 9px;
height: 9px;
border: 1px solid white;
border-radius: 50%;
}
/*Vertical hue bar*/
.colpick_hue {
position: absolute;
top: 6px;
left: 175px;
width: 19px;
height: 156px;
border: 1px solid #aaa;
cursor: n-resize;
}
/*Hue bar sliding indicator*/
.colpick_hue_arrs {
position: absolute;
left: -8px;
width: 35px;
height: 7px;
margin: -7px 0 0 0;
}
.colpick_hue_larr {
position:absolute;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 7px solid #858585;
}
.colpick_hue_rarr {
position:absolute;
right:0;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 7px solid #858585;
}
/*New color box*/
.colpick_new_color {
position: absolute;
left: 207px;
top: 6px;
width: 60px;
height: 27px;
background: #f00;
border: 1px solid #8f8f8f;
}
/*Current color box*/
.colpick_current_color {
position: absolute;
left: 277px;
top: 6px;
width: 60px;
height: 27px;
background: #f00;
border: 1px solid #8f8f8f;
}
/*Input field containers*/
.colpick_field, .colpick_hex_field {
position: absolute;
height: 20px;
width: 60px;
overflow:hidden;
background:#f3f3f3;
color:#b8b8b8;
font-size:12px;
border:1px solid #bdbdbd;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.colpick_rgb_r {
top: 40px;
left: 207px;
}
.colpick_rgb_g {
top: 67px;
left: 207px;
}
.colpick_rgb_b {
top: 94px;
left: 207px;
}
.colpick_hsb_h {
top: 40px;
left: 277px;
}
.colpick_hsb_s {
top: 67px;
left: 277px;
}
.colpick_hsb_b {
top: 94px;
left: 277px;
}
.colpick_hex_field {
width: 68px;
left: 207px;
top: 121px;
}
/*Text field container on focus*/
.colpick_focus {
border-color: #999;
}
/*Field label container*/
.colpick_field_letter {
position: absolute;
width: 12px;
height: 20px;
line-height: 20px;
padding-left: 4px;
background: #efefef;
border-right: 1px solid #bdbdbd;
font-weight: bold;
color:#777;
}
/*Text inputs*/
.colpick_field input, .colpick_hex_field input {
position: absolute;
right: 11px;
margin: 0;
padding: 0;
height: 20px;
line-height: 20px;
background: transparent;
border: none;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
color: #555;
text-align: right;
outline: none;
}
.colpick_hex_field input {
right: 4px;
}
/*Field up/down arrows*/
.colpick_field_arrs {
position: absolute;
top: 0;
right: 0;
width: 9px;
height: 21px;
cursor: n-resize;
}
.colpick_field_uarr {
position: absolute;
top: 5px;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #959595;
}
.colpick_field_darr {
position: absolute;
bottom:5px;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #959595;
}
/*Submit/Select button*/
.colpick_submit {
position: absolute;
left: 207px;
top: 149px;
width: 130px;
height: 22px;
line-height:22px;
background: #efefef;
text-align: center;
color: #555;
font-size: 12px;
font-weight:bold;
border: 1px solid #bdbdbd;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.colpick_submit:hover {
background:#f3f3f3;
border-color:#999;
cursor: pointer;
}
/*full layout with no submit button*/
.colpick_full_ns .colpick_submit, .colpick_full_ns .colpick_current_color{
display:none;
}
.colpick_full_ns .colpick_new_color {
width: 130px;
height: 25px;
}
.colpick_full_ns .colpick_rgb_r, .colpick_full_ns .colpick_hsb_h {
top: 42px;
}
.colpick_full_ns .colpick_rgb_g, .colpick_full_ns .colpick_hsb_s {
top: 73px;
}
.colpick_full_ns .colpick_rgb_b, .colpick_full_ns .colpick_hsb_b {
top: 104px;
}
.colpick_full_ns .colpick_hex_field {
top: 135px;
}
/*rgbhex layout*/
.colpick_rgbhex .colpick_hsb_h, .colpick_rgbhex .colpick_hsb_s, .colpick_rgbhex .colpick_hsb_b {
display:none;
}
.colpick_rgbhex {
width:282px;
}
.colpick_rgbhex .colpick_field, .colpick_rgbhex .colpick_submit {
width:68px;
}
.colpick_rgbhex .colpick_new_color {
width:34px;
border-right:none;
}
.colpick_rgbhex .colpick_current_color {
width:34px;
left:240px;
border-left:none;
}
/*rgbhex layout, no submit button*/
.colpick_rgbhex_ns .colpick_submit, .colpick_rgbhex_ns .colpick_current_color{
display:none;
}
.colpick_rgbhex_ns .colpick_new_color{
width:68px;
border: 1px solid #8f8f8f;
}
.colpick_rgbhex_ns .colpick_rgb_r {
top: 42px;
}
.colpick_rgbhex_ns .colpick_rgb_g {
top: 73px;
}
.colpick_rgbhex_ns .colpick_rgb_b {
top: 104px;
}
.colpick_rgbhex_ns .colpick_hex_field {
top: 135px;
}
/*hex layout*/
.colpick_hex .colpick_hsb_h, .colpick_hex .colpick_hsb_s, .colpick_hex .colpick_hsb_b, .colpick_hex .colpick_rgb_r, .colpick_hex .colpick_rgb_g, .colpick_hex .colpick_rgb_b {
display:none;
}
.colpick_hex {
width:206px;
height:201px;
}
.colpick_hex .colpick_hex_field {
width:72px;
height:25px;
top:168px;
left:80px;
}
.colpick_hex .colpick_hex_field div, .colpick_hex .colpick_hex_field input {
height: 25px;
line-height: 25px;
}
.colpick_hex .colpick_new_color {
left:9px;
top:168px;
width:30px;
border-right:none;
}
.colpick_hex .colpick_current_color {
left:39px;
top:168px;
width:30px;
border-left:none;
}
.colpick_hex .colpick_submit {
left:164px;
top: 168px;
width:30px;
height:25px;
line-height: 25px;
}
/*hex layout, no submit button*/
.colpick_hex_ns .colpick_submit, .colpick_hex_ns .colpick_current_color {
display:none;
}
.colpick_hex_ns .colpick_hex_field {
width:80px;
}
.colpick_hex_ns .colpick_new_color{
width:60px;
border: 1px solid #8f8f8f;
}
/*Dark color scheme*/
.colpick_dark {
background: #161616;
border-color: #2a2a2a;
}
.colpick_dark .colpick_color {
outline-color: #333;
}
.colpick_dark .colpick_hue {
border-color: #555;
}
.colpick_dark .colpick_field, .colpick_dark .colpick_hex_field {
background: #101010;
border-color: #2d2d2d;
}
.colpick_dark .colpick_field_letter {
background: #131313;
border-color: #2d2d2d;
color: #696969;
}
.colpick_dark .colpick_field input, .colpick_dark .colpick_hex_field input {
color: #7a7a7a;
}
.colpick_dark .colpick_field_uarr {
border-bottom-color:#696969;
}
.colpick_dark .colpick_field_darr {
border-top-color:#696969;
}
.colpick_dark .colpick_focus {
border-color:#444;
}
.colpick_dark .colpick_submit {
background: #131313;
border-color:#2d2d2d;
color:#7a7a7a;
}
.colpick_dark .colpick_submit:hover {
background-color:#101010;
border-color:#444;
}
+167
View File
@@ -0,0 +1,167 @@
/* 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-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;
}
/* Slider size and handle placement;
*/
.noUi-horizontal {
height: 5px;
margin-top: 8px;
}
.noUi-horizontal .noUi-handle {
width: 18px;
height: 15px;
left: -15px;
top: -6px;
cursor: pointer;
}
.noUi-horizontal.noUi-extended {
padding: 0 15px;
}
.noUi-horizontal.noUi-extended .noUi-origin {
right: -15px;
}
.noUi-vertical {
width: 18px;
}
.noUi-vertical .noUi-handle {
width: 28px;
height: 34px;
left: -6px;
top: -17px;
}
.noUi-vertical.noUi-extended {
padding: 15px 0;
}
.noUi-vertical.noUi-extended .noUi-origin {
bottom: -15px;
}
/* Styling;
*/
.noUi-background {
background: #FAFAFA;
box-shadow: inset 0 1px 1px #f0f0f0;
}
.noUi-connect {
background: #3FB8AF;
box-shadow: inset 0 0 3px rgba(51,51,51,0.45);
-webkit-transition: background 450ms;
transition: background 450ms;
}
.noUi-origin {
border-radius: 2px;
}
.noUi-target {
border-radius: 4px;
border: 1px solid #D3D3D3;
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-target.noUi-connect {
box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB;
}
/* Handles and cursors;
*/
.noUi-dragable {
cursor: w-resize;
}
.noUi-vertical .noUi-dragable {
cursor: n-resize;
}
.noUi-handle {
border: 1px solid #D9D9D9;
border-radius: 3px;
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;
}
/* Handle stripes;
*/
.noUi-handle:before,
.noUi-handle:after {
content: "";
display: block;
position: absolute;
height: 5px;
width: 1px;
background: #E8E7E6;
left: 6px;
top: 3px;
}
.noUi-handle:after {
left: 9px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
width: 14px;
height: 1px;
left: 6px;
top: 14px;
}
.noUi-vertical .noUi-handle:after {
top: 17px;
}
/* Disabled state;
*/
[disabled].noUi-connect,
[disabled] .noUi-connect {
background: #B8B8B8;
}
[disabled] .noUi-handle {
cursor: not-allowed;
}
+195
View File
@@ -0,0 +1,195 @@
body,
html {
width: 100%;
min-height: 100%;
height: 100%;
}
body {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
.sidebar-wrapper {
padding: 0;
margin: 10px 0;
position: absolute;
top: 0;
left: 3%;
width: 200px;
background: #fff;
box-sizing: border-box;
-moz-box-sizing: border-box;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.6);
}
.sidebar-wrapper h1 {
margin: 0;
padding: 15px 10px 0 10px;
font-size: 2.2em;
color: #fff;
font-weight: 700;
text-shadow: 1px 1px 5px #000000;
}
.sidebar-wrapper h2 {
font-size: 0.9em;
background: #7f8c8d;
color: #fff;
font-weight: 400;
margin: 25px 0 10px 0;
padding: 5px;
}
.sidebar-wrapper h2:first-child {
margin-top: 0;
}
.sidebar-wrapper p {
margin: 0;
padding: 0 10px;
}
.sidebar-wrapper label {
display: block;
width: 100%;
color: #666;
font-size: 0.8em;
padding: 2px 0;
margin-bottom: 2px;
}
.sidebar-wrapper label .value {
font-weight: 700;
}
.sidebar-wrapper input {
width: 90px;
height: 25px;
color: #222;
font-weight: 700;
border: none;
background: #fff;
padding: 2px 4px;
box-sizing: border-box;
-moz-box-sizing: border-box;
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
}
.sidebar-wrapper .input-group {
display: block;
position: relative;
margin-bottom: 10px;
width: 100%;
padding: 0 20px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.sidebar-wrapper .slider-value {
color: #666;
font-size: 0.8em;
}
.sidebar-wrapper .intro {
position: absolute;
padding-bottom: 5px;
top: 0;
width: 100%;
background: #2c3e50;
z-index: 8888;
box-shadow: 0 0 5px #000000;
}
.sidebar-wrapper .intro div {
padding: 0 10px;
font-size: 0.9em;
}
.sidebar-wrapper .intro .created-by {
margin-top: 5px;
color: #ccc;
text-align: right;
font-size: 1.1em;
text-shadow: 1px 1px 5px #000000;
}
.sidebar-wrapper .intro .created-by a {
color: #FF9900;
font-weight: 700;
}
.sidebar-wrapper .intro .created-by a:hover {
text-decoration: underline;
}
.sidebar-wrapper .intro .share {
margin: 10px 0 5px;
text-align: right;
}
.sidebar-wrapper .generator-form-wrap {
margin-top: 114px;
margin-bottom: 166px;
overflow: hidden;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.sidebar-wrapper .samples img {
max-width: 100%;
height: auto;
margin-bottom: 5px;
}
.sidebar-wrapper .buttons-wrap {
position: absolute;
width: 100%;
bottom: 0;
padding: 10px 5px;
background: #2c3e50;
box-sizing: border-box;
-moz-box-sizing: border-box;
z-index: 8888;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.6);
}
.sidebar-wrapper .buttons-wrap .credits-to {
font-size: 0.8em;
text-align: right;
color: #ccc;
margin-top: 15px;
}
.sidebar-wrapper .buttons-wrap .credits-to a {
color: #ccc;
text-decoration: none;
}
.sidebar-wrapper .buttons-wrap .credits-to a:hover {
text-decoration: underline;
}
.btn {
display: block;
width: 100%;
text-align: center;
font-size: 1.1em;
padding: 8px 10px;
margin-bottom: 10px;
color: #fff;
text-decoration: none;
box-sizing: border-box;
-moz-box-sizing: border-box;
cursor: pointer;
}
.btn-samples {
background: #2980b9;
}
.btn-generate {
background: #27ae60;
}
.btn-download {
background: #16a085;
}
input.color-picker {
border-right: 30px solid green;
width: 120px;
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
}
input.color-picker.gradient-start {
border-right: 30px solid #000000;
}
input.color-picker.gradient-end {
border-right: 30px solid #222222;
}
input.color-picker.color-outer {
border-right: 30px solid #666666;
}
input.color-picker.color-inner {
border-right: 30px solid #ffffff;
}
.colpick {
z-index: 9999;
}
.nicescroll-rails {
z-index: 8888 !important;
}
+208
View File
@@ -0,0 +1,208 @@
body, html{
width: 100%;
min-height: 100%;
height: 100%;
}
body{
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
.sidebar-wrapper{
padding: 0;
margin: 10px 0;
position: absolute;
top: 0;
left: 3%;
width: 200px;
background: #fff;
box-sizing:border-box;
-moz-box-sizing:border-box;
box-shadow: 0px 0px 6px rgba(0,0,0,0.6);
h1{
margin: 0;
padding: 15px 10px 0 10px;
font-size: 2.2em;
color: #fff;
font-weight: 700;
text-shadow: 1px 1px 5px rgba(0,0,0,1);
}
h2{
font-size: 0.9em;
background: #7f8c8d;
color: #fff;
font-weight: 400;
margin: 25px 0 10px 0;
padding: 5px;
}
h2:first-child{
margin-top: 0;
}
p{
margin: 0;
padding: 0 10px;
}
label{
display: block;
width: 100%;
color: #666;
font-size: 0.8em;
padding: 2px 0;
margin-bottom: 2px;
.value{
font-weight: 700;
}
}
input{
width: 90px;
height: 25px;
color: #222;
font-weight: 700;
border: none;
background: #fff;
padding: 2px 4px;
box-sizing:border-box;
-moz-box-sizing:border-box;
box-shadow: 0px 0px 1px rgba(0,0,0,0.4);
}
.input-group{
display: block;
position: relative;
margin-bottom: 10px;
width: 100%;
padding: 0 20px;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
.slider-value{
color: #666;
font-size: 0.8em;
}
.intro{
position: absolute;
padding-bottom: 5px;
top: 0;
width: 100%;
background: #2c3e50;
z-index: 8888;
box-shadow: 0 0 5px rgba(0,0,0,1);
div{
padding: 0 10px;
font-size: 0.9em;
}
.created-by{
margin-top: 5px;
color: #ccc;
text-align: right;
font-size: 1.1em;
text-shadow: 1px 1px 5px rgba(0,0,0,1);
a{
color: #FF9900;
font-weight: 700;
&:hover{
text-decoration: underline;
}
}
}
.share{
margin: 10px 0 5px;
text-align: right;
}
}
.generator-form-wrap{
margin-top: 114px;
margin-bottom: 166px;
overflow: hidden;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
.samples{
img{
max-width: 100%;
height: auto;
margin-bottom: 5px;
}
}
.buttons-wrap{
position: absolute;
width: 100%;
bottom: 0;
padding: 10px 5px;
background: #2c3e50;
box-sizing:border-box;
-moz-box-sizing:border-box;
z-index: 8888;
box-shadow: 0 -1px 2px rgba(0,0,0,0.6);
.credits-to{
font-size: 0.8em;
text-align: right;
color: #ccc;
margin-top: 15px;
a{
color: #ccc;
text-decoration: none;
&:hover{
text-decoration: underline;
}
}
}
}
}
.btn{
display: block;
width: 100%;
text-align: center;
font-size: 1.1em;
padding: 8px 10px;
margin-bottom: 10px;
color: #fff;
text-decoration: none;
box-sizing:border-box;
-moz-box-sizing:border-box;
cursor: pointer;
}
.btn-samples{
background: #2980b9;
}
.btn-generate{
background: #27ae60;
}
.btn-download{
background: #16a085;
}
input.color-picker{
border-right:30px solid green;
width: 120px;
box-shadow: 0px 0px 1px rgba(0,0,0,0.4);
}
input.color-picker.gradient-start{
border-right:30px solid #000000;
}
input.color-picker.gradient-end{
border-right:30px solid #222222;
}
input.color-picker.color-outer{
border-right:30px solid #666666;
}
input.color-picker.color-inner{
border-right:30px solid #ffffff;
}
.colpick{
z-index: 9999;
}
.nicescroll-rails{
z-index: 8888 !important;
}