mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-08-31 13:02:45 -06:00
Added monospace for better rendering on WIN-OS
This commit is contained in:
parent
e3718355b8
commit
d72fff83a5
19
Gruntfile.js
19
Gruntfile.js
@ -8,15 +8,18 @@ module.exports = function(grunt) {
|
||||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
|
||||
sourceMap: true,
|
||||
// sourceMapIncludeSources: true,
|
||||
sourceMapName: 'colorPicker.js.map',
|
||||
report: 'gzip'
|
||||
sourceMapName: 'colorPicker.js.map',
|
||||
report: 'gzip'
|
||||
},
|
||||
my_target: {
|
||||
files: {
|
||||
'color.all.min.js': ['colors.js', 'colorPicker.data.js', 'colorPicker.js']
|
||||
}
|
||||
}
|
||||
}
|
||||
my_target: {
|
||||
files: [{
|
||||
'color.all.min.js': ['colors.js', 'colorPicker.data.js', 'colorPicker.js']
|
||||
},{
|
||||
'jQuery_implementation/jQueryColorPicker.min.js':
|
||||
['colors.js', 'colorPicker.data.js', 'colorPicker.js','jQuery_implementation/jqColor.js']
|
||||
}]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load the plugin that provides the "uglify" task.
|
||||
|
4
color.all.min.js
vendored
4
color.all.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -325,7 +325,7 @@
|
||||
replace('_bgs.png', doesBAS64 ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
|
||||
replace('_icons.png', doesBAS64 ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
|
||||
replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur').
|
||||
replace('"Courier New",', !_isIE ? '' : '"Courier New",').
|
||||
// replace('"Courier New",', !_isIE ? '' : '"Courier New",').
|
||||
replace(/opacity:(\d*\.*(\d+))/g, function($1, $2){
|
||||
return !_doesOpacity ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' +
|
||||
Math.round(+$2 * 100) + ')";filter: alpha(opacity=' + Math.round(+$2 * 100) + ')' :
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
||||
|
||||
.cp-app {
|
||||
color: #bbb;
|
||||
font-family: "Courier New", Courier, mono; /* "Courier New", */
|
||||
font-family: monospace, "Courier New", Courier, mono; /* "Courier New", */
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
font-weight: bold;
|
||||
|
@ -23,12 +23,16 @@ Calling the colorPicker on all inputs with the calssName 'color': <pre>$('input.
|
||||
<input class="color" value="hsl(32, 95%, 23%)" />
|
||||
</p>
|
||||
<!-- <button onclick="$colors.colorPicker('destroy')">destroy</button> -->
|
||||
<!-- <script type="text/javascript" src="../color.all.min.js"></script> -->
|
||||
<script type="text/javascript" src="../colors.js"></script>
|
||||
<script type="text/javascript" src="../colorPicker.data.js"></script>
|
||||
<script type="text/javascript" src="../colorPicker.js"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="../color.all.min.js"></script> -->
|
||||
|
||||
<script type="text/javascript" src="jqColor.js"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="jQueryColorPicker.min.js"></script> -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var $colors = $('input.color').colorPicker({customBG: '#222', readOnly: true}).each(function(idx, elm) { // {multipleInstances: true}
|
||||
$(elm).css({'background-color': this.value})
|
||||
|
5
jQuery_implementation/jQueryColorPicker.min.js
vendored
Normal file
5
jQuery_implementation/jQueryColorPicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user