Commit graph

633 commits

Author SHA1 Message Date
Hannes 028169ea42
feature: Make color scheme configurable 2021-01-09 22:58:43 +01:00
Hannes 044f27c5ba
refactor: Convert colors to css variables 2021-01-09 22:56:28 +01:00
alistair3149 27d0c12f2d
test: update depreciated stylelint rules 2021-01-05 19:45:22 -05:00
alistair3149 6d0612aafa
refactor: rename function to avoid shadowing 2021-01-05 19:39:15 -05:00
github-actions e6bfcaacca Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-11-24 15:32:14 +00:00
alistair3149 851c92cceb
Merge branch 'master' into patch-1 2020-11-24 10:30:40 -05:00
Cameron bf8909e2bb
Fix closed toc eating clicks with phantom div
Previous behaviour was to remove the toc from view by applying a transform to the .toc > ul but *not* .toc itself.

This meant that .toc was still covering the body when the toc was "closed", eating clicks on anything that would be covered by the toc when opened.

This change puts a transform on .toc itself (and changes the transforms on the ul to match), fixing the issue. However, this creates a new stacking context, which affects .toctogglelabel, since its fixed position is now with respect to .toc, not the viewport. Setting .toctogglelabel { right: -100vw } keeps it in the same place.
2020-11-23 16:14:09 +10:30
Cameron 3f0b54aede Make toc closed by default on mobile 2020-11-23 00:29:59 -05:00
Cameron f168f14378
Make toc closed by default on mobile 2020-11-23 13:18:42 +10:30
alistair3149 f2f669dec6 Deprecate mediawiki.skinning.content.externallinks 2020-10-22 11:04:19 -04:00
alistair3149 8ce02ef308
Hide ToC in print mode due to overlapping 2020-10-19 09:50:48 -04:00
alistair3149 2110aa8d55
Add search loading indicator 2020-10-16 15:23:15 -04:00
alistair3149 ab83d1acfc
Decode fulltext search string 2020-08-23 12:44:57 -04:00
alistair3149 0b87fa8641
Remove low quality image placeholder for lazyload
The original implementation is not robust and make assumptions about a wiki configuration
2020-08-20 12:36:50 -04:00
github-actions ac343ce893 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 0398f5f9f6 Contain scripts inside functions 2020-08-12 12:59:57 -04:00
github-actions eaeadbb776 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 8f4c114916 Fix ToC dark mode background 2020-08-12 12:59:57 -04:00
github-actions bf653992da Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 dc0b3e1549 Fix incorrect rebase merge 2020-08-12 12:59:57 -04:00
alistair3149 ef9f23b8b1 Tweak ToC toggle behavior 2020-08-12 12:59:57 -04:00
github-actions ae78ddf1e0 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 88b7e8babc Fix ToC behavior affected by 1.35 changes 2020-08-12 12:59:57 -04:00
alistair3149 3855215ad6 Suppress stylelint font weight error 2020-08-12 12:59:57 -04:00
alistair3149 84a44cf7d7 Define range of font weight 2020-08-12 12:59:57 -04:00
alistair3149 71436b9d69 Remove unnessecary font-family rule 2020-08-12 12:59:57 -04:00
alistair3149 83ba0eaed4 Update font stacks
Replace san-serif system font stack with system-ui
Add SF Mono to monospace font stack
2020-08-12 12:59:56 -04:00
github-actions b33c85a409 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:56 -04:00
alistair3149 8b45de3e5d Use variant fonts instead
Switch to use variant fonts which allows for more customization and possibly animation. I didn't subset the unicode range since we need i18n support
2020-08-12 12:59:56 -04:00
alistair3149 72dd4ca25b Drop WOFF support
Drop WOFF support since almost all browsers that support WOFF support WOFF2
2020-08-12 12:59:56 -04:00
alistair3149 03c1b75b04 Depreciate mw.RegExp.escape 2020-08-12 12:59:56 -04:00
alistair3149 138dc57d32 Remove Titillium Web font 2020-08-12 12:59:56 -04:00
alistair3149 0f4345dd35
Fix RTL drawer icon animation 2020-08-12 12:56:03 -04:00
github-actions aa1be72216 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 16:45:18 +00:00
alistair3149 d5296aa267
Avoid image links getting hover effects 2020-08-12 12:44:15 -04:00
alistair3149 1b2e33161e
Add mw-empty-elt style 2020-07-28 17:47:24 -04:00
alistair3149 524ba6b9b9
Fix incorrect floatnone style in small screen 2020-07-06 15:35:46 -04:00
github-actions 57cf0cd5c8 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-07-05 21:07:36 +00:00
alistair3149 a09f29fbcf
Add clearfix to avoid overlap with bottom elements 2020-07-04 02:31:15 -04:00
alistair3149 187e25443e
Fix ToC overflow in mobile browser 2020-07-03 22:02:12 -04:00
alistair3149 ea4180af3a
Fix drawer overflow in mobile 2020-07-03 21:59:59 -04:00
alistair3149 ded4fa331e
Normalize textarea border 2020-06-30 16:48:29 -04:00
alistair3149 80dc7e4ad9
Align legend styles with wikitable 2020-06-30 16:41:18 -04:00
alistair3149 49897d2315
Remove input normalize rules 2020-06-30 16:26:49 -04:00
alistair3149 7cc1359c2c
Normalize select style 2020-06-30 16:16:23 -04:00
alistair3149 1706b45211
Normalize input styles 2020-06-30 16:08:24 -04:00
alistair3149 afa5d71486
Rounded corner for ToC drawer 2020-06-30 14:56:01 -04:00
alistair3149 1836dd997f
Rounded popup menu 2020-06-30 14:45:35 -04:00
alistair3149 e3e7ad399a
Remove search bar width transition on small viewport 2020-06-30 14:41:32 -04:00
alistair3149 41197bcea8
Rounded drawer menu 2020-06-30 14:37:33 -04:00
alistair3149 07b0d4ceb5
Fix inconsistent input style on WebKit browsers 2020-06-26 22:42:45 -04:00
alistair3149 b51494102d
Wider page width for special pages (#152)
* Wider page width for special pages

* Wider page width for special pages #2

* Bumped version
2020-06-26 15:55:53 -04:00
alistair3149 9bf0139b13
Tweak base10 color based on WMUI 2020-06-25 17:06:38 -04:00
alistair3149 86c5893ded
Add footer icon style to accomodate more footer icons 2020-06-23 15:51:05 -04:00
alistair3149 7e155cb3b7
Removed hardcoded footer SVG badges 2020-06-23 15:25:26 -04:00
alistair3149 779ba44dbd
Rounded icon for drawer and search button 2020-06-23 14:35:01 -04:00
alistair3149 597f2b287e Fix RTL search toggle icon (#147)
* Fix RTL search toggle icon

* Make a dinner reservation - MediaWiki CI

I clean up code to MediaWiki standards

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-23 14:30:42 -04:00
alistair3149 a5fdb0b9df
Move icons to icon module 2020-06-16 23:43:29 -04:00
alistair3149 9045398201
Add documentation to Citizen scripts 2020-06-16 23:16:45 -04:00
alistair3149 6ba5f41470
Use module name for stylesheets and scripts 2020-06-16 23:03:28 -04:00
alistair3149 f72af5e76d
Improve CI and code clean up (#143)
* Replace existing grunt linter

* Fix stylesheet issues picked up by stylelint

* Update the git workflow

* Fix incorrect slash in workflow file

* Github CI lint - eslint/stylelint

* Clean up composer

* Fix phpcb error

* MediaWiki CI

* Change commit message

* Update status badge

* Add JSDoc

* Add SVGO

* Make a dinner reservation - MediaWiki CI

I clean up code to MediaWiki standards

* Optimize SVG files with SVGO

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-16 22:49:41 -04:00
alistair3149 32a0af35d4
Separate ToC from core module 2020-06-15 22:32:55 -04:00
alistair3149 951f60ce05
Fix plainlist style 2020-06-13 21:54:32 -04:00
alistair3149 52811c667c
Fix ToC not appearing in print mode 2020-06-12 16:28:47 -04:00
github-actions 92a5ae1b2a Github CI lint - eslint/stylelint 2020-06-12 20:21:44 +00:00
alistair3149 7cb96376b2
Fix print mode styles 2020-06-12 16:21:27 -04:00
alistair3149 7980716047
Clean up common stylesheets 2020-06-12 14:16:45 -04:00
github-actions 5b59196041 Github CI lint - eslint/stylelint 2020-06-12 18:07:26 +00:00
alistair3149 d4748e8d47 Remove dark mode less 2020-06-12 14:05:32 -04:00
alistair3149 2fb4705f29 Move pagelinks dark mode styles to pagelinks 2020-06-12 14:05:32 -04:00
github-actions 5ac54f07dd Github CI lint - eslint/stylelint 2020-06-12 18:02:43 +00:00
alistair3149 96d7c90b21
Separate lazyload styles from common 2020-06-12 14:02:23 -04:00
alistair3149 21b2838c0e
Separate pagelinks styles from common 2020-06-12 13:44:24 -04:00
alistair3149 e136787fa4 Clean up page tools selectors 2020-06-12 02:09:49 -04:00
github-actions c9d18d06c4 Github CI lint - eslint/stylelint 2020-06-12 06:03:29 +00:00
alistair3149 23cb7e4774
Move hack styles out of common 2020-06-12 02:03:05 -04:00
alistair3149 478c476431 Move Echo dark styles to echo skinstyles 2020-06-12 01:59:13 -04:00
github-actions cd5a8fa28c Github CI lint - eslint/stylelint 2020-06-12 05:57:30 +00:00
alistair3149 242d49af1e Clean up overqualified selectors 2020-06-12 01:56:55 -04:00
alistair3149 520b80132e
Move Cite-related styles outside of common 2020-06-12 01:43:12 -04:00
alistair3149 7f1e5d63de
Tweaks to thumbnail caption styles 2020-06-12 01:22:05 -04:00
alistair3149 d002ad6ede
Tweak ToC max height 2 2020-06-11 23:03:28 -04:00
alistair3149 3b22e99b54
Tweak ToC max height 2020-06-11 22:58:56 -04:00
alistair3149 a30c85bb8d
Fix improper selector for float styles (#136)
* Fix improper selector for float styles

* Github CI lint - eslint/stylelint

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-11 19:13:58 -04:00
alistair3149 70cbebf602
Set z-index for toc so that it is under float objects 2020-06-11 18:31:13 -04:00
alistair3149 41a71153a0 Removed reduncant codes 2020-06-11 18:17:37 -04:00
github-actions 8839e8869b Github CI lint - eslint/stylelint 2020-06-11 22:16:03 +00:00
alistair3149 cb4c660a5b
Clean up common styles 2020-06-11 18:15:40 -04:00
alistair3149 1428d9efc5
Fix page tools overlapping with drawer menu 2020-06-11 17:37:51 -04:00
alistair3149 a10c0e3848
Fix ToC not appearing in mobile 2020-06-11 16:53:25 -04:00
github-actions 0bedb3a9b5 Github CI lint - eslint/stylelint 2020-06-11 20:33:35 +00:00
alistair3149 904b5708e9
Add max width for ToC 2020-06-11 16:33:05 -04:00
alistair3149 991b5adf6f
Removed unnessecary important CSS 2020-06-11 16:19:10 -04:00
alistair3149 1244ed148a
Change sidebar location 2020-06-11 16:14:46 -04:00
alistair3149 fc4e492e01
Add missing semi colon to CSS 2020-06-11 16:08:32 -04:00
alistair3149 f4344bfb20
Tweak mobile ToC styles 2020-06-11 16:06:02 -04:00
alistair3149 540e3d7323
Add more indent space for ToC 2020-06-11 15:52:05 -04:00
alistair3149 a0a7c5c03f
Removed margin from page tools 2020-06-11 15:47:33 -04:00
alistair3149 ad3b9c41aa Reduce unnessecary spacing for first heading 2020-06-11 15:42:32 -04:00
github-actions 16f21053b5 Github CI lint - eslint/stylelint 2020-06-11 19:36:54 +00:00
alistair3149 ae156d2f87
Move ToC to the left 2020-06-11 15:36:26 -04:00
alistair3149 8af63d7f61
Remove display:flex from toctext 2020-06-11 00:31:57 -04:00
github-actions 2c8eec5a67 Github CI lint - eslint/stylelint 2020-06-11 02:36:17 +00:00
alistair3149 dc4ae4996a
Refactored float styles to only apply on immediate childs 2020-06-10 22:35:54 -04:00
alistair3149 8e9fcef55c
Fix toc header color 2020-06-10 21:57:35 -04:00
alistair3149 52b58f0d95
Fix footer external link color 2020-06-10 21:46:42 -04:00
alistair3149 76ff442a04
Remove all visited link styles 2020-06-10 21:41:05 -04:00
alistair3149 d2124579a3
Removed visited link style 2020-06-10 21:30:29 -04:00
alistair3149 ca2c708ec2
Fix tocbutton text bug 2020-06-10 20:28:54 -04:00
github-actions c7b006a382 Github CI lint - eslint/stylelint 2020-06-10 22:02:47 +00:00
alistair3149 590024e038
Clean up ToC styles 2020-06-10 18:02:22 -04:00
alistair3149 e6fab45a06
Removed duplicated media query from search form 2020-06-10 01:19:15 -04:00
alistair3149 c642dc07e0
Remove duplicated media queries 2020-06-10 01:17:49 -04:00
github-actions 629ff0d2aa Github CI lint - eslint/stylelint 2020-06-10 03:00:57 +00:00
alistair3149 1425e2cd07
Add wikitable caption style 2020-06-09 22:59:54 -04:00
alistair3149 41802cb96a
Clean up icon ResourceLoader modules 2020-06-09 22:23:04 -04:00
alistair3149 0484c32f41
Reorganize stylesheets into its ResourceLoader module (#126) 2020-06-09 22:12:04 -04:00
alistair3149 18884fb6a1
Fixed special click redirection on search suggestion (#125) 2020-06-09 21:23:46 -04:00
alistair3149 6c4cef36f9
Fix alignment for footer icons if they are in the same li (#124) 2020-06-09 13:23:28 -04:00
alistair3149 c14bb9135e
Limit pagedescription text to 60 characters (#122)
* Trim extra description off for pagedescription

* Github CI lint - phpcbf

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-09 12:49:27 -04:00
alistair3149 d2845859c7
Open search when shortcut key is pressed 2020-06-09 00:30:24 -04:00
alistair3149 88e4dd87ae
Add additional padding between clear text and random button 2020-06-08 22:47:32 -04:00
alistair3149 9407f2e31b
Minor tweaks to suggestion spacing 2020-06-08 22:45:25 -04:00
alistair3149 2736d2dcc9 Reduce border radius of search box 2020-06-08 22:41:54 -04:00
github-actions 79a337175a Github CI lint - eslint/stylelint 2020-06-09 02:38:45 +00:00
alistair3149 f6a4fae422 Improved mobile search UI 2020-06-08 22:38:14 -04:00
github-actions 5fb96074ab Github CI lint - eslint/stylelint 2020-06-09 01:59:02 +00:00
alistair3149 345af04010
Added random button to search bar 2020-06-08 21:58:35 -04:00
alistair3149 d4e60d047b
Tweak search bar styles 2020-06-08 21:00:27 -04:00
alistair3149 ff0b5830c4 Merge branch 'dev' of github.com:StarCitizenTools/mediawiki-skins-Citizen into dev 2020-06-08 19:12:12 -04:00
alistair3149 c009b8726c
Simplified search bar
The last one didn't stage all the files
2020-06-08 19:12:03 -04:00
github-actions 5d0d9898d0 Github CI lint - eslint/stylelint 2020-06-08 22:42:48 +00:00
alistair3149 5ec01bfffe Merge branch 'dev' of github.com:StarCitizenTools/mediawiki-skins-Citizen into dev 2020-06-08 18:42:24 -04:00
alistair3149 1e2574fa4c
Simplified search bar 2020-06-08 18:42:15 -04:00
github-actions eaba71ede8 Github CI lint - eslint/stylelint 2020-06-08 22:09:32 +00:00
alistair3149 b24735337d
Reuploaded footer file 2020-06-08 18:08:44 -04:00
alistair3149 460c7e83bf
Delete footer.less 2020-06-08 18:05:28 -04:00
alistair3149 8e9bbdbbad
Removed search button 2020-06-08 16:51:48 -04:00
alistair3149 4d1170023a
Rounded corner for search suggestion 2020-06-08 16:26:51 -04:00
alistair3149 23a46f45c9
Removed suggestion backdrop hack 2020-06-08 01:43:57 -04:00
alistair3149 efd5ec53fc Merge branch 'dev' of github.com:StarCitizenTools/mediawiki-skins-Citizen into dev 2020-06-08 01:22:46 -04:00
alistair3149 c7d73a26c8
Additional tweaks to suggestion styles 2020-06-08 01:22:33 -04:00
github-actions 541698130e Github CI lint - eslint/stylelint 2020-06-08 05:14:17 +00:00
alistair3149 82e6247cf0 Merge branch 'dev' of github.com:StarCitizenTools/mediawiki-skins-Citizen into dev 2020-06-08 01:13:31 -04:00
alistair3149 98b130e635
Reworked search suggestion styles 2020-06-08 01:13:24 -04:00
github-actions ba6ead1daa Github CI lint - phpcbf 2020-06-08 04:28:38 +00:00
alistair3149 a6d42a419e
Added icon to fulltext search suggestion 2020-06-08 00:27:25 -04:00
github-actions d0d379da52 Github CI lint - phpcbf 2020-06-07 22:48:53 +00:00
alistair3149 5df1d0971e
Removed no result search suggestion 2020-06-07 18:48:21 -04:00
alistair3149 b03c250a75
Added full text search to search suggestions 2020-06-07 18:34:12 -04:00