MediaWiki talk:Common.css: Difference between revisions
(→Add support for dropdown menus: new section) |
|||
Line 85: | Line 85: | ||
[[User:Cvoxalury|Cvoxalury]] ([[User talk:Cvoxalury|talk]]) 04:08, 20 June 2024 (PDT) | [[User:Cvoxalury|Cvoxalury]] ([[User talk:Cvoxalury|talk]]) 04:08, 20 June 2024 (PDT) | ||
== Add support for dropdown menus == | |||
There are enough languages that some pages titles can be covered by the flags (such as [[SDK Docs]]). Replacing the menu with a dropdown would fix this. some CSS can be used to make a dropdown menu: | |||
<syntaxhighlight lang="css"> | |||
/* Dropdown menus */ | |||
.dropdown { | |||
position: relative; | |||
display: inline-block; | |||
} | |||
.dropbtn { | |||
background-color: #393939; | |||
align-items: center; | |||
padding: 4px; | |||
border: 1px solid #454545; | |||
border-radius: 3px; | |||
} | |||
.dropdown-content { | |||
display: none; | |||
padding: 4px; | |||
background-color: #393939; | |||
border: 1px solid #454545; | |||
border-radius: 3px; | |||
} | |||
/* Show the dropdown menu on hover */ | |||
.dropdown:hover .dropdown-content {display: block;} | |||
</syntaxhighlight> | |||
[https://vdc-pee.github.io/vdc-dropdown/ here] is an example of what it might look like. I'm not the best at CSS, so it might need some tweaking later. ―[[User:Pee|Pee]] ([[User talk:Pee|talk]]) 11:45, 25 June 2024 (PDT) |
Revision as of 11:45, 25 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.
--Max34 (talk) 23:43, 19 June 2024 (PDT)
Please keep light background for code/source boxes
With the 'dark theme' the text becomes unpleasantly sharper and is harder to follow. The previous version was quite fine.
I mean things like
things like "" this ""
Cvoxalury (talk) 04:08, 20 June 2024 (PDT)
There are enough languages that some pages titles can be covered by the flags (such as SDK Docs). Replacing the menu with a dropdown would fix this. some CSS can be used to make a dropdown menu:
/* Dropdown menus */
.dropdown {
position: relative;
display: inline-block;
}
.dropbtn {
background-color: #393939;
align-items: center;
padding: 4px;
border: 1px solid #454545;
border-radius: 3px;
}
.dropdown-content {
display: none;
padding: 4px;
background-color: #393939;
border: 1px solid #454545;
border-radius: 3px;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}
here is an example of what it might look like. I'm not the best at CSS, so it might need some tweaking later. ―Pee (talk) 11:45, 25 June 2024 (PDT)