Skip to content

Commit

Permalink
z-index moved from the single color to the container
Browse files Browse the repository at this point in the history
  • Loading branch information
miroshko committed Aug 1, 2015
1 parent 8f95c04 commit 824f549
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-color-picker",
"version": "0.1.6",
"version": "0.1.7",
"authors": [
"Oleksii Miroshko <[email protected]>"
],
Expand Down
4 changes: 2 additions & 2 deletions dist/vanilla-color-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ============================================================
//
// Vanilla Color Picker v 0.1.6
// Vanilla Color Picker v 0.1.7
//
// http://github.com/miroshko/vanilla-color-picker
//
Expand All @@ -11,7 +11,7 @@
(function(global) {

// @todo: bind in as a build step, so css is readable
var basicCSS = '.vanilla-color-picker { display: inline-block; position: absolute; padding: 5px; background-color: #fff; box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.3) } .vanilla-color-picker-single-color { display: inline-block; width: 20px; height: 20px; margin: 1px; border-radius: 2px; z-index: 100 }';
var basicCSS = '.vanilla-color-picker { display: inline-block; position: absolute; z-index: 100; padding: 5px; background-color: #fff; box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.3) } .vanilla-color-picker-single-color { display: inline-block; width: 20px; height: 20px; margin: 1px; border-radius: 2px; }';
function singleColorTpl(color, index, picked) {
var pickedClass = picked ? "vanilla-color-picker-single-color-picked" : '';
return '<div class="vanilla-color-picker-single-color ' + pickedClass + '" tabindex="' + index + '" data-color="' + color + '" style="background-color:' + color + '"></div>';
Expand Down
4 changes: 2 additions & 2 deletions dist/vanilla-color-picker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/vanilla-color-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ============================================================
//
// Vanilla Color Picker v 0.1.6
// Vanilla Color Picker v 0.1.7
//
// http://github.com/miroshko/vanilla-color-picker
//
Expand All @@ -11,7 +11,7 @@
(function(global) {

// @todo: bind in as a build step, so css is readable
var basicCSS = '.vanilla-color-picker { display: inline-block; position: absolute; padding: 5px; background-color: #fff; box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.3) } .vanilla-color-picker-single-color { display: inline-block; width: 20px; height: 20px; margin: 1px; border-radius: 2px; z-index: 100 }';
var basicCSS = '.vanilla-color-picker { display: inline-block; position: absolute; z-index: 100; padding: 5px; background-color: #fff; box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.3) } .vanilla-color-picker-single-color { display: inline-block; width: 20px; height: 20px; margin: 1px; border-radius: 2px; }';
function singleColorTpl(color, index, picked) {
var pickedClass = picked ? "vanilla-color-picker-single-color-picked" : '';
return '<div class="vanilla-color-picker-single-color ' + pickedClass + '" tabindex="' + index + '" data-color="' + color + '" style="background-color:' + color + '"></div>';
Expand Down

0 comments on commit 824f549

Please sign in to comment.