alistair3149
d22f562816
fix: uncaught value when no theme value is saved
...
Users are unable to open the preference panel when there are no theme option saved in localStorage.
It is because prefValue.theme will return null which will stop the script from executing.
Now when prefValue.theme is null, it will default to auto.
2022-04-27 16:44:53 -04:00
alistair3149
96013bb126
feat: deprecate --background-color-dp-XX in favor of --color-surface-X
...
--background-color-dp-XX is now fully deprecated in favor of a simpler 4 color surface system. It can be accessed through the --color-surface-X CSS var.
2022-04-25 22:27:52 -04:00
alistair3149
2c79c061c4
feat: pass styles as style element instead of inline
2022-04-25 20:34:40 -04:00
alistair3149
47e1259bc3
feat: implement a more adaptive smooth shadow
...
* Looks more natural
* Can be customized through the surface-shadow and shadow-strength CSS var
* Light mode and dark mode have been different shadow now, it should be more visible in dark mode
* Box-shadow is a CSS var, which can be used in templates and wiki CSS
2022-04-24 15:24:09 -04:00
github-actions
eddcf5b493
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-02-19 20:09:01 +00:00
alistair3149
f5a2a831d1
feat: add user customizable line height
2021-08-05 11:24:52 -04:00
alistair3149
7dc0d14c70
feat: simplify background color variables in core styles
...
--background-color-dp-XX is soft depreciated, please use --color-surface-X instead
2021-07-25 19:16:05 -04:00
alistair3149
19119f2b5d
feat: add auto theme to preferences
2021-06-09 14:40:44 -04:00
alistair3149
5c6408d766
feat: convert border radius to CSS variable
2021-05-27 11:20:12 -04:00
alistair3149
b32151c99a
fix: remove click eventlistener when pref panel is hidden
2021-05-18 12:27:10 -04:00
alistair3149
5d1af2ccb4
fix: inconsistent cursor in header button
2021-05-17 18:58:12 -04:00
alistair3149
6264b918e2
feat: dismiss preference panel when clicked outside or esc is pressed
2021-05-10 13:25:10 -04:00
alistair3149
ac2ed38183
feat: unify header button highlight hover state ( #363 )
2021-05-10 12:00:04 -04:00
alistair3149
782a3fab09
fix: preference icon misalignment in large font sizes ( #363 )
2021-05-05 12:41:24 -04:00
alistair3149
06e91bb42d
feat: improve header button behavior
2021-05-04 13:27:47 -04:00
alistair3149
7eb9b1d7a1
refactor: clean up skins.citizen.preferences
2021-04-28 12:05:52 -04:00
alistair3149
7d44d6e082
feat: added check for localStorage
2021-04-28 12:05:52 -04:00
alistair3149
3464ff0dfe
feat: tweak theme toggle styles
2021-04-27 13:51:03 -04:00
alistair3149
6b5b6cb07a
feat: tweak show/hide behavior for preference menu
2021-04-27 13:51:03 -04:00
alistair3149
51ac47691e
feat: implement reading preferences
...
allow visitor to adjust theme, font size, and page width
2021-04-27 13:51:03 -04:00