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
alistair3149
028103799e
fix(search): 🐛 incorrect SMW search result mapping
2023-08-07 16:18:26 -04:00
alistair3149
59ceaf56cf
refactor(search): ♻️ add groundwork needed for search history
2023-08-04 20:02:42 -04:00
alistair3149
29d0f4b1ff
fix(core): 🐛 incorrect value for aria-controls
2023-08-04 17:31:11 -04:00
github-actions
70a003d941
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-08-04 21:25:01 +00:00
alistair3149
283aa86888
refactor(search): ♻️ break down updateTypeahead function
2023-08-04 17:24:22 -04:00
alistair3149
c39a4e6796
refactor(search): ♻️ clean up keydown event
2023-08-04 16:33:17 -04:00
alistair3149
c21348d0c7
refactor(search): ♻️ initial state of the elements should be undefined
2023-08-04 16:27:37 -04:00