tophf
a66c377d8a
fix scrolling over linter issues in usercss mode
2017-12-28 07:01:43 +03:00
tophf
5df76b04e2
disable #save button right after opening a style
2017-12-25 02:26:01 +03:00
tophf
487bc77baa
actually replace 'usercssTemplate'
2017-12-24 01:50:53 +03:00
tophf
d0380f76c3
rewrite colorview to use CodeMirror::TextMarker
...
* solves all problems with glitching on selection etc.
* perceived performance is same due to lazy-processing
* colors unsupported in current browser are displayed internally as RGB
* the color text is highlighted in the editor when popup is invoked
2017-12-22 11:22:35 +03:00
tophf
31fd551264
trivial speed-ups for the single editor case
2017-12-18 10:27:50 +03:00
tophf
60a5fb96be
don't steal focus from the find input on page open
2017-12-11 08:32:11 +03:00
tophf
9c8e835a80
relay scrolling over #header to usercss code section
2017-12-07 04:36:46 +03:00
tophf
c0c60fb7a2
add a terse invocation syntax for $element and rename it to $create
2017-12-04 08:57:12 +03:00
tophf
8622dffe1e
usercss: make nextPrevMozDocument work with minified CSS
2017-12-03 04:05:35 +03:00
tophf
0e61de2920
edit.js: pull out hooks, sections, keymap help, beautify
...
just a simple preparation for a proper encapsulation in the future
2017-12-02 23:46:00 +03:00
tophf
fbd7526092
usercss: Alt-PgUp/PgDn go to prev/next @-moz-document
2017-12-02 18:29:12 +03:00
tophf
71f3dfbffd
usercss: don't relint on save; mode is an object once initialized
2017-11-30 20:42:52 +03:00
tophf
be633bf903
usercss: update URL and sessionStorage on replacing the style
2017-11-29 13:35:27 +03:00
tophf
260cbddae0
usercss: force-refresh codemirror on saving to repaint vars
2017-11-29 13:27:55 +03:00
tophf
493c1a65c0
worker for stylelint; hints in linter config popup
2017-11-28 20:07:37 +03:00
tophf
d660e6bd72
usercss validator: more precise error position report
2017-11-27 14:54:18 +03:00
tophf
13d7e30a75
usercss saving: display errors from mozparser in <pre>
2017-11-27 06:55:12 +03:00
tophf
8d3fd9cc3b
fixups for a58f42de
(backtick) and 05677d93
(copy changed meta)
2017-11-27 03:19:31 +03:00
tophf
05677d93b3
usercss: use cm.changeGeneration() to detect dirtiness
2017-11-27 00:57:25 +03:00
tophf
a58f42dee0
usercss editor: save as template when @name is empty
...
* reduced the flickering on page open
* show * in title for new styles
* align the values in the default template
* don't ask to save an untouched template
* don't spam the console with errors
* trivial code refactor and cosmetics
2017-11-26 18:43:40 +03:00
tophf
74701810b7
remove cruft; silence eslint
2017-11-24 13:19:15 +03:00
tophf
479d95711b
linter report expands/collapses on click; the state is saved
2017-11-24 13:19:15 +03:00
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
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
7bae73bcb4
add onclick for colorpicker-settings icon in usercss mode
2017-11-24 13:19:07 +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
8ca7c36380
focus code on opening usercss editor
2017-11-15 04:27:33 +03:00
eight
a1c1eb328b
Add: draw line pointer for parsing error
2017-11-09 15:55:06 +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
0d06f32735
Fix: updateMetas -> updateMeta
2017-11-09 09:12:13 +08:00
eight
eef17cc4f8
Fix: replaceMetas -> replaceMeta
2017-11-09 09:12:12 +08:00
eight
6a53ea423c
Refactor: pull out createAppliesToLineWidget
2017-11-01 11:17:00 +08:00
eight
8f642dc05c
Fix: drop innerHTML
2017-11-01 11:17:00 +08:00
eight
534803ccfd
Fix: isWarm
2017-11-01 11:17:00 +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
be4a896bc9
Fix: disable CSSLint option in stylus mode
2017-10-16 14:54:47 +08:00
eight
95902388a3
Fix: default linter hacks
2017-10-16 03:58:02 +08:00
eight
96a046f774
Fix: toggle style outside of the editor
2017-10-15 04:18:23 +08:00
eight
a1ca416ef2
Fix: miss makeLink global
2017-10-15 02:59:28 +08:00
eight
ce2a21451a
Add: usercss documentation link in the editor
2017-10-11 22:23:39 +08:00
eight
228057d231
Add: make source editor work with newly created style
2017-10-08 23:26:55 +08:00
eight
50a5bbecfa
Add: regexp tester in applies-to line widget
2017-10-08 22:03:27 +08:00
eight
fc51d806da
Fix: force using stylelint when editor mode is not css
2017-10-07 18:00:25 +08:00
eight
0f6de587ec
Add: remove/add button in applies-to widget
2017-10-06 01:10:45 +08:00