github-actions
852fd86013
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-07-01 04:06:43 +00:00
alistair3149
ff0a6ed710
feat(core): ✨ clean up state colors
2024-07-01 00:04:36 -04:00
alistair3149
c21a908c12
feat(core): ✨ set new link color to color-destructive
2024-06-30 20:49:50 -04:00
alistair3149
66e7282acc
fix(preferences): 🐛 incorrect active button color
2024-06-30 20:49:15 -04:00
alistair3149
0fdc7c4ad7
feat(core): ✨ convert some CSS variables into Codex equivalent part 2
...
Also fix various inconsistencies with quiet buttons
2024-06-30 20:41:31 -04:00
alistair3149
0a1ac14677
feat(pageActions): ✨ blend language badge into the background
2024-06-30 01:11:35 -04:00
alistair3149
5d3ecd9edd
feat(core): ✨ convert some CSS variables into Codex equivalent
...
This is an on-going work to adapt Codex into Citizen.
Some of the CSS variables are soft depreciated, see tokens.less for updated info.
2024-06-30 01:04:30 -04:00
alistair3149
fce1f775c4
feat(pageActions): ✨ use neutral color for language badge
2024-06-29 20:53:21 -04:00
alistair3149
1edc40e70c
feat(share): ✨ only share URL
...
The text handling across OS is inconsistent, and it is more desirable to just share the link and get the description through the embed.
2024-06-28 19:25:57 -04:00
alistair3149
327aca0b2c
feat(pageActions): ✨ add share button to page actions for article pages
2024-06-28 18:42:04 -04:00
alistair3149
c34868d04e
fix(overflow): 🐛 remove unused mask rules
2024-06-27 18:54:48 -04:00
alistair3149
eb58bd6e99
fix(menu): 🐛 show view button specifically on revision and diff pages
...
The previous attempts didn't catch all the cases. This should be enough.
Related: #845
2024-06-27 18:21:28 -04:00
alistair3149
f0de4f4c5b
feat(overflow): ✨ use CSS variable for overflow gradient size
...
This will allow the gradient to be adjustable through CSS
2024-06-27 18:15:32 -04:00
alistair3149
e4697c48f1
fix(skinning): 🐛 incorrect text alignement for mw-halign-center
2024-06-25 15:19:10 -04:00
alistair3149
dd53576941
fix(menu): 🐛 prevent page from scrolling when dropdown menu is open in small viewport
2024-06-25 12:47:07 -04:00
alistair3149
7133648fe0
fix(wordmark): 🐛 wordmark should resize responsively
2024-06-24 17:12:57 -04:00
alistair3149
7fb35f90f5
fix(overflow): 🐛 prevent overflow button from triggering form action button
...
When the overflow button is within a `<form>` element, it can sometimes
trigger the form action (e.g. In the realtime preview of WikiEditor).
2024-06-24 14:39:33 -04:00
alistair3149
c47531a28b
feat(wordmark): ✨ implement wordmark in drawer
...
Also simplify existing styles for wordmark
2024-06-24 14:05:21 -04:00
alistair3149
e0507d489d
fix(footer): 🐛 incorrect invert rule for footer wordmark
2024-06-24 13:42:30 -04:00
alistair3149
08e63e3caf
feat(skinning): ✨ remove top and bottom margin from nested lists
...
Related: #886
2024-06-18 19:48:54 -04:00
alistair3149
fae9dad9b0
fix(skinning): 🐛 incorrect margin for right float thumbnails
2024-06-16 20:57:14 -04:00
alistair3149
2639b0f70d
fix(overflow): 🐛 overflow content should fill parent container
2024-06-15 17:38:47 -04:00
alistair3149
00dba9540b
fix(menu): 🐛 fix invisible user menu on desktop Safari
2024-06-14 16:23:53 -04:00
alistair3149
d079cc9b29
fix(core): 🐛 incorrect side margin for ul and ol
2024-06-14 16:02:13 -04:00
alistair3149
5bc18b5f4a
feat(core): ✨ hide the text from the help indicator
2024-06-14 13:12:30 -04:00
alistair3149
9bd18ea054
fix(overflow): 🐛 wrapper should respect float elements
...
Fixes : #878
2024-06-14 12:59:14 -04:00
alistair3149
e064de2402
refactor(cssVar): ♻️ replace all filter rules with CSS variables
2024-06-14 12:24:02 -04:00
alistair3149
a7c74e3f10
fix(menu): 🐛 fix invisible user menu
2024-06-13 23:01:26 -04:00
alistair3149
3b3bb3030d
fix(menu): 🐛 incorrect Safari details marker selector
2024-06-13 03:39:03 -04:00
alistair3149
c52dc49d6d
fix(menu): 🐛 hide Safari details marker
2024-06-13 03:24:13 -04:00
alistair3149
089a329da9
fix(toc): 🐛 ToC should have a higher z-index than page actions in smaller viewport
...
In order to avoid collision between the bottom page action bar and the ToC dropdown
2024-06-12 13:01:43 -04:00
alistair3149
feae1e6ad3
fix(pagetools): 🐛 attach menu to the page actions bar instead of the button
2024-06-12 13:00:13 -04:00
alistair3149
dd89daba39
fix(overflow): 🐛 allow to click through the nav element
2024-06-12 12:51:50 -04:00
alistair3149
7830faa8fe
fix(overflow): 🐛 mark oveflow button as not accessible for screen reader
2024-06-11 19:15:57 -04:00
github-actions
6c39537a51
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-06-11 23:10:13 +00:00
alistair3149
4b457dfa08
fix(overflow): 🐛 align scroll buttons with content margin
2024-06-11 19:07:38 -04:00
alistair3149
cbf60030f1
fix(overflow): 🐛 use more accurate rounding method for overflow detection
2024-06-11 18:56:54 -04:00
alistair3149
55d413eeda
feat(overflow): ✨ add overflow scroll button when using a pointer device
2024-06-11 18:00:45 -04:00
alistair3149
8541b7ee88
fix(core): 🐛 incorrect opacity and color of icons in button
2024-06-11 15:48:02 -04:00
alistair3149
86ef5ef06d
feat(cssVar): ✨ add --color-inverted-primary for text color above primary color
2024-06-10 19:47:49 -04:00
alistair3149
0a8c49a573
fix(skinning): 🐛 incorrect margin value for floating thumbnail
2024-06-10 16:18:06 -04:00
alistair3149
ababe58186
fix(core): 🐛 do not debounce scroll direction script
2024-06-09 22:58:17 -04:00
github-actions
26076514c1
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-06-07 19:01:54 +00:00
alistair3149
d0e684236e
fix(search): 🐛 remove unused param from getRedirectMessage()
2024-06-07 15:01:37 -04:00
alistair3149
3d146b2374
refactor(cssVar): ♻️ introduce color-inverted
2024-06-05 18:54:54 -04:00
alistair3149
e9d7cc270a
perf(core): ⚡ ️ do not use will-change (part 2)
2024-06-01 15:55:27 -04:00
alistair3149
d8b3cad225
perf(core): ⚡ ️ do not use will-change
2024-06-01 15:36:48 -04:00
github-actions
5fbf8bf938
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-06-01 19:35:16 +00:00
alistair3149
151e51da2f
fix(search): 🐛 opening search card should not play animation on mobile
2024-06-01 15:34:14 -04:00
alistair3149
6108fccc31
refactor(menu): ♻️ remove unused checkbox hack styles
2024-06-01 15:29:12 -04:00
alistair3149
502b462c06
style(dropdown): 🎨 clean up code styles
2024-06-01 15:28:49 -04:00
alistair3149
32d10f893b
fix(dropdown): 🐛 toggle should dismiss the dropdown properly
2024-06-01 15:13:38 -04:00
alistair3149
87513459c4
fix(core): 🐛 hide Safari details marker
2024-05-31 03:28:52 -04:00
alistair3149
d0691a06d0
feat(core): ✨ add dismiss affordnance to dropdown menus
2024-05-30 16:20:03 -04:00
alistair3149
a2d3159def
feat(core): ✨ replace checkbox hack with details and summary
...
Note that ToC is still using the old checkbox hack, it will be replaced in a later time.
Related: T333394
2024-05-30 02:20:13 -04:00
alistair3149
a8daa82354
fix(core): 🐛 avoid using core mw.util.addPortlet for now
...
Seems to break in 1.41, will look into it later
2024-05-29 20:21:55 -04:00
alistair3149
83ab221408
feat(core): ✨ only handle wikitable instead of all tables
...
Wikis use tables in creative ways and it is probably just safer to only apply it to wikitables.
Might revisit if there are any news from T330527.
2024-05-29 17:47:13 -04:00
alistair3149
87f15ddd6d
fix(core): 🐛 incorrect selector to disable search card animation on mobile
2024-05-29 14:06:58 -04:00
alistair3149
2bbb1d9408
perf(core): ⚡ ️ check for nowrap classes before constructing class
2024-05-29 14:02:57 -04:00
alistair3149
c40c7c7b84
feat(core): ✨ destructure surface colors into hsl variables
2024-05-28 13:59:07 -04:00
alistair3149
621adff9fc
fix(core): 🐛 incorrect classes and styles for page action cards
2024-05-28 02:12:50 -04:00
alistair3149
87a8bf256e
refactor(core): ♻️ various cleanup
2024-05-27 23:18:13 -04:00
alistair3149
f74e3d2f6a
perf(core): ⚡ ️ tweak menu animation timing
2024-05-27 23:17:48 -04:00
alistair3149
2d10199b27
refactor(core): ♻️ remove redundant selector
2024-05-27 23:00:28 -04:00
alistair3149
e95d3d39bd
perf(core): ⚡ ️ consolidate citizen-menu card shared styles
2024-05-27 22:47:46 -04:00
alistair3149
4ed68a924d
feat(core): ✨ wrap any elements tagged with the class citizen-overflow
2024-05-27 18:01:09 -04:00
alistair3149
7b32aeec7d
fix(core): 🐛 always reset overflow state
2024-05-27 17:58:04 -04:00
alistair3149
c3943ca7cf
feat(core): ✨ change overflow gradient to fixed size
2024-05-27 17:53:55 -04:00
alistair3149
974e6b2750
feat(core): ✨ add config to change overflow inherited classes
2024-05-27 17:16:23 -04:00
alistair3149
c9210bd0dd
refactor(core): ♻️ separate inherited class function
2024-05-27 17:10:04 -04:00
alistair3149
523140f62f
perf(core): ⚡ ️ only toggle class when the element is overflowing
2024-05-27 17:04:28 -04:00
alistair3149
bc356f915d
fix(core): 🐛 fix incorrect overflow wrapper class name
2024-05-27 16:12:09 -04:00
github-actions
3cd8d20d1d
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-27 20:11:41 +00:00
alistair3149
cb1cfde785
fix(core): 🐛 remove table border expansion before the JS is loaded
2024-05-27 16:10:25 -04:00
alistair3149
c17aeab3fd
feat(core): ✨ rename wgCitizenTableNowrapClasses to wgCitizenOverflowNowrapClasses
...
Allow this config to use for more generic elements in the future
2024-05-27 15:54:34 -04:00
alistair3149
7a4d43392d
perf(core): ⚡ ️ remove scroll eventListener and resizeObserver on tables when not needed
...
Also started to refactor the table script to be more generic for overflow elements.
2024-05-27 15:47:53 -04:00
alistair3149
d34fb7b6f9
refactor(core): ♻️ clean up responsive table code
2024-05-26 00:37:54 -04:00
alistair3149
8ba6b55770
refactor(core): ♻️ clean up section functions
2024-05-25 23:51:50 -04:00
alistair3149
e9289b149a
perf(core): ⚡ ️ further improvements to scroll and section observers
2024-05-25 23:18:18 -04:00
alistair3149
af3d72ad75
fix(core): 🐛 incorrect sticky header class assignment
2024-05-25 19:53:17 -04:00
alistair3149
27bca0fc66
feat: ✨ improve scrolling performance
2024-05-25 19:26:38 -04:00
alistair3149
ae6d207fb4
fix(core): 🐛 escape double quotes for toc selector
2024-05-25 06:57:02 -04:00
alistair3149
4762102d61
chore(eslint): 🔧 use wikimedia/server for root folder eslint config
2024-05-25 01:14:44 -04:00
alistair3149
b946056c13
fix(search): 🐛 label can sometimes contain HTML
2024-05-22 00:58:13 -04:00
alistair3149
d6bfce15c5
refactor(search): ♻️ clean up searchResults functions
2024-05-22 00:36:16 -04:00
alistair3149
ae7a01f690
refactor(core): ♻️ move some suggestion functions to searchResults
2024-05-22 00:03:49 -04:00
alistair3149
434ec2ebaf
refactor(core): ♻️ various minor refactor
2024-05-21 23:48:09 -04:00
alistair3149
3d2ec5300c
refactor(pref): ♻️ clean up pref code
2024-05-21 23:30:54 -04:00
alistair3149
685901cce3
fix(core): 🐛 incorrect section selector
2024-05-21 23:15:53 -04:00
alistair3149
8b1158bc78
refactor(search): ♻️ use data-mw prefix for data attribute names
2024-05-21 22:14:58 -04:00
alistair3149
27c0fb4462
refactor(search): ♻️ various fixes and improvements
2024-05-21 21:43:59 -04:00
alistair3149
593c6406fb
refactor(core): ♻️ simplify section handling
2024-05-21 18:46:19 -04:00
alistair3149
a405d64616
refactor(core): ♻️ various performance and style improvements
2024-05-21 18:08:28 -04:00
alistair3149
1270d4edd1
refactor(core): ♻️ add error handling to lastModified.js
2024-05-21 15:00:03 -04:00
alistair3149
c09b82cb07
fix(core): Rename Usermenu.less to UserMenu.less
2024-05-15 02:02:48 -04:00
alistair3149
a193d14de7
feat(core): ✨ tweak dark theme color to be darker
2024-05-15 01:31:23 -04:00
alistair3149
03da361b97
feat(components): rewrite template data partials into CitizenComponent components ( #846 )
...
- Refactor existing template data-related partials into CitizenComponent components
- Re-implement user menu header as UserInfo
- Add description text for anon and temp user in UserMenu
---------
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2024-05-15 01:24:43 -04:00
alistair3149
604ee851d6
fix(core): 🐛 add missing styles for user menu
...
Seems to be broken by the citizen-menu styles refactor.
This fix is temporary since the user menu will be refactored soon.
2024-05-09 15:54:50 -04:00
alistair3149
4c6ae1e74d
refactor(core): ♻️ wrap menu list in container
2024-05-09 14:38:07 -04:00
alistair3149
f2393a74b8
feat(core): ✨ use relative time for sidebar last mod
...
Closes : #700
2024-05-08 16:39:47 -04:00
alistair3149
ed54bbfc33
fix(core): 🐛 hide sidebar lastmod on tablet
...
It is duplicated with footer
2024-05-08 15:36:04 -04:00
alistair3149
89b5ff1b12
feat(core): ✨ add last modified to sidebar
2024-05-08 15:30:36 -04:00
alistair3149
4f7e3a4e14
refactor(core): ♻️ clean up various menu styles
2024-05-07 22:21:24 -04:00
alistair3149
0aa617262e
feat(core): ✨ simplify toc styles
2024-05-07 21:48:22 -04:00
alistair3149
9da91018ab
refactor(core): ♻️ wrap ToC inside citizen-body-sidebar
2024-05-07 21:29:16 -04:00
github-actions
8c6cb3525c
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-07 22:58:15 +00:00
alistair3149
226fd0a606
feat(core): ✨ tweak black theme color
2024-05-07 18:57:25 -04:00
alistair3149
76a93e962f
fix(Echo): 🐛 re-implement nojs Echo buttons
2024-05-06 15:28:56 -04:00
alistair3149
de315b2e1d
refactor(core): ♻️ simplify heading icon styles
2024-05-06 14:14:28 -04:00
alistair3149
58bab74eab
feat(core): ✨ switch all icons to OOUI module
...
Custom icons are no longer needed. This should reduce
an extra ResourceLoader module registration.
2024-05-06 13:48:41 -04:00
alistair3149
a81bf1fc16
refactor(core): ♻️ re-implement VE action icon
2024-05-06 13:37:33 -04:00
alistair3149
4558da3a0d
feat(core): ✨ remove scrollbar styles
...
We should let browser and OS handle scrollbar instead. Scrollbar customizations
has always been iffy because of varying browser standards and implementation.
Now floating scrollbar is common enough that we don't need custom styles anymore.
2024-05-05 19:53:54 -04:00
alistair3149
1d4cdd60df
fix(core): 🐛 avoid sticky toolbar from clipping on Firefox
...
The sticky toolbar is hidden on a short page when browsing on Firefox (80vh of the body container is taller than the height of the toolbar). Increasing the min-height for the body container should avoid the issue.
2024-05-05 02:13:36 -04:00
alistair3149
efa27a59c6
feat(core): ✨ increase border color contrast in dark mode
2024-05-03 17:21:40 -04:00
alistair3149
994fae626b
refactor(core): ♻️ simplify drawer header styles
2024-05-03 17:18:21 -04:00
alistair3149
46a5089131
refactor(core): ♻️ fix drawer sitestats alignement
2024-05-03 17:10:44 -04:00
alistair3149
3566e9c919
feat(core): ✨ align footer links to the end of the footer
2024-05-03 17:03:32 -04:00
alistair3149
5a5b4aab0b
feat(core): ✨ allow drawer menu to expand in smaller screen
2024-05-01 22:12:19 -04:00
github-actions
64a8914c16
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-02 01:44:37 +00:00
alistair3149
205cee23db
feat(core): ✨ tweak personal menu spacing
2024-05-01 21:43:02 -04:00
alistair3149
ffa7d76df4
feat(core): ✨ change primary action links in user menu into buttons
...
Link such as sign up and sign in are converted into a button to make it more visible
2024-05-01 20:25:51 -04:00
alistair3149
71ef6b7a30
fix(core): 🐛 incorrect font size for sticky title parenthesis text
2024-05-01 19:22:08 -04:00
alistair3149
99fe5f970e
fix(prefs): 🐛 incorrect function call for addPortlet
...
Closes : #832
2024-04-27 21:07:45 -04:00
alistair3149
59fc003294
fix(core): 🐛 apply addDefaultPortlets separately
2024-04-27 20:59:57 -04:00
alistair3149
4bc4301f90
fix(prefs): 🐛 incorrect function call for addPortlet
...
Closes : #832
2024-04-27 18:02:23 -04:00
alistair3149
354ae255f7
feat(core): ✨ add overflow handling to site and content sub
2024-04-27 13:32:39 -04:00
alistair3149
a10fd97a2a
refactor(core): ♻️ move pagetools rules out of sticky header
2024-04-27 13:26:18 -04:00
alistair3149
1dcc18af60
feat(core): ✨ fine tune bottom toolbar animation
2024-04-26 19:15:13 -04:00
alistair3149
8bb2d9e76d
fix(core): 🐛 invalid selector
2024-04-26 17:44:36 -04:00
github-actions
9074563e0b
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-26 21:42:26 +00:00
alistair3149
ff909e240d
feat(core): ✨ move page actions into bottom toolbar when width is limited
...
Related: #821
2024-04-26 17:41:27 -04:00
alistair3149
a5bf9413ea
feat(core): ✨ make sticky header more compact in limited screens
2024-04-26 15:57:29 -04:00
alistair3149
9cd0cc45f3
fix(toc): 🐛 CSS escape ID
...
When the heading contains an amprehend, it will throw an exception.
2024-04-25 23:33:22 -04:00
alistair3149
e5af1717bd
fix(core): 🐛 hide notification menu header in header
2024-04-25 18:26:54 -04:00
alistair3149
8f565b33b3
feat(core): ✨ add transition to body-container width
2024-04-25 18:19:11 -04:00
alistair3149
9b66b82e48
refactor(prefs): ♻️ drop mustache in favor of pure JS
2024-04-25 18:05:57 -04:00
alistair3149
f6f1c4d1c4
feat(prefs): ✨ move font size before theme
2024-04-25 17:55:00 -04:00
alistair3149
efe11ed410
refactor(prefs): ♻️ use literal values instead of integers in clientPref features
2024-04-25 17:51:54 -04:00
alistair3149
241dc96cfe
feat(prefs): ✨ move page width to clientPrefs
...
Now all of the existing prefs are migrated to clientPrefs,
we can discard the code from the old system.
2024-04-25 17:41:22 -04:00
alistair3149
964a4a534d
feat(prefs): ✨ remove line-height customization for now
...
Will be re-implemented later
2024-04-25 17:22:27 -04:00
github-actions
877406e449
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-25 21:17:22 +00:00
alistair3149
b186efba69
feat(core): ✨ reduce opacity of sticky header
2024-04-25 17:16:19 -04:00
alistair3149
0d52046523
feat(prefs): ✨ migrate font size to client preferences
2024-04-25 17:06:09 -04:00
alistair3149
d9be3e7084
refactor(core): ♻️ drop usage of mw-body-content in favor of citizen-body
2024-04-25 16:30:40 -04:00
alistair3149
316798dd57
feat(prefs): ✨ change theme toggle to 3 col
2024-04-25 16:24:18 -04:00
github-actions
fce2726cc8
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-25 20:21:04 +00:00
alistair3149
6392b4c24a
refactor(core): ♻️ merge theme into features.less and cssvariables.less
2024-04-25 16:19:53 -04:00
alistair3149
c2aa796b68
fix(core): 🐛 remove leftover console log
2024-04-25 16:19:17 -04:00
alistair3149
56046d7e58
feat(core): ✨ tweak pure black mode colors
2024-04-25 15:59:43 -04:00
alistair3149
4aefd74429
fix(core): 🐛 incorrect delimiter in inline script
...
Commas are not encoded in localStorage
2024-04-25 15:59:07 -04:00
github-actions
d24a8d60e2
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-25 19:50:36 +00:00
alistair3149
5768ccc25b
feat(core): ✨ add pure black mode for dark theme
2024-04-25 15:45:24 -04:00
alistair3149
173f093a07
docs: 📚 ️ add documentation on modifications on clientPreferences.js
2024-04-25 14:47:47 -04:00
github-actions
53ba8747ad
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-25 18:22:19 +00:00
alistair3149
07aedfea91
refactor(core): ♻️ do not use 'skin-theme-' message keys
...
It causes issues with translatewiki because of a conflict with Vector.
And those messages are not stable (T359983, T361157)
2024-04-25 14:21:56 -04:00
github-actions
469d6d1d5e
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-25 00:49:51 +00:00
alistair3149
e791a52cd5
refactor(core): ♻️ replace usage of skin-citizen-theme classes
2024-04-24 20:48:43 -04:00
alistair3149
b929c2b7eb
feat(prefs): ✨ add hover state to theme buttons
2024-04-24 20:31:16 -04:00
alistair3149
a741639085
feat(core): ✨ move theme preferences to clientPrefs
...
Since clientPrefs and other related features are not avaliable until MW 1.42,
many of them are backported as polyfill. Instead of using cookies, the polyfill
are using localStorage only like Citizen in the past.
There are many changes behind the scene, but the most important one being that
`skin-citizen-*` theme classes are now soft-deprecated, and replaced by the
standardized `skin-theme-clientpref-*` classes. There will be sufficient
time before the hard deprecation.
Related: #780
2024-04-24 20:23:54 -04:00
alistair3149
755f42eb07
refactor(core): ♻️ clean up redundant styles
2024-04-24 19:43:34 -04:00
alistair3149
30ee7c1dd1
refactor(core): ♻️ use ResourceLoader to minify inline JS
2024-04-24 17:47:33 -04:00
alistair3149
d9675ebd60
fix(core): 🐛 round scrollLeft to integer
...
Fractional pixels from scrollLeft prevent Citizen from detecting overflow state properly.
2024-04-24 16:19:29 -04:00
alistair3149
3093510fae
refactor(preferences): ♻️ use mw.storage instead of localStorage
2024-04-24 00:25:09 -04:00
alistair3149
ed226a400e
feat(preferences): ✨ implement a localStorage version of mw.user.clientPrefs
...
This is the first step of migrating to the clientPrefs library when it is avaliable.
Currently only themes are using it and the standard classes are added to the HTML element.
Related: #780
2024-04-24 00:21:36 -04:00
alistair3149
cd21fd05f3
fix(core): 🐛 make ToC tracking work for non-content pages
...
Since MW 1.40, ToC has been enabled on all pages including non-content page.
By generating a list of elements to track through the ToC instead of targeting
specific classes, it should be more resilient and will work for non-content pages.
2024-04-20 01:32:37 -04:00
alistair3149
0a0a6631b0
fix(core): 🐛 remove margin when contentSub is empty
2024-04-19 23:02:23 -04:00
alistair3149
6dd0f09aca
feat(core): ✨ proper em handling for CJK languages
2024-04-19 16:55:21 -04:00
github-actions
b9a524bab4
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-19 20:26:48 +00:00
alistair3149
6b6dc5b269
feat(core): ✨ increase line height for CJK text
...
To improve readability on sites using Chinese, Japanese, and Korean.
2024-04-19 16:24:50 -04:00
alistair3149
a3e060b90c
feat(core): ✨ tweak light theme colors
...
- Decrease saturation for surface-0
- Increase saturation for other surfaces
2024-04-19 15:21:00 -04:00
alistair3149
fc47692421
feat(core): ✨ rename border-color variables and increase contrast
...
Align variable names with Codex
2024-04-19 15:20:59 -04:00
github-actions
cc5452c119
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-19 18:45:09 +00:00
alistair3149
d820947490
fix(core): 🐛 hide section indicator unless explictly enabled
2024-04-19 14:43:49 -04:00
github-actions
22bad4caab
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-19 17:50:07 +00:00
alistair3149
1d0a4adc55
style: 🎨 stylelint fixes
2024-04-19 13:48:45 -04:00
alistair3149
f84771f042
refactor(core): ♻️ simplify sticky header background styles
2024-04-16 01:33:25 -04:00
alistair3149
11566de6b6
style(css): 🎨 re-apply stylelint fixes
2024-04-16 01:28:45 -04:00
alistair3149
fdc22e4ce5
feat(core): ✨ backport valign styles for images from 1.40+
2024-04-06 14:05:05 -04:00
alistair3149
7fda12693d
fix(core): 🐛 select dropdown menu background
2024-03-20 13:47:30 -04:00
alistair3149
21ce85a320
fix(core): 🐛 remove loading indicator when page is unloaded
...
Closes : #811
2024-03-19 18:49:35 -04:00
alistair3149
84abe5a71c
feat(datatables): ✨ rework search pane and filter styles
2024-03-19 18:01:51 -04:00
alistair3149
54ca25fa27
feat(core): ✨ implement new light theme
...
Now that we have a comfortable coverage for extensions.
It is time to start tweaking light theme color.
2024-03-19 15:48:53 -04:00
alistair3149
cb1f9e616a
feat(toc): ✨ tweak toc header font size
2024-02-28 01:25:05 -05:00
alistair3149
75548a9bdf
feat(core): ✨ increase top margin of content footer
2024-02-28 01:25:03 -05:00
alistair3149
11068251c2
feat(core): ✨ reduce menu header font size
2024-02-28 01:25:02 -05:00
alistair3149
b6872f9d2a
feat(wikitable): ✨ simplify wikitable border styles
2024-02-26 18:47:44 -05:00
alistair3149
c13fd3ea3e
feat(wikitable): ✨ use the same font size for th and td
2024-02-26 17:52:20 -05:00
alistair3149
9bd23fdff2
feat(wikitable): ✨ add border to wikitables
...
Adding borders to wikitables to promote better readability.
This is a complete rewrite of the styles so there might be unexpected issues.
2024-02-26 17:48:21 -05:00
alistair3149
c9f665ef78
feat(core): ✨ use CSS variables for small font sizes
2024-02-26 17:16:07 -05:00
alistair3149
3162e19a2c
feat(core): ✨ use CSS variables for x-small font sizes
2024-02-26 17:14:19 -05:00
alistair3149
3f44789ac6
feat(core): ✨ override font-size-related skin variables
2024-02-26 17:00:31 -05:00
alistair3149
a9acc08e27
feat(core)!: 💥 ✨ rework font-size CSS variables
...
To align with Codex tokens, the old --font-size-hN CSS variables are renamed.
Introduced new font size variables (x-small, small)
2024-02-26 16:54:58 -05:00
github-actions
96171236d7
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-01-27 02:51:04 +00:00
alistair3149
22addebe77
refactor(search): ♻️ start cleaning up search suggestion functions
2024-01-26 21:50:21 -05:00
alistair3149
5e575f4c20
feat(core): ✨ use CSS variable to define default Citizen font
2023-12-15 15:07:43 -05:00
alistair3149
bdd986db89
fix(core): 🐛 hide pseudo elements instead of deleting them (pt2)
2023-12-15 15:03:13 -05:00
Eisa Ahmed
e985f863bc
feat(ar): add support for Arabic fonts through Noto Arabic ( #755 )
...
* Added support for Arabic fonts through Noto Naskh Arabic.
* Added Noto Sans Arabic
2023-12-15 00:41:45 -05:00
alistair3149
b134fbfec5
feat(core): ✨ prefer Roboto over language fonts
2023-12-13 17:33:43 -05:00
github-actions
dc3ca54d43
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-12-13 22:10:24 +00:00
alistair3149
eee044d145
feat(core): ✨ use CSS variable for language-specific fonts
2023-12-13 17:09:57 -05:00
alistair3149
f1ddf3206b
feat(core): ✨ clean up skin variables load order
2023-11-16 18:23:24 -05:00
alistair3149
21f7cc4001
fix(toc): 🐛 incorrect breakpoints for ToC
2023-11-16 18:05:04 -05:00
github-actions
684f20ac6f
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-11-16 22:56:34 +00:00
alistair3149
60999eb1d9
feat(core): ✨ replace breakpoint LESS variables with Codex tokens
...
Codex tokens are a better implementation and this should ensure consistency across the MW ecosystem.
We have to keep a copy for now as they are introduced in 1.41.
Related: #735
2023-11-16 17:55:59 -05:00
github-actions
29a79b15a3
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-11-06 03:42:30 +00:00
alistair3149
071a58ab74
fix(search): 🐛 chip text should not wrap
2023-11-05 22:41:42 -05:00
alistair3149
b0f89ba311
feat(search): ✨ turn search actions into chips
2023-11-03 17:25:30 -04:00
alistair3149
92f069208e
feat(core): ✨ remove unnessecary style from siteSub
2023-11-03 05:32:55 -04:00
alistair3149
47d06bc139
feat(core): ✨ remove top margin from siteSub
2023-11-03 05:31:20 -04:00
alistair3149
201a38f93f
fix(core): 🐛 hide loading indicator when user clicks back button on browser
...
Closes : #718
2023-10-26 17:41:21 -04:00
AlιAѕѕaѕѕιN
456b75c1b1
fix(core): RTL flipping of the progressbar animation keyframe ( #723 )
2023-10-10 19:31:44 -04:00
alistair3149
a6a9fe27e4
fix(core): 🐛 stricter selector for collapsible header
2023-09-10 19:19:31 -04:00
alistair3149
2f40541bc4
feat(core): ✨ prefix citizen section classes
2023-09-10 19:00:52 -04:00
alistair3149
2a2d6e381f
fix(search): 🐛 show presult during init
2023-09-10 16:38:04 -04:00
alistair3149
68dc715138
fix(search): 🐛 search icon clipping
2023-09-06 17:41:42 -04:00
alistair3149
e8f33bdf93
fix(search): 🐛 make search input selectable
2023-09-06 17:34:47 -04:00
alistair3149
6f3d82de04
feat(search): ✨ only show edit page action if user has rights
...
That only works for the main namespace fow now.
2023-09-06 17:33:39 -04:00
alistair3149
363144d172
refactor(search): ♻️ rearrange mwActionApi URL params
2023-08-30 10:32:32 -04:00
alistair3149
31042804df
fix(search): 🐛 incorrect thumbnail icon width
2023-08-30 10:31:26 -04:00
alistair3149
dc072f4e5b
refactor(search): ♻️ make search action into a module
...
Signed-off-by: alistair3149 <alistair31494322@gmail.com>
2023-08-29 20:05:44 -07:00
alistair3149
680d84cfb0
refactor(search): ♻️ rename helper text message keys
2023-08-29 19:39:13 -07:00
alistair3149
3d31d08021
feat(search): ✨ add suggestion to edit page
2023-08-29 19:37:17 -07:00
alistair3149
969f4f0d3d
feat(search): ✨ various tweaks to typeahead styles
2023-08-29 12:32:28 -07:00
alistair3149
2d54cbd930
feat(search): ✨ add missing border between placeholder and group
2023-08-29 02:25:56 -07:00
alistair3149
9280e7c4a8
feat(search): ✨ only add divider between groups
2023-08-29 02:23:57 -07:00
alistair3149
1f0a2e5133
feat(search): ✨ reorganize DOM structure of the typeahead
2023-08-29 01:50:55 -07:00
alistair3149
b33d5bbc87
refactor(search): ♻️ rename typeaheadItems to htmlHelper
2023-08-28 19:20:44 -07:00
alistair3149
325f22f0dd
fix(core): 🐛 fire input event when search query is cleared
2023-08-28 18:36:51 -07:00
alistair3149
bf0ed2bd55
refactor(search): ♻️ use faux element to display search query
2023-08-28 18:22:16 -07:00
alistair3149
cb02307cda
feat(search): ✨ only change search input font size for mobile Safari
2023-08-27 02:00:37 -07:00
alistair3149
ff446e61b3
refactor(search): ♻️ use option role to select user-selectable items
2023-08-27 00:50:10 -07:00
alistair3149
96cf5be48c
feat(search): ✨ only add divider between suggestions and footer
2023-08-26 16:48:28 -07:00
alistair3149
0c0f4f4ffb
feat(search): ✨ strip wikitext link syntax in search
2023-08-25 18:00:55 -07:00
alistair3149
2f2dc3328c
feat(search): ✨ search template namespace when template syntax {{}} is used
2023-08-25 17:28:39 -07:00
alistair3149
96f6361851
feat(core): ✨ use quiet hover color for menu items
2023-08-25 17:03:38 -07:00
alistair3149
853e9a9190
feat(search): ✨ increase description extract character limit to 100
2023-08-24 15:30:03 -07:00
alistair3149
042f2bfbba
feat(search): ✨ use square aspect ratio for suggestion thumbnail
2023-08-24 15:23:46 -07:00
alistair3149
2c1940c4bb
fix(search): 🐛 search history URL should not force fulltext
2023-08-23 21:26:34 -07:00
alistair3149
f6d3fc95e3
feat(search): ✨ add search history to initial state
2023-08-23 17:44:01 -07:00
alistair3149
bd41516190
fix(search): 🐛 do not add empty term to search history
2023-08-22 14:21:06 -07:00
alistair3149
dc9f6f034c
feat(core): ✨ tweak more menu spacing
2023-08-22 14:02:50 -07:00
alistair3149
87886b39a0
fix(core): 🐛 only increase search input font size for mobile
2023-08-14 23:49:01 -04:00
alistair3149
07aa883195
fix(core): 🐛 increase search input font size to 1rem
...
Closes : #513
2023-08-14 23:48:09 -04:00
alistair3149
1155b72636
refactor(search): ♻️ use forEach loop for better readability
2023-08-12 14:20:53 -04:00
alistair3149
98984efd25
refactor(search): ♻️ avoid unnessecary const declaration
2023-08-12 14:16:29 -04:00
alistair3149
02662315f8
refactor(search): ♻️ minor cleanup
2023-08-12 14:11:06 -04:00
alistair3149
122819b67e
fix(core): 🐛 bump search input font size
...
It might fix #513 hopefully
2023-08-11 18:45:04 -04:00
alistair3149
c8ba546be8
feat(core): ✨ reduce space between section indicator and title
2023-08-07 17:20:40 -04:00
alistair3149
2016e2a30c
refactor(search): ♻️ break down some of the suggestions functions
2023-08-07 17:00:56 -04:00
alistair3149
b015647cc6
fix(search): 🐛 avoid double escape for equal sign
2023-08-07 16:20:36 -04:00