Commit graph

1866 commits

Author SHA1 Message Date
alistair3149 d4d6345050
perf(stickyHeader): ️ only recalc stickyHeader height when width changes 2024-11-08 21:24:56 -05:00
alistair3149 252e98b085
perf(stickyHeader): ️ improve responsiveness for sticky header 2024-11-08 04:58:11 -05:00
alistair3149 ba5d0a7f92
refactor: ♻️ drop i18n-all-lists-margins styles
It is replaced by logical properties
2024-11-07 21:52:45 -05:00
alistair3149 3c39d6bbf5
refactor(core): ♻️ use CSS logical properties for elements 2024-11-07 21:51:08 -05:00
alistair3149 8280509517
refactor(core): ♻️ use CSS logical properties for shorthands 2024-11-07 21:39:00 -05:00
alistair3149 82d413f8ff
refactor(core): ♻️ remove IntersectionObserver fallback
Following Vector deprecation
2024-11-07 21:12:50 -05:00
alistair3149 2d7b03604a
refactor(core): ♻️ use margin-inline instead of left and right 2024-11-07 21:10:39 -05:00
alistair3149 8819757913
fix(stickyHeader): 🐛 do not reset stickyHeader when page title is visible
There is no need to trigger sticky header when page title is visible.
2024-11-07 21:10:39 -05:00
github-actions fc29af3478 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-11-08 01:54:15 +00:00
alistair3149 a74d17e130
perf(stickyHeader): ️ improve scroll performance 2024-11-07 20:53:21 -05:00
alistair3149 94936732ec
refactor(core): ♻️ clean up scroll direction observer 2024-11-07 20:33:56 -05:00
alistair3149 30fca942a7
perf(core): ️ move sticky header handling to observers 2024-11-07 19:12:48 -05:00
alistair3149 3b8022c3c1
refactor(core): ♻️ set up scroll direction observer in setupObservers
This is needed for centralizing the observers.
2024-11-07 19:12:48 -05:00
alistair3149 241ef66893
perf(core): ️ move window.resize to resizeObserver 2024-11-07 19:12:48 -05:00
alistair3149 ded49e61d8
fix(toc): 🐛 invisible toc icons on desktop 2024-11-06 14:10:03 -05:00
alistair3149 6523c5d3ab
fix(toc): 🐛 fix invisible toc on desktop 2024-11-05 22:31:28 -05:00
alistair3149 39ad06e99d
refactor(dropdown): ♻️ target dropdown icons specifically for content-visibility 2024-11-05 22:19:06 -05:00
alistair3149 0607e9fa24
fix(search): 🐛 do not set content-visbility for search card 2024-11-05 22:17:32 -05:00
alistair3149 70193eb568
perf(dropdown): ️ use content-visibility for icons and dropdown menus
This will reduce the initial render cost of the menus, and also prevent premature download
for the icons.
2024-11-05 21:50:54 -05:00
alistair3149 582a3544bd
feat(skinning): update message box styles to current standard 2024-11-05 00:45:11 -05:00
alistair3149 07179d50b1
perf(core): ️ defer non-essential init scripts 2024-11-03 10:39:10 -05:00
alistair3149 a32bc92a99
perf(footer): ️ add CSS containment to footer 2024-11-03 01:05:28 -04:00
alistair3149 e79ae5939c
perf(core): ️ put sticky header elements in DOM instead of creating them on init 2024-11-03 00:44:23 -04:00
alistair3149 ec097f2e42
perf(core): ️ only fire scroll direction function when direction changes 2024-11-02 02:24:54 -04:00
alistair3149 bbc6069748
fix(toc): 🐛 incorrect toc button height 2024-11-02 02:17:45 -04:00
alistair3149 25fbc14908
style(core): 🎨 rename intersectionObserver references to observer
We will be using it for more than intersectionObserver.
2024-11-02 02:00:21 -04:00
alistair3149 50a75c550c
perf(core): ️ do not use throttle for scroll direction observer
Just requestAnimationFrame should be enough. The previous throttle implemenation
makes the sticky header feel less responsive
2024-11-02 01:59:17 -04:00
alistair3149 a480cc27af
feat(skinning): apply floatleft and floatright to all elements
There are more block elements that might use floatleft and floatright.
We should not restrict it to only <div> and <table>
2024-10-30 22:20:12 -04:00
alistair3149 b9cfd0ebc8
fix(skinning): 🐛 stricter selector to select a element containing thumbnail 2024-10-30 15:57:41 -04:00
alistair3149 a9ff2da26d
feat(search): use 220px thumbnail for Action API search
220px is standardized to avoid further thumbnail fragmentation.
It should not affect the REST API search.
T322621
2024-10-30 02:01:18 -04:00
alistair3149 196f3d9063
perf(core): ️ use CSS containment for search card and sidebar 2024-10-29 23:55:50 -04:00
github-actions a65d5bac50 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-10-29 23:04:03 +00:00
alistair3149 eab9bcf228
fix(fonts): 🐛 remove serif and monospace fallback fonts
We don't provide web fonts for those, no need to have a fallback font
2024-10-29 19:03:16 -04:00
alistair3149 2d9febf0e2
perf(tokens): ️ reduce lang selector cost
The original lang selector was too broad and execute needlessly.
2024-10-29 18:48:13 -04:00
alistair3149 2b3dbd9960
refactor(toc): ♻️ avoid using important for top link 2024-10-29 18:35:06 -04:00
alistair3149 d46855c0c2
feat(fonts): define fallback fonts to avoid CLS 2024-10-29 18:07:13 -04:00
alistair3149 168a53d6ef
feat(tokens): increase saturation on surface colors 2024-10-28 16:31:48 -04:00
alistair3149 c37560a2a9
fix(core): 🐛 emit resize event after clientPref change
Various apps listen to window resize events to reposition absolutely positioned elements
2024-10-28 16:04:51 -04:00
github-actions 50c30afa23 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-10-28 01:31:36 +00:00
alistair3149 2dc72705d2
feat(core): use newer method to set safe height 2024-10-27 21:30:41 -04:00
alistair3149 b81ed673a7
feat(core): account for safe area for body element 2024-10-27 21:17:34 -04:00
alistair3149 09f8f0c70b
fix(viewTransition): 🐛 remove unnessecary definitions 2024-10-27 21:10:58 -04:00
alistair3149 8e578b8a38
feat(core): add basic cross-document transition
Adding basic fade in and out transition in page navigation.
2024-10-27 20:38:46 -04:00
PenguinEncounter 0248af9425
fix(core): 🐛 fix section collapsing not functioning on Firefox (#965) 2024-10-25 14:06:52 -04:00
alistair3149 06b6f6c194
feat(header): add microinteraction to wiki logo/home button 2024-10-23 19:46:15 -04:00
alistair3149 17bcccac65
refactor(tokens): ♻️ integrate cssvariables.less into tokens.less 2024-10-23 17:54:26 -04:00
alistair3149 2f084b89e0
refactor(tokens): ♻️ move syntax highlight colors to token.less 2024-10-23 17:40:13 -04:00
alistair3149 c88df2d194
feat(tokens): deprecate old font-weight-semibold variables
Old variables are being deprecated to align naming convention with Codex.
They will be hard-deprecated on the next major Citizen version.
2024-10-23 17:34:41 -04:00
alistair3149 90862b193e
feat(tokens): deprecate old line height variables
Old variables are being deprecated to align naming convention with Codex.
They will be hard-deprecated on the next major Citizen version.
2024-10-23 17:33:46 -04:00
alistair3149 fde0f9c84c
refactor(tokens): ♻️ move spacing variables to token.less 2024-10-23 17:31:31 -04:00