MediaWiki talk:Common.css: Difference between revisions
m (Difference table) |
|||
Line 25: | Line 25: | ||
Syntax highlighting isn't currently inverted and hue rotated in some contexts, such as on the documentation page for {{tl2|CodeBlock}}. ―[[User:Pee|Pee]] ([[User talk:Pee|talk]]) 18:27, 19 June 2024 (PDT) | Syntax highlighting isn't currently inverted and hue rotated in some contexts, such as on the documentation page for {{tl2|CodeBlock}}. ―[[User:Pee|Pee]] ([[User talk:Pee|talk]]) 18:27, 19 June 2024 (PDT) | ||
== Difference table == | |||
When I was working on [[User:Max34/VDCEditor|my extension]], I tried fixing the diff table (the one that appears when you click on the “Show changes” button when editing or the one when you compare versions of a page). | |||
I don’t pretend that this will be added, but I would like to write this code here in case someone needs it. | |||
{{CodeBlock|lines=43|<nowiki>table.diff | |||
{ | |||
background-color: #202020; | |||
color: white; | |||
border: 1px solid #666666; | |||
border-radius: 4px; | |||
} | |||
td.diff-otitle, td.diff-ntitle | |||
{ | |||
background-color: #3A3A3A; | |||
color: #D8D7D6; | |||
border-radius: 4px; | |||
} | |||
td.diff-deletedline, td.diff-addedline | |||
{ | |||
color: #D8D7D6; | |||
background-color: #303030; | |||
border-color: #666; | |||
} | |||
td.diff-context | |||
{ | |||
background: #303030; | |||
color: #D8D7D6; | |||
border-color: transparent; | |||
} | |||
.diffchange | |||
{ | |||
color: white; | |||
} | |||
.diff-addedline .diffchange | |||
{ | |||
background: #194C7D; | |||
} | |||
.diff-deletedline .diffchange | |||
{ | |||
background: #B78100; | |||
}</nowiki>}} | |||
--[[User:Max34|Max34]] ([[User talk:Max34|talk]]) 23:43, 19 June 2024 (PDT) |
Revision as of 23:43, 19 June 2024

Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.
Is there any way someone could get to work? --TheLazyPanda (talk) 01:47, 19 Jan 2010 (UTC)
or the user styles --Karl-police (talk) 19:06, 13 Oct 2023
Fix the category block
As stated on the Project:Necessary Features#Bugs_needed_to_fix, it is worth removing the height property from .catlinks block which causes the text to go out of bounds if there are more categories than can fit on one line.
As I understand it, common.css can only add new styles, so here is a simple code that should work:
This problem becomes most noticeable when the hidden categories mode is enabled.
Personally, I would like to suggest also adding the border-radius: 4px; property, but whether to add this or not is up to you. --Max34 (talk) 00:45, 18 June 2024 (PDT)
Purple links
This change isn't going to stay, I hope? Cvoxalury (talk) 16:31, 19 June 2024 (PDT)
- They were purple before, just darker. I'm currently trying to make text more readable; I've removed it for now. PabloS (talk) 16:44, 19 June 2024 (PDT)
.mw-highlight
should have an invert and hue rotate filter applied.
Syntax highlighting isn't currently inverted and hue rotated in some contexts, such as on the documentation page for {{CodeBlock}}. ―Pee (talk) 18:27, 19 June 2024 (PDT)
Difference table
When I was working on my extension, I tried fixing the diff table (the one that appears when you click on the “Show changes” button when editing or the one when you compare versions of a page).
I don’t pretend that this will be added, but I would like to write this code here in case someone needs it.