Skip to content

Commit

Permalink
Release 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscabo committed Jun 28, 2017
1 parent 796a556 commit 3eea4fe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JQuery Palette Color Picker
# JQuery Palette Color Picker v1.12
JS component to pick colors from a predefined / restricted palette. <mark>Take a look to the `demo.html` included in this repository to see it in action.</mark>

![Snapshot](https://raw.githubusercontent.com/carloscabo/jquery-palette-color-picker/master/img/snapshot.png)
Expand Down Expand Up @@ -155,6 +155,7 @@ $( input_element ).data('paletteColorPickerPlugin').reload();
* close_all_but_this
* onbeforeshow_callback()
* Style to force bubble to be shown on left side
* More samples
* V.1.10 (2017/06/27) Some improvements by several people, thx!
* [slavede](https://github.com/slavede) Added bower.json
* [eafarooqi](https://github.com/eafarooqi) Reload value after programatically update
Expand Down
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h3>Sample 3</h3>
<h3>Sample 3B</h3>
<input type="text" id="unique-id-3b" name="unique-name-3b" data-palette='["#D50000","#304FFE","#00B8D4","#69F0AE","#FFFF00"]'
value="#00B8D4">
<p>The control can be inserted <b>before or after</b> the input. And the bubble opens to the left side.</b>.</p>
<p>The bubble is forced to the left side of the button adding the <b>.force-left</b> class.</p>
</div>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion src/palette-color-picker.css

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

4 changes: 2 additions & 2 deletions src/palette-color-picker.min.js

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

9 changes: 9 additions & 0 deletions src/palette-color-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,13 @@ $cpfp-background: #fff;
}
}

// Force open on left side
&.force-left {
left: -178px;
&:after,
&:before {
left: 188px;
}
}

}

0 comments on commit 3eea4fe

Please sign in to comment.