alistair3149
b32151c99a
fix: remove click eventlistener when pref panel is hidden
2021-05-18 12:27:10 -04:00
alistair3149
5c57415a86
refactor: add polyfill for replaceChildren
...
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-05-18 12:25:34 -04:00
alistair3149
2564ba1268
refactor: replace onBlur event with click listener
2021-05-18 12:23:05 -04:00
alistair3149
d0f23fa991
fix: incorrect breakpoint for search bar
2021-05-17 19:27:28 -04:00
alistair3149
5d1af2ccb4
fix: inconsistent cursor in header button
2021-05-17 18:58:12 -04:00
alistair3149
edf6aa1834
fix: search suggestion height overflow
2021-05-17 17:58:48 -04:00
github-actions
9d792fc5b0
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-17 21:55:52 +00:00
alistair3149
3607a3dbcc
feat: tweak search suggestion styles
2021-05-17 17:55:00 -04:00
alistair3149
c43e5279dd
feat: remove lazyload modules
...
It is replaced by the core config `$wgNativeImageLazyLoading`
2021-05-17 16:55:11 -04:00
alistair3149
b2bd79196d
feat: rework search module ( #386 )
...
* feat: rewrite search module (WIP)
There are some caveats because it is a WIP
- Messages are not i18n yet
- Missing placeholder suggestion thumbnail
- Only REST mode works
- Missing greeting message when there is no search query
- Code might look like a mess (I learned JS not long ago)
* refactor: remove old search module
* feat: clean up search suggestion styles
* feat: hide overflow for suggestion text
* feat: add action API and various cleanup
* feat: re-add abort controller
* feat: add message support and tweaks
* feat: use virtual config instead of ResourceLoader hook
* fix: missing comma in const definition
* feat: add ARIA attributes
2021-05-17 16:34:14 -04:00
alistair3149
9ecd9722f3
feat: tweak quiet hover and active state color
2021-05-11 12:08:27 -04:00
alistair3149
3202c1d9e6
fix: prevent Firefox quickfind overriding the search toggle shortcut
2021-05-10 13:36:44 -04:00
github-actions
fef76149d1
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-10 17:27:36 +00:00
alistair3149
74873da01f
refactor: better detection for slash toggle
2021-05-10 13:26:39 -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
Eshagh
c891f42fd1
feat: add RTL icons for drawer toggle and VE save button ( #374 )
...
* Customize the drawer button for RTL language
* Convert ">" to "<" for RTL language
Co-authored-by: eshagh79 <eshagh094@gmail.com>
2021-05-06 22:36:34 -04:00
alistair3149
87756194fb
feat: add icon and text for addsection action ( #368 )
2021-05-05 13:08:37 -04:00
alistair3149
782a3fab09
fix: preference icon misalignment in large font sizes ( #363 )
2021-05-05 12:41:24 -04:00
alistair3149
38f674eced
feat: tweak search toggle button
2021-05-04 13:53:40 -04:00
github-actions
3e6b24c390
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-04 17:34:33 +00:00
alistair3149
96cf5319c7
feat: improve page tool more button behavior
2021-05-04 13:33:43 -04:00
alistair3149
06e91bb42d
feat: improve header button behavior
2021-05-04 13:27:47 -04:00
alistair3149
9a610b8485
fix: tweak indicator link text color ( #363 )
2021-05-04 11:56:32 -04:00
alistair3149
93dbd76324
refactor: convert search bar variables to CSS var
2021-05-04 11:48:39 -04:00
github-actions
4062404e26
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-04 15:11:25 +00:00
alistair3149
749ca9763d
feat: tweak RTL search toggle icon
2021-05-04 11:10:33 -04:00
alistair3149
dbc081eae9
fix: incorrect RTL search toggle icon selector
2021-05-04 10:53:05 -04:00
github-actions
4ce8376b0e
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-03 20:19:44 +00:00
Eshagh
08ed687fa3
fix: RTL search box icon ( #361 )
2021-05-03 16:18:54 -04:00
alistair3149
293d748771
feat: switch to circle list style
2021-05-02 17:33:40 -04:00
alistair3149
e79e707ce3
fix: disable search shortcut when VE is activated
2021-04-30 13:28:51 -04:00
alistair3149
d75eb105a3
feat: tweak toc styles
...
* feat: tweak toc styles (#357 )
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
Co-authored-by: Cameron <roger.dodger.thor@gmail.com>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-04-30 10:34:50 -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
bf8d9274fa
feat: tweak wikitable styles
...
move text-align left from th to table so it can be easily overriden
2021-04-28 10:37:36 -04:00
alistair3149
00277609f5
feat: don't hide horizontal lines
2021-04-28 10:29:26 -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
16b4ae90e0
feat: use color-scheme: dark for dark mode
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
alistair3149
acffb80f36
fix: toc content overflowing header
2021-04-26 12:04:52 -04:00
alistair3149
e2b4a4e49a
feat: show page title on header after scroll
...
The page header also acts as a jump to top link
2021-04-26 11:39:27 -04:00
alistair3149
4bbb59f978
refactor: improve search loading indicator behavior
2021-04-22 12:09:14 -04:00
alistair3149
546fa36d33
refactor: drop dependency for mediawiki.page.ready
2021-04-22 11:44:48 -04:00
alistair3149
38882334c8
refactor: use checkboxHack module for search script
2021-04-21 18:47:03 -04:00
alistair3149
8129ca0e5b
feat: use MW core checkboxHack scripts instead
...
Cloned and tweaked to a local file as the core file can be different across MW builds
2021-04-21 16:45:52 -04:00
alistair3149
f9500dd304
fix: remove leftover console log
2021-04-21 15:10:16 -04:00
alistair3149
c5a2aaf9ec
refactor: convert skins.citizen.scripts.toc to ES6
2021-04-21 15:07:55 -04:00
alistair3149
f44aaa4e4c
refactor: refactor skins.citizen.scripts to ES6
2021-04-21 13:44:28 -04:00
alistair3149
117d839f00
doc: fix lettercase for Window and Document object
2021-04-21 11:32:44 -04:00
alistair3149
c4c607d154
fix: theme toggle button not appearing in initial load
2021-04-20 23:54:32 -04:00
alistair3149
2cec33906e
refactor: integrate skins.citizen.scripts.theme into core scripts
2021-04-20 23:42:45 -04:00
alistair3149
b75e936b71
refactor: convert skin.citizen.scripts.theme to ES6
...
Also renamed the file and remove unnessecary dependencies
2021-04-20 22:40:05 -04:00
alistair3149
30465ebc20
refactor: convert skin.citizen.scripts.sections to ES6
2021-04-20 21:49:22 -04:00
alistair3149
fb7c164fc9
refactor: rename drawerSubSearch script to match RL module name
2021-04-20 20:28:27 -04:00
alistair3149
43072b1947
refactor: convert skin.citizen.scripts.lazyload to ES6
2021-04-20 20:27:38 -04:00
alistair3149
98ee513e39
refactor: convert skin.citizen.scripts.drawer to ES6
2021-04-20 17:06:12 -04:00
alistair3149
f0d2a4ef1e
feat: tweak page header top margin
2021-04-19 14:55:57 -04:00
alistair3149
15ffff3aa4
fix: remove extra bracket in css var definition
2021-04-19 12:42:08 -04:00
alistair3149
76d5daa956
refactor: simplify body margin styles
2021-04-19 12:38:39 -04:00
alistair3149
8d82e7ca83
feat: optimize SVGs with SVGO
2021-04-18 14:40:38 -04:00
alistair3149
d29d631060
feat: tweak wordmark styles
2021-04-17 21:01:24 -04:00
alistair3149
bd2b5470a2
feat: darken ToC modal background
2021-04-17 20:44:33 -04:00
alistair3149
0f2412c930
feat: don't capitalize wiki name
2021-04-17 01:51:15 -04:00
github-actions
3f9117a2cd
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-04-17 04:07:47 +00:00
alistair3149
ad78883461
fix: search shortcut being triggered in textarea
2021-04-17 00:06:57 -04:00
alistair3149
ff112574f4
feat: tweak fulltext search suggestion styles
2021-04-16 21:28:53 -04:00
alistair3149
9fc6639d8c
feat: tweak wordmark styles
2021-04-16 21:22:09 -04:00
alistair3149
1787a1b5dd
feat: tweak mobile searchbox animation
2021-04-16 21:12:10 -04:00
alistair3149
9008d98e9c
feat: remove will-change property from drawer
2021-04-16 21:08:50 -04:00
alistair3149
cfbf2798d2
feat: simplify searchbox animation
2021-04-16 21:07:53 -04:00
alistair3149
8ef0e927f8
refactor: simplify search key handler
2021-04-12 16:22:16 -04:00
alistair3149
5a3b64252d
feat: tweak search shortcut key behavior
2021-04-12 15:55:59 -04:00
alistair3149
670641e903
feat: use slash as shortcut for search
2021-04-12 15:09:28 -04:00
alistair3149
ed1b55ce45
feat: hide overflow on screen smaller than 720px
2021-04-12 14:13:28 -04:00
alistair3149
0a0a4a0849
feat: add scrollbar styles
2021-04-12 14:00:43 -04:00
alistair3149
b38254cb56
refactor: remove unused LESS variables
2021-04-11 18:24:48 -04:00
alistair3149
b91eb2fb5e
refactor: legacy viewport clean up
2021-04-11 17:57:50 -04:00
alistair3149
f8d90eba0c
refactor: unify transition timing
2021-04-11 17:53:31 -04:00
alistair3149
04a3faef1f
feat: remove list link highlight transition
2021-04-11 17:44:41 -04:00
alistair3149
bc820109e9
feat: make searchbox transition faster
2021-04-11 17:14:35 -04:00
alistair3149
92341d1976
feat: add light border to ToC modal
2021-04-11 16:48:13 -04:00
alistair3149
126357e524
feat: revamp ToC responsive styles
2021-04-10 20:55:48 -04:00
alistair3149
517c27b675
doc: add documentation to suggestion template
2021-04-09 22:30:43 -04:00
alistair3149
9e2dcdadb8
refactor: switch to Mustache template for search suggestions
2021-04-09 22:25:39 -04:00
H. C. Kruse
0e63bb6aef
bug: fix changing theme through UPO ( #340 )
2021-04-06 08:40:15 -04:00
alistair3149
abffe590b5
refactor: remove cookie theme for local storage
...
Co-authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-04-05 14:24:18 -04:00
alistair3149
9533cddc0d
feat: subset fonts based on unicode blocks
2021-04-04 14:30:23 -04:00
alistair3149
299b411e59
feat: update Roboto VF to 3.004
2021-04-04 12:45:43 -04:00
alistair3149
e9b5ec5575
feat: only use smooth scroll in larger viewport
2021-04-02 15:46:52 -04:00
alistair3149
3e217def6e
feat: rewrite ToC scrollspy
...
Remove legacy fallbacks and rewrite scrollspy using IntersectionObserver API
2021-04-02 15:42:56 -04:00
alistair3149
215fb5ffc6
feat: update reduce motion styles
2021-03-27 16:25:55 -04:00
alistair3149
76f4671f35
feat: emphasize wiki wordmark color
2021-03-22 17:07:17 -04:00
alistair3149
bbbcaba94d
feat: add site stats to drawer
2021-03-22 17:01:08 -04:00
alistair3149
b850797b4d
feat: only set as session cookie if no conscent
2021-03-22 13:33:17 -04:00
alistair3149
63da182147
feat: set theme cookies to be sameSite strict
...
Since they are only used in a first party basis
2021-03-22 11:41:37 -04:00
alistair3149
934f9555c4
fix: dark mode quiet background color
2021-03-20 20:14:21 -04:00
alistair3149
8e7b0de47f
feat: make ToC width adjustable and respect layout width
2021-03-18 13:39:13 -04:00
alistair3149
466261a056
feat: separate link color from primary color
2021-03-18 13:02:01 -04:00