Skip to content
Snippets Groups Projects
Commit a288cb04 authored by LucasC's avatar LucasC Committed by Simon Urli
Browse files

XWIKI-14032: The long names of submenus are showing out of the menu box (not...

XWIKI-14032: The long names of submenus are showing out of the menu box (not wrapped) and the name of the submenus that use plain text and don't have other submenus don't have left margins (#3033)

* Added overflow wrap in words
* Added padding for all items
* Removed unused styles

(cherry picked from commit c17b9bd5)
parent 5bb87931
No related branches found
No related tags found
No related merge requests found
...@@ -812,19 +812,19 @@ ...@@ -812,19 +812,19 @@
margin-top: 0; margin-top: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
overflow-wrap: break-word;
hyphens: auto;
li { li {
/* Text inside menu */ /* Text inside menu */
color: @dropdown-link-color; color: @dropdown-link-color;
padding: 3px 20px;
/* Links inside menu */ /* Links inside menu */
a { a {
display: block; display: block;
padding: 3px 20px;
clear: both; clear: both;
font-weight: normal; font-weight: normal;
line-height: @line-height-base; line-height: @line-height-base;
color: @dropdown-link-color; color: @dropdown-link-color;
overflow: hidden;
text-overflow: ellipsis; // Displaying ... if the text is too long
&:hover, &:focus-within { &:hover, &:focus-within {
/* &:extend(.dropdown-menu>li>a:hover); */ /* &:extend(.dropdown-menu>li>a:hover); */
text-decoration: none; text-decoration: none;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment