Commit Graph

90 Commits

Author SHA1 Message Date
tophf
352846c8b4 fix and update ColorView.openPopup() 2017-11-24 13:19:06 +03:00
tophf
ce8a0a2d42 assign color swatches correctly: skip overlays in the middle 2017-11-24 13:19:05 +03:00
tophf
37a62b0407 fix/rewrite/integrate colorpicker
* full rewrite of colorview.js to make it 10-100 times faster (render on demand via extendMode)
* full rewrite of colorpicker.js to simplify CSS
* automatic light/dark theme based on current color of the editor
* fixes, tweaks, speedups
* color spot will always be on the left of its text i.e. no line break on wrapping
* support #RRGGBBAA and #RGBA hex colors
* support "transparent" as rgba(0, 0, 0, 0)
* HEX/hex toggle
* fix HSLA regexp
* Esc/Enter key to close
* innerHTML -> textContent
* toggle the feature correctly
* fade out before autohiding
* always show alpha 1 like devtools does
* set cursor:pointer only on the clickable part of the sliders
* bigger color format switcher with a tooltip
* autofocus input on open, disable spellcheck
* try not to obscure the source color spot & text
* restore focus without scrolling
2017-11-20 15:19:58 +03:00
tophf
c50b251ae4 add original colorpicker plugin 2017-11-19 15:55:35 +03:00
tophf
2a95793de0 csslint: fix PropertyValuePart.serializeString
Two old csslint bugs fixed:
* in the absence of capturing groups the replacer function receives the text and index
* the actual string "c" should be used to get character codes, not String class
2017-11-14 09:08:04 +03:00
tophf
5a4e1290d3 csslint: fire "enddocument" on }
fixes #235
2017-11-14 08:55:45 +03:00
tophf
d4ce2b2def csslint: add compat prefixes for flex*, remove ms-box-* 2017-10-19 19:25:05 +03:00
tophf
2421a7ae99 csslint: update user-select 2017-10-19 19:18:09 +03:00
tophf
213da44fcc csslint: add border-image-repeat: space 2017-10-19 19:18:05 +03:00
tophf
22284f34cb csslint: fix color values 2017-10-19 19:18:05 +03:00
Rob Garrison
f5342bd37e Lint: Add -webkit-sticky support to CSSLint 2017-10-11 01:01:24 +03:00
tophf
79c6f3e578 csslint: support var() in compound properties 2017-08-29 19:10:42 +03:00
tophf
9946f3c781 regroup some of lint* data and code
* all lint-related js files are prefixed by lint-
* config-related stuff is grouped in linterConfig
* CM helper is rewritten and moved in /edit now that CSSLint supports these features
* chromeSync methods that apply LZString got LZ in their names
* empty string is used for 'disabled' in linter selector
2017-08-28 15:20:37 +03:00
tophf
dfc3deaf01 csslint: support background-blend-mode 2017-08-28 15:20:37 +03:00
tophf
5c506f5cc9 csslint: support unicode-range 2017-08-28 12:53:10 +03:00
tophf
f80af3721c csslint: fix hsl/hsla regexp as per spec
* hue can be deg, %, rad, grad, turn - deg is default
* all numbers can be fractional
* hsla = hsl
2017-08-28 12:53:10 +03:00
Rob Garrison
6c3501bf9a Use rules or config consistently 2017-08-27 17:20:48 -05:00
Rob Garrison
21e22c2b6f Rename CSSLint ruleset to config 2017-08-27 17:20:48 -05:00
Rob Garrison
e96f0808ed Rename CSSLint rule config file & variable 2017-08-27 17:20:47 -05:00
Rob Garrison
988af5f1b8 Store linter rules with sync & LZ compression 2017-08-27 17:20:47 -05:00
Rob Garrison
cbe6decb03 Assign stylelint to global, not lint 2017-08-27 17:20:47 -05:00
Rob Garrison
9c4b7bc310 Update stylelint bundle readme 2017-08-27 17:20:47 -05:00
Rob Garrison
3085b71891 Update to optimized stylelint bundle 2017-08-27 17:20:46 -05:00
Rob Garrison
ac1ffa98b5 Add CSSLint rule configuration 2017-08-27 17:20:46 -05:00
Rob Garrison
8645469d3b csslint warning update 2017-08-27 17:20:46 -05:00
Rob Garrison
ce906eb4b6 Move csslint-worker file 2017-08-27 17:20:45 -05:00
Rob Garrison
1fc17861db Remove "Unexpected" from stylelint messages 2017-08-27 17:20:45 -05:00
Rob Garrison
d563495c26 Fix no-inline-comments issues 2017-08-27 17:20:45 -05:00
Rob Garrison
5ce7a925cb Move stylelint-config to edit folder 2017-08-27 17:20:45 -05:00
Rob Garrison
91825d11fd Clean up modified css-lint 2017-08-27 17:20:45 -05:00
Rob Garrison
29851a8de9 Dynamically load linter when selected 2017-08-27 17:20:44 -05:00
Rob Garrison
06130446c6 Set default stylelint severity warning 2017-08-27 17:20:43 -05:00
Rob Garrison
f52f8c57d8 Rename linter.js to css-lint.js 2017-08-27 17:20:43 -05:00
Rob Garrison
06cd78b643 Add stylelint settings popup & cleanup 2017-08-27 17:20:43 -05:00
Rob Garrison
07dce1006d Split out lint code from edit.js 2017-08-27 17:20:43 -05:00
Rob Garrison
dfa71f699e Add linter select option 2017-08-27 17:20:42 -05:00
Rob Garrison
139d7ebb98 Show stylelint warnings & use minified bundle 2017-08-27 17:20:42 -05:00
Rob Garrison
a44b4e7822 Switch from CSSLint to stylelint 2017-08-27 17:20:42 -05:00
Rob Garrison
1a630033bd Use a single declaration per line 2017-07-14 04:10:00 -05:00
Rob Garrison
7a9d629ec8 Restructure folders 2017-07-12 16:26:20 -05:00