tophf
a7b8286e4f
remove textareas
2017-11-24 13:19:11 +03:00
tophf
e1fae23927
init CM to usercss @preprocessor before setting the code
2017-11-24 13:19:11 +03:00
tophf
0ed6e3d4bf
don't reinsert reinterpreted color on start
...
do it only on the Enter key or once the user explicitly changed the color at least once
2017-11-24 13:19:10 +03:00
tophf
e0ea76a940
colorpicker hotkey: find color at cursor in strings/comments
2017-11-24 13:19:10 +03:00
tophf
8c5471092c
rework install-usercss: CSS, layout, warnings
2017-11-24 13:19:10 +03:00
tophf
78bf2c8d9b
close colorpicker config on Enter
2017-11-24 13:19:10 +03:00
tophf
612b21c732
register colorpicker command on first use
2017-11-24 13:19:09 +03:00
tophf
64cb128b06
intercept the hotkey assigned to colorpicker via hotkeyRerouter
2017-11-24 13:19:09 +03:00
tophf
5d00602ada
switch colorpicker popup format on PgUp/PgDn only, not Tab
2017-11-24 13:19:09 +03:00
tophf
e9abcc8031
install-usercss: css tweaks
...
* pad the Install button
* remove global * selector
* add narrow @media query
* simplify css
2017-11-24 13:19:09 +03:00
tophf
d767ad7a8c
autoLoadMode -> loadScript; chain to avoid flicker on load
2017-11-24 13:19:08 +03:00
tophf
786cde781d
pull out colorpicker-helper.js
2017-11-24 13:19:08 +03:00
tophf
fc20479ab4
correctly unhook colorpicker in usercss#stylus mode
2017-11-24 13:19:08 +03:00
tophf
2c82cc3bbc
fix glitching on highlighting of current token
2017-11-24 13:19:08 +03:00
tophf
7bae73bcb4
add onclick for colorpicker-settings icon in usercss mode
2017-11-24 13:19:07 +03:00
tophf
75da5c50ce
colorpicker Ctrl-up/down steps in 50 on S, L, .5 on alpha
2017-11-24 13:19:07 +03:00
tophf
6c858d6449
fix colorpicker hotkey config
2017-11-24 13:19:07 +03:00
tophf
2a0ecec28e
show color swatches in usercss with stylus preprocessor
2017-11-24 13:19:07 +03:00
tophf
aa2fef7f72
more keyboard control in colorpicker popup
...
hex mode similar to chrome-devtools:
* Ctrl-Up/Down for R channel
* Shift-Up/Down for G channel
* Alt-Up/Down for B channel
* Up/Down treats the entire color as a hex integer e.g. #00f -> #010
rgb/hsl modes similar to chrome-devtools:
* Ctrl-Up/Down steps by 100 (alpha: by 1)
* Shift-Up/Down steps by 10 (alpha: by .1)
* Up/Down steps by 1 (alpha: by .01)
* PgUp/PgDn to switch format
* Tab to switch format when at the first/last input field
2017-11-24 13:19:06 +03:00
tophf
b99391887d
add colorpicker hotkey config icon [default: none]
...
* uses the last submitted color by default
* doesn't insert the default color until a change or the Enter key
* fix a few bugs in colorpicker introduced in the rewrite
2017-11-24 13:19:06 +03:00
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
7f37b8d1dd
unify markup and CSS for icons within options
2017-11-24 13:19:05 +03:00
tophf
aa1ac63c1c
fix svg icon rendering in FF: symbols don't need size
2017-11-24 13:19:05 +03:00
Rob Garrison
eee9e30413
Add Discord chat badge
2017-11-23 13:33:59 +03:00
tophf
777adf1bae
correctly fix the USO bug with populating settings on their site
...
previously we disconnected the interceptor on first XHR response, which is not necessarily for the style, so now we wait until an actual one.
2017-11-21 13:42:51 +03:00
tophf
e8d0c7d039
update button on USO page now confirms only on the first click
2017-11-21 13:33:11 +03:00
tophf
f1836f399f
try to get style json on USO install page twice
...
also report errors
fixes #195
2017-11-21 13:23:32 +03:00
tophf
4e9e4d24b1
bump version to 1.1.6.1
2017-11-21 11:03:22 +03:00
tophf
24c60b7e8a
fixup 8a1908b7: don't protect disabled elements
2017-11-21 10:59:14 +03:00
tophf
46df47bf31
bump version to 1.1.6
2017-11-21 10:10:29 +03:00
tophf
00ead83da9
don't hardcode homepage URL, extract it from "Get Help" translation
2017-11-21 09:48:55 +03:00
tophf
8a1908b760
protect own style elements (100 times max to avoid deadlocks)
...
fixes #252
2017-11-21 09:45:44 +03:00
tophf
5d905c2952
Merge pull request #239 from openstyles/colorpicker
...
Colorpicker in the editor
2017-11-20 15:21:40 +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
271aa79355
pull locales from transifex
2017-11-20 15:06:27 +03:00
tophf
c50b251ae4
add original colorpicker plugin
2017-11-19 15:55:35 +03:00
tophf
10ce4eeefa
prefs.subscribe: allow multiple listeners for one key
2017-11-19 15:55:35 +03:00
tophf
0ded91d987
apply extension userstyles to install-usercss page
2017-11-18 12:04:12 +03:00
tophf
9689288bdc
new editor option: autoclose brackets/quotes [default: off]
2017-11-17 02:36:05 +03:00
tophf
09c16ac541
force break-wrapping in regexp-tester's details
2017-11-17 02:17:21 +03:00
tophf
559420a461
FF: outline the active code box
...
-webkit-focus-ring-color rgb value is used, but not the blurred effect (TODO)
2017-11-15 11:49:02 +03:00
tophf
9f4066faa1
code cosmetics: remove redundant comments
2017-11-15 11:36:24 +03:00
tophf
5a9227ce8c
speedup usercss opening: combine a few ops
2017-11-15 11:35:54 +03:00
tophf
15c98bac9e
fixup 8ca7c363: focus() must be the last action
2017-11-15 11:33:37 +03:00
tophf
82651ed6cd
usercss: create applies-to widgets faster on load
...
only the visible portion is built immediately, the rest is throttled
2017-11-15 10:54:19 +03:00
tophf
06cc703887
use CSS variables for applies-to line widgets
2017-11-15 09:04:09 +03:00
tophf
14dbfdd915
update applies-to widget on any style changes
2017-11-15 08:32:22 +03:00
tophf
9868a1819c
actually focus code after import
2017-11-15 08:15:06 +03:00
tophf
fc5c00e37d
all actions must always return a Promise
2017-11-15 07:11:46 +03:00