Commit graph

1441 commits

Author SHA1 Message Date
alistair3149 aaa82d06ef
feat(search): trigger typeahead update when character is composed
Only trigger an update when the character is fully composed.
Examples include various CJK IMEs

Closes: #608
2023-04-03 12:48:10 -04:00
alistair3149 84246c503d
refactor(search): ♻️ do not pass messages var around 2023-04-03 11:52:38 -04:00
alistair3149 90890de53f
feat(core): add config flag to disable preferences menu 2023-03-27 14:08:38 -04:00
alistair3149 b47f2658c7
fix(core): 🐛 remove redundant override for image height
There is no need for important for image height.
This should also fix the issue where inline height are being overriden.
Fix: #605
2023-03-27 13:48:29 -04:00
alistair3149 015b1e1b9a
fix(core): 🐛 respect config flag for default theme
This should fix the issue where CitizenThemeDefault is not working
2023-03-20 12:21:46 -04:00
alistair3149 ba50defaba
refactor(core): ♻️ make typeahead items more reusuable 2023-03-01 16:31:42 -05:00
alistair3149 68313123e9
feat(core): apply box-sizing: border-box by default 2023-03-01 16:08:07 -05:00
alistair3149 0b7c72ca5e
fix(search): 🐛 align typeahead with input 2023-03-01 15:34:50 -05:00
alistair3149 b8a1d9c224
refactor(search): ♻️ simplify typeahead styles 2023-03-01 15:27:43 -05:00
alistair3149 235a76c2bd
feat(core): add border to Citizen cards 2023-03-01 15:02:34 -05:00
github-actions 9e15415835 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-02-28 21:59:36 +00:00
alistair3149 19ddd61e19
feat(core): clean up print styles 2023-02-28 16:58:35 -05:00
alistair3149 ddb425c4bb
fix(core): 🐛 responsive thumbnail on new media structure 2023-02-22 15:12:06 -05:00
alistair3149 54c8717d45
refactor(core): ♻️ simplify menu header implementation 2023-02-22 14:47:32 -05:00
github-actions db4e6a3867 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-02-17 05:25:36 +00:00
alistair3149 8f4910153a
fix(core): 🐛 incorrect thumbnail center styles 2023-02-17 00:24:34 -05:00
alistair3149 65aff44e1c
Revert "feat(core): do not synthesize font styles through browser"
It is not ready for current usage yet, see #591
2023-02-16 23:30:14 -05:00
alistair3149 83f7fc5db2
feat(core): update font stacks 2023-02-16 13:00:10 -05:00
alistair3149 af41f98935
feat(core): use same font family instead of serif for blockquote
Since it is the only place that use serif, the serif variable is also removed
2023-02-16 12:13:21 -05:00
alistair3149 907206854b
feat(core): do not synthesize font styles through browser 2023-02-16 12:10:46 -05:00
alistair3149 3ec84349b1
feat(core): add support for user-interface-preferences menu
This should also fix the issue of ULS not showing up (#587, #425).
2023-02-15 18:38:02 -05:00
alistair3149 e06ed54c83
feat(search): support MW default search shortcut key
It is added as an alternative of the slash key shortcut.

Closes: #582
2023-02-15 16:08:39 -05:00
alistair3149 ef9ab2a537
refactor(core): ♻️ move components styles into folder 2023-01-31 15:04:06 -05:00
github-actions c4072978e4 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-01-31 20:02:13 +00:00
alistair3149 084a886866
refactor(core): ♻️ group contentheader styles 2023-01-31 15:01:03 -05:00
alistair3149 d14ddd99e6
refactor(core): ♻️ simplify page title implementation 2023-01-31 14:54:20 -05:00
alistair3149 7639110326
fix(search): 🐛 overlay should not cover search box 2023-01-27 14:19:32 -05:00
alistair3149 ee4a7eda4f
refactor(core): ♻️ rename mw-checkbox-hack class to citizen-menu-checkbox 2023-01-25 20:25:40 -05:00
alistair3149 afcf37d529
fix(core): 🐛 checkboxHack buttons should be focusable
So that users can use keyboard to navigate to such button.
Previously they all have a display:none property, which makes it
impossible to reach with keyboard
2023-01-25 20:20:46 -05:00
alistair3149 ef955c28a0
feat(core): use MW core checkboxHack instead
We no longer need to emulate the same feature when it is in core
2023-01-25 19:40:52 -05:00
alistair3149 5ebd7ad025
feat(core): remove plainlist styles
It should not be a part of the skin as it belongs to a template
2023-01-23 00:17:32 -05:00
alistair3149 a7406d8e32
fix(core): 🐛 default to auto theme unless set 2023-01-20 20:18:58 -05:00
alistair3149 aeb8e160cf
fix(core): 🐛 increase mw-body-header z-index
This should allow modals in mw-body-header to be higher than
the custom sticky headers
2023-01-17 16:44:35 -05:00
alistair3149 4b8e128e4b
feat(search): add search portals to empty state 2023-01-16 18:02:07 -05:00
alistair3149 7416a7f6d1
fix(search): 🐛 incorrect max height for search suggestions 2023-01-16 17:36:45 -05:00
alistair3149 5023f2aa64
feat(toc): add bottom margin to sticky toc 2023-01-12 15:58:40 -05:00
alistair3149 1e47e95a8d
fix(search): 🐛 more robust null check for description 2023-01-09 16:24:28 -05:00
alistair3149 242413bf4a
fix(search): 🐛 incorrect keyboard navigation on typeahead items 2023-01-06 16:03:02 -05:00
alistair3149 023ee9427a
feat(core): more colorful emphasized text color 2022-12-20 21:50:49 -08:00
alistair3149 985ecb2aa1
feat(core): tweak content sub spacing 2022-12-20 14:06:07 -08:00
github-actions 982407d454 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-20 21:36:13 +00:00
alistair3149 aa13b58194
fix(core): missing style for the previous commit 2022-12-20 13:34:59 -08:00
github-actions 6cfd8cb809 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-20 20:54:59 +00:00
alistair3149 0051115ce0
feat(core): always truncate sticky header first heading
That would keep the sticky first header to always be one line, also solves #559
2022-12-20 12:53:43 -08:00
alistair3149 60c12706a5
feat(search): contain the overscroll of search suggestion 2022-12-18 01:09:42 -05:00
alistair3149 2e9dffb7f0
fix(search): 🐛 correct URL for MediaSearch
Somehow it has to have the type parameter or it'll just go directly to a page if exists
2022-12-17 22:44:36 -05:00
alistair3149 8c8ab997ac
feat(core): increase base layout width to 1080px 2022-12-14 15:05:08 -05:00
alistair3149 3414d59643
feat(core): dynamic dark theme color based on primary hue 2022-12-14 14:06:06 -05:00
alistair3149 867fd29b7c
refactor(core): ♻️ clean up unused LESS variables 2022-12-14 12:59:38 -05:00
alistair3149 37cdf91257
feat(core): deprecate background-color-framed and input
background-color-framed can be replaced with color-surface-2 most of the time.
input is not used.
They are both deprecated in favor of the simpler color-surface system
2022-12-14 12:56:17 -05:00
alistair3149 b262f47404
refactor(core): ♻️ remove unused table style 2022-12-14 12:32:30 -05:00
alistair3149 0ca34a5c3f
docs(search): 📚️ document functions and objects 2022-12-14 11:39:18 -05:00
alistair3149 db79f26a66
refactor(search): ♻️ use template literals 2022-12-14 11:22:50 -05:00
alistair3149 c2da5c5ade
fix(search): 🐛 do not collapse whitespace in label text node 2022-12-14 10:40:08 -05:00
alistair3149 203b0b42c3
feat(search): add MediaSearch to typeahead 2022-12-14 10:28:45 -05:00
alistair3149 6aa587635d
refactor(search): ♻️ clean up clearSuggestion 2022-12-14 00:45:43 -05:00
alistair3149 4d1225b96f
refactor(search): ♻️ simplify typeahead item styles and classes 2022-12-13 23:52:54 -05:00
github-actions 0ef78751a7 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-13 23:26:15 +00:00
alistair3149 074df5272c
fix(search): 🐛 incorrect full text search URL 2022-12-13 18:25:14 -05:00
alistair3149 224c190a47
feat(core): do not set fieldset font size 2022-12-13 16:51:49 -05:00
alistair3149 c4bd384235
fix(core): 🐛 incorrect z-index in changelist title 2022-12-12 21:41:19 -05:00
alistair3149 7a59e9c2d7
fix(core): 🐛 do not use CSS containment for body content
Because it breaks fixed layout originated from the content area
2022-12-12 20:11:47 -05:00
alistair3149 0187478d1a
feat(core): do not hardcode min-width for page tools menu 2022-12-11 18:33:12 -05:00
alistair3149 685a3ad1c4
refactor(core): ♻️ reduce the number of RL modules
It will improve the performance in module registration and also caching
2022-12-09 14:48:17 -05:00
alistair3149 3d1ca8b2ad
feat(core): reduce the click event delay on touch devices 2022-12-08 13:51:22 -05:00
alistair3149 f3ee780f8c
feat(core): add rounded corner to mw-message-box 2022-12-08 13:39:00 -05:00
alistair3149 9d7c3070e5
fix(search): 🐛 overlay should be visible on mobile 2022-12-08 13:27:41 -05:00
alistair3149 cc3e1d41d4
fix(search): 🐛 do not shrink thumbnail 2022-12-08 13:27:40 -05:00
alistair3149 f81e5b6f1a
fix(search): 🐛 null error when rest api is used 2022-12-07 18:05:14 -05:00
alistair3149 71d89bc935
fix(core): 🐛 page tool menu should not overflow right (#555) 2022-12-07 14:34:22 -05:00
github-actions c8f06a8e75 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-06 21:58:01 +00:00
alistair3149 a1b2f7f184
fix(core): 🐛 sticky header flickering 2022-12-06 16:57:22 -05:00
alistair3149 77bba6f232
perf(core): ️ use will-change for card transitions 2022-12-06 15:46:14 -05:00
github-actions 9187a9bf45 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-06 20:30:42 +00:00
alistair3149 ca41b42aec
perf(core): ️ add CSS containment to suitable elements 2022-12-06 15:29:49 -05:00
alistair3149 75ab097ba1
feat(core): update MW datatable styles 2022-12-06 15:06:22 -05:00
alistair3149 96ec8e4248
fix(search): 🐛 typeahead thumbnails should be center-aligned 2022-12-06 14:54:22 -05:00
alistair3149 34804e8258
feat(search): use WMUI icon for placeholder 2022-12-06 14:48:18 -05:00
alistair3149 fd0978b73d
feat(search): use background-image instead for typeahead thumbnails 2022-12-06 14:27:08 -05:00
alistair3149 284b0d8952
feat(search): add no result state to typeahead 2022-12-06 13:52:14 -05:00
alistair3149 a1aeff2e52
fix(search): 🐛 restore ID attribute for suggestion items 2022-12-06 12:05:34 -05:00
alistair3149 9bf737f720
feat(search): add empty state to typeahead
This is a barebone initial implementation, more work will come to it
2022-12-06 12:01:47 -05:00
alistair3149 501286a15d
fix(search): 🐛 update selector for fulltexturl 2022-12-05 21:13:05 -05:00
alistair3149 e6ca664cc4
fix(search): 🐛 enter key should not throw any error 2022-12-05 21:10:27 -05:00
alistair3149 7805b890ff
fix(search): 🐛 enter key should click the selected item 2022-12-05 21:02:47 -05:00
alistair3149 3488e29960
feat(search): show enter key tip when item is active 2022-12-05 15:52:36 -05:00
alistair3149 c5e5ff40a6
fix(search): 🐛 enter key should click the link in suggestion 2022-12-05 15:35:31 -05:00
alistair3149 c9b03aa7fe
feat(search): merge footer into item element 2022-12-05 15:29:17 -05:00
alistair3149 bb0eb49aaa
chore(ci): 🔧 👷 make es-x eslint rules warn instead of error
They will be addressed when we are rewriting the modules to ES6
2022-12-05 15:08:34 -05:00
alistair3149 99b3523cd6
refactor(search): ♻️ partial cleanup on typeahead DOM 2022-12-04 02:13:37 -05:00
alistair3149 22e1324a80
feat(core): do not hardcode footer wordmark size
It should respect the size set in localsettings under wgLogos
2022-12-03 22:50:30 -05:00
github-actions 365b1c5e4a ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-03 19:13:02 +00:00
alistair3149 4293021d5c
feat(search): clean up redirect text implementation 2022-12-03 14:12:01 -05:00
alistair3149 48cb80aaa3
refactor(search): ♻️ make renderSuggestions more digestible 2022-12-03 13:42:01 -05:00
alistair3149 7bfec28ef2
feat(core): add site logo to header 2022-12-03 12:39:33 -05:00
github-actions 143c64c7b0 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-03 03:19:22 +00:00
alistair3149 3d0ff75249
feat(core): center align searchbox
Precursor to make search center of the experience
2022-12-02 22:18:29 -05:00
alistair3149 2a8129ec93
feat(core): add active states to header buttons 2022-12-02 22:17:14 -05:00
github-actions 568405cd5d ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-02 23:00:32 +00:00
alistair3149 391266c0a7
feat(core): allow the use of custom search suggestion module
defines the search suggestion ResourceLoader module
used by the skin. It deprecates the  config
2022-12-02 17:59:45 -05:00
github-actions 57d50ea5c5 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-12-02 22:39:05 +00:00
alistair3149 1939850369
feat(core): allow multiple search components on the same page
This will allow the search suggestion to hook up to multiple search
boxes with `.citizen-search-box` as container. Do note that the default
Citizen suggestion is hardcoded for the primary search, so it only
works for the old core search suggestion module.

This is also a prereq for implementing the Codex search like the one
from Vector.
2022-12-02 17:35:23 -05:00
alistair3149 faf294e899
feat(core): tweak RC and Watchlist styles 2022-12-01 16:13:25 -05:00
alistair3149 ca7dd9fe86
feat(ooui): redo OOUI styles 2022-11-30 21:42:28 -05:00
alistair3149 f64f1a2d5e
fix(core): 🐛 input focus state should use hover background color 2022-11-30 16:10:48 -05:00
alistair3149 f041b2cbea
feat(core): only apply letter spacing to text field labels 2022-11-26 17:59:03 -05:00
github-actions c634a934bd ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-26 08:41:34 +00:00
alistair3149 bf9a4850f6
feat(core): add underglow to progress indicator 2022-11-26 03:40:43 -05:00
alistair3149 9652d4f8ed
refactor(core): ♻️ prepare for heading structure changes 2022-11-24 21:46:23 -05:00
alistair3149 b182872ea7
fix(core): 🐛 incorrect height for page action button 2022-11-24 21:19:14 -05:00
alistair3149 3fb66b38b2
feat(core): add hover states to editsection links 2022-11-24 21:14:51 -05:00
alistair3149 be7139968e
feat(typography): add bottom margin to headings 2022-11-24 20:21:36 -05:00
alistair3149 467cf85be4
feat(core): unify sticky header styles 2022-11-24 20:15:13 -05:00
alistair3149 5e14891088
feat(typography): add label styles 2022-11-23 20:52:44 -05:00
alistair3149 41dd999f5a
fix(core): 🐛 content should not collaspe margin 2022-11-23 18:50:08 -05:00
alistair3149 bfcd43ce11
feat(core): right align language badge 2022-11-23 18:38:31 -05:00
alistair3149 027e298e1e
feat(typography): do not change GRAD axis
It seems that browsers don't have a standard for GRAD.
Sometimes it is too thin  and sometimes it is too thick
2022-11-23 18:37:00 -05:00
alistair3149 069f442d57
feat(core): tweak page actions styles 2022-11-23 14:47:38 -05:00
alistair3149 baab7e17a8
feat(core): tweak content footer styles 2022-11-23 14:47:14 -05:00
alistair3149 b775a7e88a
refactor(core): ♻️ remove unnessecary margin 2022-11-23 14:15:07 -05:00
alistair3149 f70d410779
feat(core): reduce scroll up header delay 2022-11-23 14:11:48 -05:00
alistair3149 71a7945a71
fix(core): incorrect letter case in file name 2022-11-22 11:47:46 -05:00
alistair3149 53cfa8714e
fix(core): 🐛 missing page tool background styles 2022-11-21 19:13:41 -05:00
alistair3149 ead296c46d
feat(core): reduce space between page header and tools 2022-11-21 19:05:38 -05:00
alistair3149 7ffe7fdb79
refactor(core): ♻️ remove redundant patrollink styles 2022-11-21 17:47:30 -05:00
alistair3149 976d5ec42a
feat(core): darker border for broken thumbnail 2022-11-21 17:47:28 -05:00
alistair3149 4bdad41f8a
feat(core): add Parsoid media styles 2022-11-21 17:47:27 -05:00
alistair3149 8eebf6806d
feat(core): revamp thumbnail styles 2022-11-21 17:47:25 -05:00
alistair3149 6def7ab990
feat(core): overhaul MW debug styles 2022-11-21 17:47:18 -05:00
alistair3149 7b33d7e2f1
feat(core): responsive page padding 2022-11-21 17:47:14 -05:00
alistair3149 d8b2c73e6e
refactor(core): ♻️ only use padding-page when nessecary 2022-11-21 17:47:13 -05:00
alistair3149 9eda536420
refactor(core): ♻️ clean up legacy LESS variables 2022-11-21 17:47:11 -05:00
alistair3149 85e69f5a6b
refactor(core): ♻️ deprecate old font variables 2022-11-21 17:47:09 -05:00
github-actions 8e5daddb9c
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:47:08 -05:00
alistair3149 f250668012
fix(toc): 🐛 toc popup should be higher in z-index 2022-11-21 17:47:06 -05:00
alistair3149 ab1981d24b
feat(core): migrate VE editsection to WMUI icon module 2022-11-21 17:47:00 -05:00
alistair3149 e69a74ca29
refactor(core): ♻️ migrate editsection link to WMUI icon module 2022-11-21 17:46:54 -05:00
alistair3149 e66c4de046
feat(core): combine content footer line height 2022-11-21 17:46:52 -05:00
alistair3149 c3652a0e9e
feat(core): add messagebox styles 2022-11-21 17:46:47 -05:00
alistair3149 f611ac9eef
feat(typography): same font weight for strong and bold 2022-11-21 17:46:46 -05:00
alistair3149 20d8d0d0d4
feat(core): clean up elements styles 2022-11-21 17:46:44 -05:00
alistair3149 0268c2d158
feat(core): external link icon spacing should be relative 2022-11-21 17:46:43 -05:00
alistair3149 989bb7a901
refactor(core): ♻️ use spacing token 2022-11-21 17:46:41 -05:00
alistair3149 0e4cf89ad8
fix(core): 🐛 add missing external link hover state 2022-11-21 17:46:40 -05:00
alistair3149 85f5b42ec1
feat(core): align th to the start 2022-11-21 17:46:38 -05:00
alistair3149 2d5246a8a6
feat(core): update wikitable styles
When the wikitable style is first implemented, it didn't take consideration
of different usage out there. For example, it doesn't work well with complex
table or table cell background. This should make it more usable for wikis
out there.
2022-11-21 17:46:37 -05:00
alistair3149 2e9f9067af
feat(core): update edit section styles 2022-11-21 17:46:35 -05:00
alistair3149 2c2b75f44f
feat(core): clean up site notice styles 2022-11-21 17:46:34 -05:00
alistair3149 74fe35e31a
feat(core): clean up subtitle styles 2022-11-21 17:46:32 -05:00
alistair3149 d238e932a1
feat(core): add pill and circle border radius variables 2022-11-21 17:46:31 -05:00
alistair3149 6bc611adcd
feat(core): update catlinks styles 2022-11-21 17:46:29 -05:00
alistair3149 0c4562f235
feat(core): update list styles 2022-11-21 17:46:27 -05:00
alistair3149 be11883f3d
refactor(core): ♻️ move external link styles to skinning folder 2022-11-21 17:46:26 -05:00
alistair3149 da3b3e4228
refactor(core): ♻️ remove styles covered by interface-core 2022-11-21 17:46:23 -05:00
github-actions 69c0ac69f0
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:46:19 -05:00
alistair3149 6ac8bfb646
refactor(core): ♻️ use mediawiki.skinning.content.links in core 2022-11-21 17:46:18 -05:00
alistair3149 67535a8067
refactor(core): ♻️ use mediawiki.skinning.content.body in core 2022-11-21 17:46:16 -05:00
alistair3149 c65f0151da
feat(toc): move ToC together when user scrolls down 2022-11-21 17:46:10 -05:00
alistair3149 6b13da3318
feat(core): hide navigation on scroll down 2022-11-21 17:46:09 -05:00
alistair3149 b5ddd26de7
perf(core): ️ only add beforeunload listener once 2022-11-21 17:46:04 -05:00
alistair3149 9c871764c3
style: 🎨 fix some eslint issues 2022-11-21 17:45:50 -05:00
alistair3149 31c43fa33b
refactor(core): ♻️ do not init observer when not needed
Do not init scroll observer if sentinel is set to display:none
2022-11-21 17:45:42 -05:00
alistair3149 a1c5ec782a
feat(core): tweak sticky header styles 2022-11-21 17:45:38 -05:00
alistair3149 8af7357f06
feat(core): update external link styles 2022-11-21 17:44:45 -05:00
alistair3149 ee60b485f0
perf(svg): ️ re-crush icon with svgo 2022-11-21 17:44:43 -05:00
alistair3149 35ee8619cb
feat(core): responsive heading font sizes 2022-11-21 17:43:20 -05:00
alistair3149 997c152a2a
feat(core): migrate collapse icon to RL icon module 2022-11-21 17:43:19 -05:00
alistair3149 68c199d1e9
refactor(core): ♻️ handle VE merged edit buttons better 2022-11-21 17:43:16 -05:00
alistair3149 95a9b4566c
feat(core): tweak drawer menu icon size 2022-11-21 17:43:14 -05:00
alistair3149 91564052e7
refactor(core): ♻️ remove unused SVG icons 2022-11-21 17:43:10 -05:00
alistair3149 efac6f125a
feat(core): migrate sidebar menus to use RL icon module 2022-11-21 17:43:05 -05:00
alistair3149 7cff9e678b
feat(core): migrate ToC icon to use RL icon module 2022-11-21 17:43:04 -05:00
alistair3149 2d014694a6
feat(core): migrate misc icons to use RIL icon module 2022-11-21 17:43:03 -05:00
alistair3149 6e3727f8f3
feat(core): remove icons from navigation menu
It is weird that there are only a few links with icon.
Removing it temporarily until we have a better solution to apply icon to everything
2022-11-21 17:43:01 -05:00
alistair3149 dc77ae47bd
feat(core): migrate searchbox to use RL icon module 2022-11-21 17:43:00 -05:00
alistair3149 7eae7c6b14
feat(core): migrate sitestats to use RL icon module 2022-11-21 17:42:57 -05:00
alistair3149 28e343867d
refactor(core): ♻️ remove unused siteinfo styles
It is no longer present in the skin
2022-11-21 17:42:55 -05:00
alistair3149 b8ca3f8d72
feat(core): migrate views menu to use RL icon module 2022-11-21 17:42:54 -05:00
alistair3149 a2d0d31d2a
feat(core): migrate associated pages menu to use RL icon module 2022-11-21 17:42:52 -05:00
alistair3149 e1ebf8405f
refactor(core): ♻️ clean up page actions icons syntax 2022-11-21 17:42:51 -05:00
alistair3149 ed4990f6c7
refactor(core): ♻️ remove unused icons 2022-11-21 17:42:49 -05:00
alistair3149 ea68ce0d25
feat(core): migrate user menu to use RL icon module 2022-11-21 17:42:46 -05:00
alistair3149 f2d1ab3d23
feat(core): migrate user menu to use RL icon module 2022-11-21 17:42:45 -05:00
alistair3149 fd40b1b855
feat(core): more granular spacing units 2022-11-21 17:42:43 -05:00
alistair3149 a584655230
fix(core): 🐛 avoid grid content overflow 2022-11-21 17:42:40 -05:00
alistair3149 fc33142e64
refactor(core): ♻️ remove overflow rules since it does not work with sticky 2022-11-21 17:42:39 -05:00
alistair3149 6ce7247616
feat(core): use relative spacing for caption styles 2022-11-21 17:42:37 -05:00
alistair3149 c5d846c57b
refactor(core): ♻️ use margin instead of gap in case of empty span 2022-11-21 17:42:36 -05:00
alistair3149 07d39c17dc
feat(font): use GRAD instead of font-weight to adjust contrast
font-weight have the issue of changing the width of text, while GRAD does not
2022-11-21 17:42:34 -05:00
alistair3149 034d5c4b02
feat(core): standardize line height 2022-11-21 17:42:33 -05:00
alistair3149 8dcb1f37fb
refactor(core): ♻️ replace reducemotion with core accessiblity module 2022-11-21 17:42:30 -05:00
github-actions 159bd8a7d2
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:42:28 -05:00
alistair3149 969cd787d6
feat(core): use different font weight in different themes
The same font weight do not provide the same contrast in different themes.
We should be able to change the scaling
2022-11-21 17:42:26 -05:00
github-actions bc57222ce6
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:42:23 -05:00
alistair3149 ceaf3ed844
feat(core): tweak responsive layout 2022-11-21 17:42:22 -05:00
alistair3149 c03308ad59
feat(core): style namespace differently in page title
Thanks to T306440, it is finally possible without parsing the title
2022-11-21 17:42:14 -05:00
alistair3149 80d3a0acbc
feat(core): tweak layout spacing 2022-11-21 17:42:09 -05:00
alistair3149 c15c1592e3
feat(core): smoother transition for ToC toggle states 2022-11-21 17:42:07 -05:00
alistair3149 a1ce408e43
feat(core): re-implement responsive toc 2022-11-21 17:42:05 -05:00
alistair3149 1730a8ff99
feat(core): pre-work for ToC checkbox hack 2022-11-21 17:42:03 -05:00
alistair3149 d827c2ea12
fix(core): 🐛 add missing layout padding 2022-11-21 17:42:01 -05:00
github-actions a703726d1e
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:59 -05:00
alistair3149 48173b6eb8
feat(core): add icon to back to top link 2022-11-21 17:41:58 -05:00
alistair3149 bc1dd38a12
feat(core): add back to top link to toc 2022-11-21 17:41:56 -05:00
alistair3149 39e04665e3
feat(core): center align page tools 2022-11-21 17:41:54 -05:00
alistair3149 ab7b9ba17d
feat(core): tweak sticky header transition 2022-11-21 17:41:52 -05:00
alistair3149 73fa96757a
fix(core): 🐛 toc indicator clipping 2022-11-21 17:41:50 -05:00
alistair3149 2bf1c27d46
chore(ci): 🔧 👷 remove unnessecary stylelint declarations 2022-11-21 17:41:49 -05:00
alistair3149 427d6a41e1
feat(core): update ToC styles 2022-11-21 17:41:47 -05:00
alistair3149 622f368d1e
feat(core): add desktop styles for toc 2022-11-21 17:41:45 -05:00
alistair3149 b0ed5fd14e
refactor(core): ♻️ simplify body grid handling 2022-11-21 17:41:43 -05:00
alistair3149 8793a243c3
feat(core): rewrite body layout into flex and grid 2022-11-21 17:41:42 -05:00
alistair3149 3eaeaa15f7
refactor(core): ♻️ pre-work to allow Citizen to render ToC 2022-11-21 17:41:40 -05:00
alistair3149 6ab486b82e
feat(core): add styles for temp user in user menu 2022-11-21 17:41:33 -05:00
alistair3149 7bd34caad5
style(core): 🎨 rename personal menu to user menu 2022-11-21 17:41:30 -05:00
alistair3149 41bfd4d4a4
feat(core): align user menu spacing 2022-11-21 17:41:28 -05:00
alistair3149 5d7ec88abb
fix(core): 🐛 add missing anonuserpage styles 2022-11-21 17:41:26 -05:00
alistair3149 e9677d6b87
refactor(core): ♻️ clean up user menu header 2022-11-21 17:41:23 -05:00
alistair3149 a31babc297
refactor(core): ♻️ drop polyfill related to user menu 2022-11-21 17:41:20 -05:00
github-actions 9325a4e2be
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:05 -05:00
alistair3149 d234ece146
feat(core): put non-header elements into a container
Just more sanity and easier to customize header
2022-11-21 17:41:03 -05:00
github-actions 15f13d9ebe ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-08 15:44:57 +00:00
alistair3149 029361b066
feat(core): scroll instead of wrap pre block
It makes code blocks more readable and more inline with other sites
2022-11-08 10:44:27 -05:00
alistair3149 af85fb4b40
fix(search): hide default MW search suggestion
Sometimes the JS is not able to stop the search module from loading.
We can use CSS to hide the suggestion for now.
2022-11-08 00:25:40 -05:00
github-actions 4b108da3d9 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-02 20:29:49 +00:00
alistair3149 db9065f88e
feat(core): use fixed height for header card
This will avoid overflowing and also leave some affordance to close the card
2022-11-02 16:28:56 -04:00
alistair3149 88be5ba08b
fix(core): 🐛 keep inline style for a.image 2022-10-30 21:25:21 -04:00
alistair3149 dd82c57155
feat(font): sync cjk font weight with RobotoFlex 2022-10-27 22:35:17 -04:00
alistair3149 8e272a5bd4
feat(font): replace RobotoVF with RobotoFlex
* Subset using Google Fonts unicode range
* Include opsz and GRAD axis
2022-10-27 22:31:37 -04:00
alistair3149 4fd4cb2f38
ci: 👷 disable function-url-quotes for font face files 2022-10-27 17:05:29 -04:00
alistair3149 b89873d99c
feat(fonts): add Noto Sans CJK font support
This is by default disabled since it is only used for wikis with CJK language,
and also it adds around 100kb to the startup stylesheet. The fonts are subsetted
with Google Fonts slicing pattern, so it should be performance friendly
2022-10-27 16:53:12 -04:00
alistair3149 9b9b3613c3
feat(core): reduce scroll top padding
This should place the scroll target close to content header
2022-10-25 16:05:01 -04:00
alistair3149 6b9fe9c2fa
fix(core): 🐛 hide sticky header overflow 2022-10-25 15:03:16 -04:00
alistair3149 fa3582dfd0
fix(core): incorrect content header z-index 2022-10-25 13:40:43 -04:00
alistair3149 50a00143b0
fix(search): 🐛 encode suggestion URL key 2022-10-23 22:47:49 -04:00
github-actions 4979310897 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-10-23 20:38:36 +00:00
alistair3149 4f651b41ca
feat(pwa): add basic support for service worker
This is super basic and experimental.
It will be expanded upon in the future, but for now it will satisfy the
requirement for PWA
2022-10-23 16:37:43 -04:00
alistair3149 bc8d1a320f
feat(pwa): use standalone mode
Now with the loading indicator back in, we can use standalone mode
2022-10-23 14:00:51 -04:00
alistair3149 911f21420f
feat(core): increase scroll padding (#533)
This should stop anchor hidding behind sticky header,
also makes anchor more readable in the viewport
2022-10-21 14:40:55 -04:00
alistair3149 55f7bcffad
feat(core): use flex layout for mw-indicators 2022-10-20 17:32:22 -04:00
alistair3149 24a907865f
fix(core): 🐛 incorrect max-height for header card 2022-10-19 17:08:14 -04:00
alistair3149 db05e6d3cf
fix(core): 🐛 ToC card should be above page header 2022-10-03 16:20:41 -04:00
alistair3149 ac2559ed8b
feat(core): use 100vh instead of 100% for min-height
Viewport height also takes the browser elements on mobile into account
2022-10-03 13:20:46 -04:00
alistair3149 979138d251
fix(core): 🐛 mw-data-content should reserve space for header 2022-10-03 12:52:17 -04:00
alistair3149 0633db4d7b
fix(core): 🐛 incorrect max height for header card 2022-10-03 12:44:11 -04:00
alistair3149 92c64be48b
fix(core): 🐛 missing z-index for mw-body-header 2022-10-03 12:38:23 -04:00
alistair3149 c551225ec7
feat(core): smaller footer wordmark size on mobile 2022-10-02 01:05:41 -04:00
alistair3149 bf66c60f3d
feat(core): tweak body footer styles 2022-10-01 19:36:09 -04:00
alistair3149 aaad2bb92a
feat(core): move footer info into body footer
They are related to the article/page instead of the whole site
2022-10-01 17:25:20 -04:00
alistair3149 61e8d053c4
feat(core): move sitenotice out of mw-body
site notice is not related to the body/article
2022-10-01 16:15:40 -04:00