tophf
a7b8286e4f
remove textareas
2017-11-24 13:19:11 +03:00
tophf
64cb128b06
intercept the hotkey assigned to colorpicker via hotkeyRerouter
2017-11-24 13:19:09 +03:00
tophf
786cde781d
pull out colorpicker-helper.js
2017-11-24 13:19:08 +03:00
tophf
6c858d6449
fix colorpicker hotkey config
2017-11-24 13:19:07 +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
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
9689288bdc
new editor option: autoclose brackets/quotes [default: off]
2017-11-17 02:36:05 +03:00
tophf
9868a1819c
actually focus code after import
2017-11-15 08:15:06 +03:00
tophf
b9f6095db5
focus code on opening standard editor immediately
2017-11-15 04:53:37 +03:00
tophf
8517e392fe
throttle mozImport after 100ms, display progress after 500ms
...
* Ctrl-Enter = append button
* Shift-Ctrl-Enter = replace button
* instantaneous readiness of import dialog on non-blank input
* code dedup: addSections()
* trimNewLines() -> trim()
2017-11-15 04:24:36 +03:00
tophf
95be66cb61
convert another tHTML in edit.js to $element
2017-11-14 09:36:43 +03:00
tophf
70a827b033
dd69e1e5 followup + handle empty at-values
...
see #235
2017-11-14 08:55:53 +03:00
eight
7543b8406f
Fix: messageBox global
2017-11-09 15:56:29 +08:00
eight
4d8268bb27
Fix: use messageBox
2017-11-09 14:40:46 +08:00
eight
c2687573b3
Add setStyleDirty, refactor replaceStyle
2017-11-09 14:11:27 +08:00
eight
d93bf05f64
Fix: isWarm -> isTouched
2017-11-09 14:11:27 +08:00
eight
9a8c19b09b
Fix: move isClean into unbeforeunload handler
2017-11-09 14:11:26 +08:00
eight
95e3ba13cd
Fix: newStyleInUsercss -> newStyleAsUsercss
2017-11-09 09:12:14 +08:00
eight
eef17cc4f8
Fix: replaceMetas -> replaceMeta
2017-11-09 09:12:12 +08:00
eight
b4dfe5c836
Fix: use isArray
2017-11-09 09:12:12 +08:00
eight
c4c4b5638e
Refactor: isUsercss
2017-11-09 09:12:12 +08:00
eight
92cadc03fa
Fix: avoid return short circuit for editor selection
2017-11-09 09:12:11 +08:00
eight
d981660983
Fix: drop getParams
2017-11-01 11:17:00 +08:00
eight
45da3ff50e
Fix: style.id consistency
2017-11-01 11:16:59 +08:00
eight
13ca45a104
Fix: reorder global comment
2017-11-01 11:16:46 +08:00
eight
79b6266cf9
Fix: no new line before use strict
2017-11-01 11:13:57 +08:00
eight
ce348d4f86
Fix: add isWarm flag to decide if the editor can be reloaded
2017-10-16 16:08:13 +08:00
eight
96a046f774
Fix: toggle style outside of the editor
2017-10-15 04:18:23 +08:00
eight
54076d9f17
Merge branch 'master' of https://github.com/openstyles/stylus into dev-user-css
2017-10-12 16:28:18 +08:00
eight
cd00c20fa4
Fix: newStyleFormat -> newStyleInUsercss
2017-10-09 00:52:05 +08:00
eight
1a6f9dfcaa
Add: confirmation to replace dirty style
2017-10-09 00:43:00 +08:00
eight
228057d231
Add: make source editor work with newly created style
2017-10-08 23:26:55 +08:00
eight
8007f47c09
Revert "Add: save usercss from multi-section editor"
...
This reverts commit da5626a6d7
.
2017-10-08 22:08:47 +08:00
eight
9ee7e2046c
Refactor: split out regexp tester
2017-10-07 23:41:37 +08:00
eight
765231581c
Fix: onbeforeunload handler would disable the save button
2017-10-07 18:10:00 +08:00
eight
da5626a6d7
Add: save usercss from multi-section editor
2017-10-06 17:05:51 +08:00
eight
b69b834949
Fix: handle editor.options.expanded
2017-10-04 16:47:56 +08:00
eight
bb508b6933
Fix: import error is not displayed correctly
2017-10-04 16:39:02 +08:00
eight
04ebc837e2
Fix: use closeCurrentTab
2017-09-25 18:45:44 +08:00
eight
7365a8bada
Fix: various fixes
2017-09-25 18:43:55 +08:00
eight
24cd85688f
WIP: install page + editor
2017-09-24 16:54:21 +08:00
tophf
2d8adf1173
restore size on reopening a closed editor tab
2017-09-23 21:33:57 +03:00
eight
a4e3fba968
Fix: source editor is not closed when style is removed
2017-09-19 08:51:57 +08:00
eight
90ca2f2d23
Fix: autocomplete should use changes event
2017-09-18 07:33:07 +08:00
eight
a0495f466f
Change style structure
2017-09-16 10:14:23 +08:00
eight
3c450e7d9d
Fix: resize grip style
2017-09-13 20:28:19 +08:00
eight
b102aa0704
Fix: beforeunload warning
2017-09-13 16:56:16 +08:00
tophf
3d0b811b27
edit: throttle setOption for 'theme' and 'lineWrapping'
...
when the style has more than 4 sections, these options are propagated to CM instances in 100 ms chunks, and a progress overlay is shown over the corresponding option element after 100 ms
2017-09-12 23:19:10 +03:00
eight
2506b957f8
Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injectScript
2017-09-12 23:19:16 +08:00
eight
dc37588cd1
Fix: drop windowLoaded
2017-09-12 21:34:12 +08:00