Commit graph

1736 commits

Author SHA1 Message Date
alistair3149 8f61265cec
feat(core): add support for skin-invert and skin-invert-image
Sync with current dark mode standards from Vector 2022
2024-09-11 04:26:05 -04:00
alistair3149 07dd936115
feat(toc): reduce the size of toc toggle icon 2024-09-11 03:09:16 -04:00
alistair3149 ab62d65768
fix(toc): 🐛 exclude toggle from top section hover 2024-09-10 22:12:06 -04:00
alistair3149 1b7025ef85
feat(toc): expand the current active section 2024-09-10 22:07:22 -04:00
alistair3149 257673a588
feat(toc): allow ToC to be collapsible
Using the same implementation as Vector 2022

Closes: #556
2024-09-10 19:32:49 -04:00
alistair3149 ca1f31d789
refactor(core): ♻️ remove redundant intersection observers 2024-09-10 18:38:11 -04:00
alistair3149 8640d4ef30
feat(toc): switch to ToC implementation based on Vector 2022
This will serve as the groundwork of merging the intersection observers
and collapsible toc in the future.
2024-09-10 18:28:12 -04:00
alistair3149 b0817115ea
refactor(core): ♻️ clean up ToC classes
Clean up the CSS class name to follow the MW CSS coding conventions.
The structure is refactored to be similar to Vector for easier maintainenace.
2024-09-10 17:40:25 -04:00
alistair3149 8354f8e263
feat(core): do not hardcode scroll padding top 2024-09-10 17:02:59 -04:00
alistair3149 25697495e5
feat(core): add support for mw-sticky-header-element
Task: T289817
2024-09-10 16:50:27 -04:00
alistair3149 5e4e57f082
feat(search): append fragment to search suggestion URLs, if one is provided
Related: T306150
2024-08-17 19:21:09 -04:00
alistair3149 14591adcf2
fix(wikitable): 🐛 fix missing bordered wikitable borders when rowspan is used
Related: #932
2024-08-17 17:48:26 -04:00
alistair3149 a4fdcf3572
fix(pagetools): 🐛 fix incorrect selector for edit buttons 2024-08-17 17:40:53 -04:00
alistair3149 662b02e008
refactor(wikitable): ♻️ use stricter but not more specific selectors for wikitables 2024-08-17 17:27:46 -04:00
alistair3149 7dbdf27ca7
fix(wikitable): 🐛 stricter selector for border separator
Should resolve the first bug in #932
2024-08-17 17:21:04 -04:00
alistair3149 fadd9893ea
fix(pagetools): 🐛 add additional check for source edit button
Closes: #929
2024-08-17 17:14:06 -04:00
alistair3149 fd0346eb4f
fix(category): 🐛 fix incorrect hover text color for visited new category
Closes: #933
2024-08-17 17:00:22 -04:00
alistair3149 3dbf41d3c9
refactor(tokens): ♻️ move link tokens to root 2024-08-17 16:56:32 -04:00
alistair3149 6711196bda
fix(core): 🐛 do not use inset for box-shadow-border
It will be overlapped if the content has background
2024-07-25 14:35:42 -04:00
github-actions 07507207b3 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-07-25 06:25:20 +00:00
alistair3149 9baf8510ce
fix(core): 🐛 fix uneven margin in table cells 2024-07-25 02:24:38 -04:00
alistair3149 1703d29945
feat(stickyHeader): add transition to secondary sticky header 2024-07-24 22:17:03 -04:00
alistair3149 c1370e95f0
feat(core): update box-shadow CSS variables
* Tokenize shadow vertical distance
* Rename CSS variables to match Codex counterpart
* Reduce the vertical distance for all box shadow
2024-07-24 21:53:51 -04:00
alistair3149 9a0ebf4446
fix(stickyHeader): 🐛 incorrect border box shadow 2024-07-24 21:45:12 -04:00
alistair3149 b922b035cc
feat(OOUI): update filter invert rules 2024-07-24 21:09:37 -04:00
alistair3149 72cc2aa482
refactor(core): ♻️ rename button mixins to match with tokens 2024-07-21 16:39:38 -04:00
alistair3149 362dcd01cc
feat(wikitable): add new wikitable utility classes for additional styling
- .wikitable--border to enable vertical divider
- .wikitable--stripe to enable striped rows
2024-07-20 20:33:46 -04:00
alistair3149 cc0820c204
feat(wikitable): use more accurate selectors to apply border and border radius 2024-07-20 19:53:26 -04:00
alistair3149 2fe94438ee
feat(core): add reset styles for border-width and border-color
This will affect existing wikis that uses the invalid border attribute like in #902.
Border attribute is not valid HTML in HTML5 and it has been causing a lot of headache
in other styles
2024-07-20 19:35:14 -04:00
alistair3149 764f7593c3
fix(overflow): 🐛 fix undefined wrapper 2024-07-20 19:32:22 -04:00
alistair3149 08a7a51566
fix(wikitable): 🐛 incorrect selector for tfoot 2024-07-20 17:49:36 -04:00
github-actions 0242d9bc6e ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-07-20 21:46:51 +00:00
alistair3149 15ebea1c80
fix(wikitable): 🐛 incorrect border radius when both thead and tbody are present 2024-07-20 17:46:18 -04:00
alistair3149 4d803f841d
feat(fonts): bump Roboto Flex to 3.200 2024-07-19 22:49:35 -04:00
alistair3149 b9cd27043d
feat(core): tweak changelist and toc border width 2024-07-19 18:31:22 -04:00
alistair3149 a1ad423f2f
feat(stickyHeader): implement sticky header variables into other sticky styles 2024-07-19 17:29:17 -04:00
alistair3149 8c204767c6
refactor(stickyHeader): ♻️ use box-shadow instead of border for bottom border
So that it won't affect the height of the element
2024-07-19 17:10:06 -04:00
alistair3149 c9d98e477a
feat(stickyHeader): add CSS var --height-sticky-header to offset sticky elements
--height-sticky-header will always return the current height of sticky header.
It can be used to offset sticky elements so that it adjusts to the sticky header.
2024-07-19 17:08:03 -04:00
alistair3149 f3042f5b80
fix(toc): 🐛 ToC should have the same padding as other menu cards 2024-07-19 16:27:19 -04:00
alistair3149 e38b44edb2
refactor(search): ♻️ simplify URL generation by using mw.util.getUrl
getUrl will handle both the short URL and santization
2024-07-17 14:16:55 -04:00
alistair3149 a9fb03fc8e
fix(print): 🐛 only color variables require important declaration 2024-07-15 02:09:05 -04:00
alistair3149 1fefddd41a
feat(core): implement Codex border-width tokens 2024-07-15 02:07:25 -04:00
alistair3149 5296aef9de
feat(print): add wikitable styles and hide contentSub 2024-07-15 02:03:28 -04:00
alistair3149 aeb083e74d
fix(print): 🐛 add important declaration to hidden print elements 2024-07-14 19:41:41 -04:00
alistair3149 8641becb2a
feat(print): allow font size settings affect print styles 2024-07-14 18:09:53 -04:00
alistair3149 1da57e5902
feat(print): hide page footer in print styles 2024-07-14 18:05:03 -04:00
github-actions 79ac340667 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-07-14 21:44:10 +00:00
alistair3149 543400d9d5
feat(print): rework print styles 2024-07-14 17:43:34 -04:00
alistair3149 c3855ff8b9
fix(stickyHeader): use cached value for placeholder height if possible
Related: #854
2024-07-12 03:47:25 -04:00
alistair3149 f0d1176f2a
feat(pref): add clientpref to disable auto-hide navigation
Closes #841
2024-07-10 13:59:03 -04:00