Commit Graph

75 Commits

Author SHA1 Message Date
eight
057111b171 Update usercss API 2018-10-07 22:59:31 +08:00
eight
69cae02381 Drop getStyles 2018-10-07 21:40:29 +08:00
Rob Garrison
5f60c519ce Alas, poor clamp! I knew it well 2018-09-24 07:02:04 -05:00
Rob Garrison
b0fbdfb6e9 Update number input on blur 2018-09-24 07:02:04 -05:00
Rob Garrison
93dee41c11 Don't re-render input while focused 2018-09-24 07:02:04 -05:00
Rob Garrison
c18671c91c Fix undefined value 2018-09-24 07:02:04 -05:00
Rob Garrison
a0ffdb7645 Update current value in updateRangeCurrentValue 2018-09-24 07:02:04 -05:00
Rob Garrison
ec16a0c1e0 Remove onblur, don't save invalid inputs 2018-09-24 07:02:04 -05:00
Rob Garrison
40f580a0b2 Change stored number value on change 2018-09-24 07:02:04 -05:00
Rob Garrison
5af74a9d80 Remove isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
40a3abbee8 Fix isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
d00e5f4ddb Change clamp function order & only call onblur 2018-09-24 07:02:04 -05:00
Rob Garrison
f2c973096b Fix clamp function 2018-09-24 07:02:04 -05:00
Rob Garrison
2c7742e56f Check for null in isNumber 2018-09-24 07:02:04 -05:00
Rob Garrison
15a0521408 Fix clamp function 2018-09-24 07:02:04 -05:00
Rob Garrison
f35077afce Fix clamp undefined step 2018-09-24 07:02:04 -05:00
Rob Garrison
7fff670683 Fix clamp undefined min/max 2018-09-24 07:02:04 -05:00
Rob Garrison
375e0ec448 Switch to isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
314ec99e5c More suggested changes 2018-09-24 07:02:04 -05:00
Rob Garrison
ff0145a129 Fix clamp to step floor 2018-09-24 07:02:04 -05:00
Rob Garrison
7be33a9237 Fix default values 2018-09-24 07:02:04 -05:00
Rob Garrison
153a066fbe Fix clampValue issue if min/max are not defined 2018-09-24 07:02:04 -05:00
Rob Garrison
1ba0173422 Remove rangeToProps & fix clampValue functions 2018-09-24 07:02:04 -05:00
Rob Garrison
568fc336e7 Remove console.logs 2018-09-24 07:02:04 -05:00
Rob Garrison
06629224c6 Minor cleanup 2018-09-24 07:02:04 -05:00
Rob Garrison
a277800868 Fix all the things 2018-09-24 07:02:04 -05:00
Rob Garrison
7cd4380ee4 Ensure range default & value types match 2018-09-24 07:02:04 -05:00
Rob Garrison
f6998de6ec Include units in number & range variable 2018-09-24 07:02:04 -05:00
Rob Garrison
1a8d628be5 Clamp number input from user 2018-09-24 07:02:04 -05:00
Rob Garrison
2291197277 UserCSS Number variable now accepts a range 2018-09-24 07:02:04 -05:00
Rob Garrison
d9c748d92f Change range settings to [default, min, max, step] 2018-09-24 07:02:04 -05:00
Rob Garrison
1edfda5417 Wrap default & remove unnecessary break 2018-09-24 07:02:04 -05:00
Rob Garrison
e2b7f194c3 Don't set value on all types of input 2018-09-24 07:02:04 -05:00
Rob Garrison
3fd3c53bd9 Rename select all text function 2018-09-24 07:02:04 -05:00
Rob Garrison
74892a3130 Add select all text on focus. See #492 2018-09-24 07:02:04 -05:00
Rob Garrison
1632a8f364 Add number & range variables. See #492 2018-09-24 07:02:04 -05:00
tophf
66704a78b3 actually use 'pre' font for code errors in messageBox.alert/confirm 2018-03-11 16:31:25 +03:00
tophf
3418ac9cb9 FF: support private/container tabs 2018-01-03 10:43:56 +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
fefe82fd54 remove what-input, use own implementation, rebase on master 2017-12-13 03:27:10 +03:00
Rob Garrison
2cdd264780 fixups
Manage: Disable tabindex in nested buttons
Manage: Fix homepage link alignment
Manage: Make entry actions keyboard navigatable
Manage: Add search help accessibility
Msgbox: Save and restore focus
Manage: Fix delete confirmation cancel
Manage: Make history button accessible
Manage: Make favicons dropdown accessible
Manage: Prevent focus on hidden textarea
Msgbox: Stop tabbing outside of msgbox
Usercss: Make nondefault reset accessible
Usercss: Make colorpicker accessible
Edit: Disable tabindex in nested buttons
Edit: Make info and config icons accessible
Options: Cleanup HTML
Options: Make advanced toggle accessible
Edit: Fix issues popup
Edit: Remove link underlines from icons
2017-12-12 21:40:31 +03:00
tophf
522a2bdab3 deep-copy style for popup's configDialog
see #298
2017-12-10 10:11:18 +03:00
tophf
30fa9671c8 debounce autosave more, prevent re-entry
see #298
2017-12-10 06:02:25 +03:00
tophf
ca40eb9481 fixup 3318db19: read 'checked' state from checkboxes
fixes #297
2017-12-09 19:29:17 +03:00
tophf
ae9d33cf37 use the much shorter "Reset" label in config dialog 2017-12-08 22:32:35 +03:00
tophf
8a777b5d23 restore disabled state dimming on buttons and selects 2017-12-08 22:26:53 +03:00
tophf
2deffbc622 show "x" to reset non-default values in usercss config individually
also:
* simplified CSS selectors where possible
* .config-name = var name, 1st element in <label>
* .config-value = var value, 2nd element in <label>
* .nondefault class added on <label>
2017-12-08 03:23:09 +03:00
tophf
3318db1999 show .config-error on failure to save 2017-12-08 01:08:25 +03:00
tophf
f40dc29497 add rudimentary reject/catch for mozParser inside worker 2017-12-07 08:41:52 +03:00
tophf
38e0937f45 config dialog tweaks
* same icon in manager
  (didn't change the editor config icons as those aren't for usercss)

* "external" icon for USO styles to avoid confusion
  (opening a tab is an extremely different action)

* smaller paddings in popup

* removed hover effect on label text
  (necause native <select> elements cannot be expanded from js)

* various fixups
2017-12-07 01:07:55 +03:00