Pagelib theme code isn't exempting code highlight styling.
Fix: https://github.com/wikimedia/wikimedia-page-library/pull/102
enwiki > Lua (programming language) > Syntax
Before fix:
After fix:
Mhurd | |
Nov 17 2017, 8:59 PM |
F11851697: image.png | |
Dec 15 2017, 10:05 PM |
F10908987: Screen Shot 2017-11-20 at 5.07.53 PM.png | |
Nov 21 2017, 1:14 AM |
F10908986: Screen Shot 2017-11-20 at 5.08.01 PM.png | |
Nov 21 2017, 1:14 AM |
F10852881: Screen Shot 2017-11-17 at 2.26.00 PM.png | |
Nov 17 2017, 10:28 PM |
F10850656: Screen Shot 2017-11-17 at 12.48.20 PM.png | |
Nov 17 2017, 8:59 PM |
F10850660: Screen Shot 2017-11-17 at 12.50.18 PM.png | |
Nov 17 2017, 8:59 PM |
F10850659: Screen Shot 2017-11-17 at 12.50.11 PM.png | |
Nov 17 2017, 8:59 PM |
F10850655: Screen Shot 2017-11-17 at 12.48.11 PM.png | |
Nov 17 2017, 8:59 PM |
Pagelib theme code isn't exempting code highlight styling.
Fix: https://github.com/wikimedia/wikimedia-page-library/pull/102
enwiki > Lua (programming language) > Syntax
Before fix:
After fix:
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T180332 Syntax highlighting missing in mobile app | |||
Resolved | Mhurd | T180846 Fix code highlight theme-ing |
@cmadeo hey @Dbrant discovered that we weren't using the CSS which makes code syntax highlighting work so we fixed that, but I noticed our theming needed to explicitly exclude these bits too, as you can see from the screenshots in this ticket description.
@bearND noticed doing so left us with one element in particular which looked funky in dark mode - specifically the blue factorial below:
... so I changed it to use the same blue as links:
Wanted to check with you if that's ok and to see if there were any other colors we should nudge for dark mode (or sepia)... seems easy to do so if needed.
@Mhurd Could we use the reds and greens associated with the Dark and Sepia mode color palettes?
https://phabricator.wikimedia.org/T169148
Palette | Color | Hex |
Sepia | Red | #B32424 (Red30) |
Sepia | Green | #00AF89 (Green50) |
Dark | Red | #FF6E6E (Red75) |
Dark | Green | #00AF89 (Green50) |
Reminder: as explained here https://github.com/wikimedia/wikimedia-page-library/pull/102#issuecomment-345882318 @cmadeo and I ended up finding pre-made dark and sepia CSS for the pygments highlighting extension so we were able to just use those. This ended up being VASTLY less complicated than trying to iron out custom color edge cases ourselves :)
Testing criteria
We're testing the dark and sepia theme's ability to highlight parts of programming language snippets (see the screenshots in the ticket description for examples).
Most of the articles on the List of programming languages article have such examples.
So a handy way to test is: