Commit Graph

137 Commits

Author SHA1 Message Date
Jason
c8ce70f964 Restore header for narrow width edit and standardize position 2015-03-23 19:52:18 -05:00
Jason
02e1255580 Use columns instead of flex for narrow-width options 2015-03-23 19:39:21 -05:00
Jason
dac381fb57 Adjust display of name/enabled when in a narrow window 2015-03-23 19:25:39 -05:00
Jason
7a2d978d4a Fix shadowy border thing on edit screen 2015-03-23 18:51:51 -05:00
Jason
030f6df9bb 'Specify' should not stretch to full page width #82 2015-03-23 14:38:03 -05:00
Jason
50ac6b9c48 Remove non-functional 'From Mozilla format' button #79 2015-03-23 14:23:17 -05:00
tophf
da52ff7ee0 Editor: de-tablify options, support for responsive layout 2015-03-21 20:09:58 +03:00
tophf
e0650fde71 Editor: fixes for 0e391f9, refactor, more fixes
* recognize changes in applies-to inputs
* recognize changes only in specified controls
* forget the dirty applies-to ids from a deleted section after the style was saved
* toMozillaFormat: use the actual contents of CodeMirror instances
* toMozillaFormat: allow empty code section with non-empty applies-to
* refactor: simplify, de-kludge, de-duplicate, de-obfuscate, use more descriptive names instead of "items", "a", "b" where appropriate
2015-03-21 20:09:58 +03:00
tophf
6b710e9f56 HTML fixes: close a tag, replace 0px with 0 2015-03-20 17:29:48 +03:00
hideheader
b7483035d5 Flatten the closure, simplify its functions 2015-03-15 16:16:12 -04:00
hideheader
d3f8e38936 Manage dirty flags on all inputs
(1) Record initial value of text, select, and checkbox elements and re/set a
dirty class on each when the value changes.
(2) Combine the individual flags into a global dirty flag.
(3) Add 'dirty' status to the document title.
2015-03-15 14:50:42 -04:00
hideheader
284d4b8ec8 Add editor options
(1) Add UI controls for `keyMap`, `tabSize`, `indentWithTabs`, and
`lineWrapping`; `indentUnit` tracks `tabSize`.
(2) Dispatch `change` events from `loadPrefs` to initialize CM options
from the controls' event listener.
(3) Move stock options from the `CM.fromTextArea` call into `CM.defaults`.
Add `CM.setOption` method, analogous to the instance method, which updates
`CM.defaults` and sets the option in all instances; add `CM.getOption`
which simply returns `CM.defaults[option]`.
(4) Move the new editor functions into `CM.commands` and replace the
functions with commands.
2015-03-15 12:40:38 -04:00
Jason Barnabe
83bcde6569 Merge pull request #61 from tophf/global-search-in-new
Edit style: more tweaks
2015-03-12 13:15:46 -05:00
tophf
55538f808d Edit style: allow adding sections midway, autofocus on manual add 2015-03-12 13:21:11 +03:00
tophf
b8c918e502 Mostly mute CSSLint, re-enable gutter marks, hide squiggles
Only these rules are enabled:
* Parsing Errors
* Disallow empty rules
* Require use of known properties
* Require properties appropriate for display
2015-03-12 13:18:57 +03:00
hideheader
8140e16474 Fix 'dirty' indicator on 'Code' boxes
Toggle a class on the container instead of changing label text.
2015-03-10 11:45:13 -04:00
Jason Barnabe
0bf5a1c748 Merge pull request #59 from tophf/global-search
Search all sections on find, findNext, findPrev when invoked from the editor
2015-03-06 20:08:22 -06:00
tophf
74268d98eb Indicate active code box with a darker border 2015-03-07 04:06:41 +03:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
20123760ac Edit style: use 'sublime' keymap, add custom keys
F3, Shift-F3, Ctrl-H - find/find previous/replace
Ctrl-G: go to line dialog
Alt-PgDn: next code section
Alt-PgUp: previous code section
...and many more.
2015-03-05 09:59:11 +03:00
Jason Barnabe
a312794207 Merge pull request #45 from tophf/editbox-fullpagewidth
Edit style: expand URL boxes to page width
2015-03-03 20:06:03 -06:00
Jason Barnabe
110c31d495 Merge pull request #46 from tophf/hotkeys-in-edit
Edit style: add Ctrl-S hotkey to save the style
2015-03-03 14:36:50 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
e8c5c6dfd4 Edit style: add Ctrl-S hotkey to save the style 2015-03-03 23:26:22 +03:00
tophf
89d3596beb Edit style: expand applies-to-URL block to page width 2015-03-03 22:58:05 +03:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
5a0e465f2a Edit style: autocomplete on Ctrl-Space using CodeMirror hint addon 2015-03-03 21:16:24 +03:00
Jason Barnabe
b4173d68f6 Add CodeMirror addons - search, code folding, match brackets, lint 2015-02-24 22:05:00 -06:00
Jaroslav Petrnoušek
20d32fc3af Made the CodeMirror area wider, more fixes
Sorry, forgot some things. Now it should be right.
2015-02-19 18:42:34 +01:00
Jaroslav Petrnoušek
b2b6c855b5 Updated responsive design
Fixed everything that wasn't lined up properly and shrinked some paddings to make more space for the editor. It also cuts off earlier now.
Not sure what to do with the section borders, they seem alright to me.
2015-02-19 18:29:57 +01:00
Jaroslav Petrnoušek
2bb42138c9 Added responsive design for editor
Fixes #28
It's not perfect, but it should work well. Suggestions welcome.
2015-02-18 16:57:33 +01:00
Jason Barnabe
5e3efb3df6 Apply styles to Stylish pages 2015-02-08 22:25:35 -06:00
Jason Barnabe
d879b5e0c4 Add option for smart indentation in editor 2015-02-08 22:02:08 -06:00
Jason Barnabe
e9c34da152 Unix line endings 2015-02-08 21:32:06 -06:00
Jason Barnabe
5d1e987a38 issue 80 Add 'id' attribute to 'HTML' or 'BODY' element in Stylish for Chrome settings pages 2013-01-25 18:50:46 -06:00
Eric Wood
d0132dcefe Removed version number from codemirror directory 2012-11-29 11:10:11 -06:00
Eric Wood
a6f3bb5c82 Saving now works, fixed styling 2012-11-27 12:18:06 -06:00
Eric Wood
b87ab87ce0 Replace textarea instaces CodeMirror
Added CodeMirror files
TODO: remove unnecessary files
2012-11-27 12:06:37 -06:00
Jason Barnabe
9270dc1596 issue 44 Stop using deprecated Chrome APIs 2012-08-19 20:14:33 -05:00
Jason Barnabe
b019038f57 initial commit 2012-04-15 20:56:12 -05:00