2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-23 01:44:31 -06:00

added 'smaller' demo

This commit is contained in:
peterd 2015-02-02 15:21:33 +01:00
parent fe15d5e99c
commit 37786c4b9b

View File

@ -21,6 +21,7 @@ On all inputs with calssName 'color': <pre>$('input.color').colorPicker();</pre>
<option value="mobile">Mobile</option>
<option value="input">Input fields</option>
<option value="noalpha">Default without alpha</option>
<option value="small">Default but smaller</option>
</select>
(see index.js for more details...)
</p>
@ -186,6 +187,15 @@ window.myColorPicker = $('input.color').colorPicker({
opacity: false
};
// the default but smaller
plugin.small = {
customBG: '#222',
margin: '4px -2px',
cssAddon: // could also be in a css file instead
'.cp-xy-slider{width:100px; height:100px;}' +
'.cp-z-slider{height:100px;}'
};
pluginSelect.value = type;