Browse Source

blank cursor with css only

pull/16/head
peterd 7 years ago
parent
commit
229573ecec
  1. 8
      colorPicker.data.js
  2. 2
      colorPicker.js
  3. 2
      index.css

8
colorPicker.data.js
File diff suppressed because it is too large
View File

2
colorPicker.js

@ -11,7 +11,6 @@
// _patchesPng: ..., // background images for square sliders in RGB mode
// _iconsPng: ..., // some icon sprite images
// _bgsPng: ..., // some more icon sprite images
// _blankPng: ... // the blank 16x16px image for the transparent cursor
// }
_devMode = !_data, // if no _data we assume that colorPicker.data.js is missing (for development)
_isIE = document.createStyleSheet !== undefined && document.getElementById || !!window.MSInputMethodContext,
@ -329,7 +328,6 @@
replace(/§/g, prefix).
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(/opacity:(\d*\.*(\d+))/g, function($1, $2){
return !_doesOpacity ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' +

2
index.css

@ -227,7 +227,7 @@ a {
border-color: #333;
}
.no-cursor .hsv-cursor, #hsv_map.no-cursor .cover {
cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQI12P4//8/MwAI/wMBbrqo4gAAAABJRU5ErkJggg==), auto;
cursor: none; /* also works in IE8 */
/*url(_blank.gif), url(_blank.png), url(_blank.cur), auto;*/
}
#luminanceBar {

Loading…
Cancel
Save