alistair3149
7eae7c6b14
feat(core): ✨ migrate sitestats to use RL icon module
2022-11-21 17:42:57 -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
bc1dd38a12
feat(core): ✨ add back to top link to toc
2022-11-21 17:41:56 -05:00
alistair3149
622f368d1e
feat(core): ✨ add desktop styles for toc
2022-11-21 17:41:45 -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
7bd34caad5
style(core): 🎨 rename personal menu to user menu
2022-11-21 17:41:30 -05:00
alistair3149
a31babc297
refactor(core): ♻️ drop polyfill related to user menu
2022-11-21 17:41:20 -05:00
alistair3149
43eae7e916
feat(core): ✨ drop data-namespace in favor of data-associated-pages
2022-11-21 17:41:18 -05:00
alistair3149
7b311db1a6
refactor(core): ♻️ use user-menu template data instead
2022-11-21 17:41:13 -05:00
alistair3149
d78ffeadb4
refactor(core): ♻️ use core data for search box
2022-11-21 17:41:10 -05:00
alistair3149
a93f373269
refactor(core): ♻️ use core sidebar data
2022-11-21 17:41:06 -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
alistair3149
4aa59d5c14
style(core): 🎨 shorten variable name
2022-11-21 17:41:01 -05:00
alistair3149
ac12ff0444
refactor(core): ♻️ use MW footer data and add onto it
2022-11-21 17:40:58 -05:00
alistair3149
4c9aa17bb2
refactor(core): ♻️ drop footer mustache fallback
2022-11-21 17:40:56 -05:00
alistair3149
fdd5c0dd2a
feat(core): ✨ add an aria-labelledby attribute to #bodyContent
...
Related: T312818
2022-11-21 17:40:51 -05:00
alistair3149
4f74f0b4ad
refactor(core): ♻️ drop getFooterIcons
2022-11-21 17:40:49 -05:00
alistair3149
0ddd1ebf80
refactor(core): ♻️ clean up page tools implementation
2022-11-21 17:40:44 -05:00
alistair3149
05e3c6762d
refactor(core): ♻️ drop getPortletData usage in notifications
2022-11-21 17:40:43 -05:00
alistair3149
bd07799a67
refactor(core): ♻️ drop getPorletData usage in drawer
2022-11-21 17:40:41 -05: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
alistair3149
9de7a1d4b2
feat(core): ✨ move catlinks to body footer
2022-10-01 16:07:37 -04:00
alistair3149
4902ae76ab
feat(core): ✨ redesign site footer
...
last modified and copyright message are not implemented yet.
they will be integrated into body content since they are not global.
2022-10-01 15:06:57 -04:00
alistair3149
5be20a256c
feat(core): ✨ add jump to top link to sticky header
2022-09-30 11:24:06 -04:00
alistair3149
f3e4332e61
feat(core): ✨ move fluid sticky transition
2022-09-30 10:29:50 -04:00
alistair3149
e72d7c00a3
feat(core): ✨ add sticky body header
2022-09-29 22:33:06 -04:00
alistair3149
6de95d4fec
feat(core): redesign site header ( #521 )
...
Change header into vertical header for large screen and bottom header for small screen.
2022-09-29 19:12:56 -04:00
Maxim Martynov
4aa6626438
feat: defer loading menu wiki logo ( #507 )
...
* Add lazy load attribute to menu logo
* Async decode is not necessary
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2022-08-30 19:23:09 -04:00
alistair3149
11c50a5669
refactor(core): remove redundant message keys
2022-05-26 17:57:57 -04:00
alistair3149
4d7fecc299
refactor(core): clean up polyfilled Mustache template data
...
Clean up Mustache-related polyfill for 1.35 against 1.39,
in preparation of the 1.39 refactor
2022-05-26 17:33:59 -04:00
alistair3149
21633dcd3c
feat(core): separate header from personal menu list
2022-05-23 16:10:14 -04:00
alistair3149
1df970eb41
feat(core): intergrate firstHeading changes from MW 1.39
...
* It is a temporary backport until we move to minimum 1.39
* Add support for blanking title introduced from 1.38
2022-05-21 16:24:35 -04:00
alistair3149
082b70f7e5
refactor(core): clean up drawer code
...
* Make it a bit more readable
* Define function return type
* Change default of CitizenPortalAttach to an empty string
* Site tools now attach to the first portlet when CitizenPortalAttach is empty
2022-05-18 19:43:50 -04:00
alistair3149
08ddb60bb6
feat(core): remove tabindex from checkbox label button
...
Elements with `aria-hidden` tag should not have a tabindex.
2022-05-18 17:48:38 -04:00
alistair3149
1df223abfa
feat(core): update menu to be more inlined with MW core
...
* Use label instead of h3 for menu headings
* Rename portals to portlets according to core
* Replace label-class with heading-class
* Use has-label to hide labels instead of adding screen reader class
2022-05-18 17:14:24 -04:00
alistair3149
73c61e9b37
feat(core): use ULS for interwiki language menu if possible
2022-05-17 09:42:34 -04:00
alistair3149
93087a4fbe
refactor(core): clean up personal menu implementation
2022-05-16 22:52:04 -04:00
alistair3149
8c2d8e5e4e
refactor(core): remove mw-portal
class
...
It is legacy code no longer found in core, and mw-portlet serves the exact same function.
2022-05-16 19:40:10 -04:00
alistair3149
9926140281
feat(core): add language count badge
...
Now the language button will have a badge indicating avaliable languages for the page
2022-05-16 19:31:11 -04:00
alistair3149
c6e9bc44a9
feat(core): use checkboxHack for page actions more menu
...
* use checkboxHack for the menu
* streamline language and more action menu styles and classes
2022-05-16 18:14:35 -04:00
alistair3149
442f241641
feat(core): add language menu to page tools
...
In other language menu and language variant menu are merged into a singular menu
with a toggle in page tools. This is the first step towards having better language
handling in the skin.
2022-05-16 00:50:00 -04:00
alistair3149
595c748eba
refactor(core): decouple content header from skin.mustache
2022-05-15 20:55:13 -04:00
alistair3149
86150d492d
refactor(core): clean up checkboxHack implementation
...
Mostly based on Vector 2022. Now we target checkbox hacks by the HTML classes
.mw-checkbox-hack-TYPE instead of defining each individually, which would
make it more scalable.
2022-05-12 22:37:28 -04:00
alistair3149
e0d5eb9657
feat(core): set toc-enabled through Mustache template
...
Since somewhere around MW 1.37, buildSkinFeatures() no longer have access to OutputPage.
That causes $out->isTOCenabled always return null, which makes ToC
broken for any wikis since 1.37. This should fix the issue for now.
More optimizations on the loading behavior will come soon.
2022-05-12 17:01:01 -04:00
alistair3149
b73357cf7c
feat(core): update checkboxHack API
2022-05-11 21:32:36 -04:00
alistair3149
cae7deb945
refactor(core): clean up header icon styles
2022-05-10 11:59:43 -04:00
alistair3149
15296d55be
refactor(core): move checkboxHack checkboxes into container
2022-05-10 11:15:34 -04:00
alistair3149
105d1b9006
refactor(core): clean up inner header implementation
...
This is a part of the header refactor
* Add hover and active state for title button
* Clean up DOM structure
* Clean up unnessecary styles
* Clean up HTML class names
2022-05-10 10:52:36 -04:00
alistair3149
6e35212007
refactor(core): clean up search box implementation
...
* Clean up DOM structure
* Clean up HTML classes
* Use relative units
* Remove unnessecary CSS
2022-05-10 10:52:36 -04:00
alistair3149
5ccfbcfdeb
refactor(core): clean up drawer implementation
...
This is a part of the site header refactor
* Use relative units
* Add title to toggle button
* Remove unnessecary CSS
* Rewrite HTML classes
* Temporary remove drawer subsearch, it will be re-explored in a later patch
2022-05-10 10:52:36 -04:00
alistair3149
44f9bc0a7c
feat(core): style parenthesis text in FirstHeading differently
...
Parenthesis text in FirstHeading are commonly used for disambiguation purposes
Therefore it does not have to be as prominent as the title
2022-05-07 00:45:51 -04:00
alistair3149
37beda8e87
feat: show namespace (e.g. Discussion) on page tools
2022-04-27 13:12:59 -04:00
alistair3149
f05295195a
feat: move discussion to the top of the more menu
...
Also clean up some related-styles
2022-04-24 01:53:47 -04:00
alistair3149
6efff7f5da
feat: revamp drawer header
...
* wgLogo is always visible in the drawer
* Increase the size of wiki name
* Sitestats will now format large numbers into human readable formats (e.g. 12.2K, 3M, etc.)
* Sitestats now use icons instead of text as labels
* Remove wordmark for now, will revisit later
2022-04-23 01:30:02 -04:00
Lens0021
449278f0be
feat: use template data for page tools if available ( #440 )
...
* Use template data for page tools if available
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
* emptyPortlet class is added by the core
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
* Update PageTools.php
* Set toolbox to always valid data
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2022-04-14 00:30:33 -04:00
alistair3149
8bca28662b
feat: remove mw-body-content from HTML
...
T279388
mw-body-content is used within body content in 1.37. The original mw-body-content container will use the class citizen-body instead.
2021-07-30 11:44:02 -04:00
alistair3149
bc59fb82aa
refactor: clean up footer functions
2021-06-20 02:03:43 -04:00
alistair3149
57405796f0
feat: remove mw-body-content from site notice
...
mw-body-content should only be used for article content, see T279388 for relevant discussions
2021-05-20 01:57:00 -04:00
alistair3149
06e91bb42d
feat: improve header button behavior
2021-05-04 13:27:47 -04:00
alistair3149
51ac47691e
feat: implement reading preferences
...
allow visitor to adjust theme, font size, and page width
2021-04-27 13:51:03 -04:00
alistair3149
e2b4a4e49a
feat: show page title on header after scroll
...
The page header also acts as a jump to top link
2021-04-26 11:39:27 -04:00
alistair3149
bd3eac63bb
refactor: move Mustache templates to root directory
2021-04-09 11:47:48 -04:00