Commit graph

940 commits

Author SHA1 Message Date
alistair3149 d5ac0ce295
feat: update RelatedArticle skinstyle to grade A 2021-08-31 12:29:49 -04:00
alistair3149 9134834d6d
feat: add fading to mw-data-after-content 2021-08-26 17:11:01 -04:00
alistair3149 676c08916a
refactor: move syntax color out of CodeMirror 2021-08-26 12:11:52 -04:00
alistair3149 c15dafffea
feat: tweak ToC styles and show numbers 2021-08-26 11:18:25 -04:00
github-actions 86a9f1dece ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-08-26 03:58:36 +00:00
alistair3149 2285670e08
feat: use mask-image instead of box-shadow for header background
This will allow header fade background blending with color-surface-0, regardless of what color it is set to
2021-08-25 23:56:53 -04:00
alistair3149 e53ca7839b
feat: add smooth fading to footer top margin 2021-08-25 23:53:11 -04:00
alistair3149 79c5434071
feat: increase the contrast of buttons and icons 2021-08-10 23:55:54 -04:00
alistair3149 f7e73cf171
feat: add security header deprecation message for upcoming version 2021-08-05 11:41:31 -04:00
alistair3149 e03647eef6 fix: plainlist styles should not be overriden 2021-08-05 11:36:25 -04:00
alistair3149 f5a2a831d1
feat: add user customizable line height 2021-08-05 11:24:52 -04:00
alistair3149 79b61cd24a
fix: also apply typography styles to ciitzen-body 2021-07-30 22:57:38 -04:00
alistair3149 6acd4d23df
fix: use mw-body-content for content styles as VE preview ignores citizen-body 2021-07-30 22:42:27 -04:00
alistair3149 d2e981a7d6
feat: tweak drawer menu animation 2021-07-30 22:13:01 -04:00
alistair3149 9ff44d807b
feat: show article stats in menu on mobile viewport 2021-07-30 14:05:25 -04:00
alistair3149 b72ea763a3
feat: change menu into a modal instead of overlay 2021-07-30 13:48:57 -04:00
alistair3149 8bca28662b
feat: remove mw-body-content from HTML
T279388
mw-body-content is used within body content in 1.37. The original mw-body-content container will use the class citizen-body instead.
2021-07-30 11:44:02 -04:00
alistair3149 cff27d972c
feat: remove color-link LESS variable and scope the CSS variable 2021-07-27 17:33:59 -04:00
alistair3149 020d05c253
feat: improve contrast for primary color in dark theme 2021-07-27 17:18:23 -04:00
alistair3149 07484ee190
fix: remove unused less variables 2021-07-27 16:02:45 -04:00
alistair3149 f8a26fe6ea
feat: tweak input field color 2021-07-27 15:58:55 -04:00
alistair3149 1746440bf7
feat: use primary color as outline color 2021-07-27 15:57:35 -04:00
alistair3149 7460442580
feat: calculate primary hover state color based on HSL 2021-07-27 15:49:12 -04:00
alistair3149 aae08f0a73
feat: rewrite OOUI skinstyles to the new system 2021-07-27 02:13:22 -04:00
alistair3149 2f735e4d4c
feat: tweak ToC toggle styles 2021-07-25 20:21:32 -04:00
alistair3149 e203bbeaab
fix: tweak weird gap between search box and suggestion 2021-07-25 20:21:12 -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 4190ab1904
feat: tweak header box shadow color 2021-07-25 14:34:17 -04:00
alistair3149 63d21cf318 fix: add additional check for ToC elements
that should fix the null querySelector bug:
2021-07-12 15:11:11 -04:00
alistair3149 81d5296249
refactor: update loading animation delay to 500ms 2021-06-27 00:55:09 -04:00
alistair3149 e0b188ed6b
fix: duplicated CSS selector 2021-06-21 20:53:47 -04:00
alistair3149 4d3e18898e
feat: tweak p element margin 2021-06-21 20:51:50 -04:00
github-actions 89b21a5b0c ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-06-15 14:27:00 +00:00
alistair3149 f0678b6f34
feat: hide not logged in message on personal menu 2021-06-15 10:25:59 -04:00
alistair3149 bc71d5c9c0
fix: incorrect selector for loading class 2021-06-12 10:00:26 -04:00
alistair3149 5f168f03ee
feat: add page load progress bar 2021-06-12 09:54:47 -04:00
alistair3149 f21e19c5d8
feat: set sub, sup line-height to 1 2021-06-10 19:26:05 -04:00
alistair3149 19119f2b5d
feat: add auto theme to preferences 2021-06-09 14:40:44 -04:00
alistair3149 62f161f633 fix: incorrect variable name 2021-05-27 11:20:12 -04:00
alistair3149 f60e4b2626 fix: remove empty line in stylesheet 2021-05-27 11:20:12 -04:00
alistair3149 08987c9215 feat: add rounded corner to thumbnails
also merge thumbnail styles into one file
2021-05-27 11:20:12 -04:00
alistair3149 5c6408d766 feat: convert border radius to CSS variable 2021-05-27 11:20:12 -04:00
alistair3149 321f9a7f3d
refactor: only apply responsive styles to thumbnails 2021-05-22 19:19:37 -04:00
alistair3149 257abc84d0
feat: refresh the typeahead when blur 2021-05-18 13:26:00 -04:00
alistair3149 5e1d51d8a1
fix: unable to click link in typeahead 2021-05-18 13:14:51 -04:00
github-actions ea428465b8 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-05-18 16:35:05 +00:00
alistair3149 48deb87709
fix: add null check when accessing undefined keys
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-05-18 12:34:08 -04:00
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
alistair3149 aa42838abc feat: add styles for Parsoid content 2021-03-18 13:01:52 -04:00
alistair3149 7364ccaeda
feat: tweak ToC max height behavior 2021-03-18 12:35:44 -04:00
alistair3149 fd931a13d5
feat: add debug styles 2021-03-18 12:35:18 -04:00