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
eight
b69b834949
Fix: handle editor.options.expanded
2017-10-04 16:47:56 +08:00
eight
24cd85688f
WIP: install page + editor
2017-09-24 16:54:21 +08:00
eight
a4e3fba968
Fix: source editor is not closed when style is removed
2017-09-19 08:51:57 +08:00
eight
1d829fe8f5
Fix: split up usercss logic from saveStyle
2017-09-18 11:34:12 +08:00
eight
a0495f466f
Change style structure
2017-09-16 10:14:23 +08:00
eight
4d6f856473
Revert "Add: scroll the editor when cursor is outside of the editor"
...
This reverts commit 5a9ac5ce7d
.
2017-09-16 07:33:12 +08:00
eight
a73493d5d2
Add: make applies-to line widget editable
2017-09-15 17:13:58 +08:00
eight
693a0483e3
Add: offset info
2017-09-15 15:36:44 +08:00
eight
ccb5f488e5
Fix: move to new format
2017-09-15 14:11:58 +08:00
eight
5a9ac5ce7d
Add: scroll the editor when cursor is outside of the editor
2017-09-15 07:47:44 +08:00
eight
70bbc08ee0
Add editor.appliesToLineWidget option
2017-09-14 09:58:22 +08:00
eight
37c83ce187
Fix: shouldn't contain new line
2017-09-14 09:10:11 +08:00
eight
b7b5888431
Fix: should't edit the style object directly returned from getStyles cache
2017-09-14 09:09:40 +08:00
eight
97fd2aa083
Compat: firefox
2017-09-13 23:35:34 +08:00
eight
411df8b051
Fix: no need to use $$ for element existence check
2017-09-13 20:39:42 +08:00
eight
d7f0e3c176
fixup! Fix: draw title
2017-09-13 17:33:32 +08:00
eight
0e92e6d0c7
Add applies-to line widget
2017-09-13 16:58:03 +08:00
eight
6195e558e4
Fix: draw title
2017-09-13 16:57:01 +08:00
eight
b102aa0704
Fix: beforeunload warning
2017-09-13 16:56:16 +08:00