Bundled Themes: Twenty Nineteen long submenu item titles do not wrap.
Fixes the issue of long submenu item titles that do not wrap by adding a `max-width: 20rem;` and removing `white-space: nowrap;`. Props kjellr, mukesh27, mohsinrasool, samful. Fixes #45866. git-svn-id: https://develop.svn.wordpress.org/trunk@48032 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d32ec3352b
commit
55f0a18c02
@ -205,7 +205,7 @@
|
|||||||
line-height: $font__line-height-heading;
|
line-height: $font__line-height-heading;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
|
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
|
||||||
white-space: nowrap;
|
max-width: #{20 * $size__spacing-unit};
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@ -2958,7 +2958,7 @@ body.page .main-navigation {
|
|||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
|
padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
|
||||||
white-space: nowrap;
|
max-width: 20rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation .sub-menu > li > a:hover, .main-navigation .sub-menu > li > a:focus,
|
.main-navigation .sub-menu > li > a:hover, .main-navigation .sub-menu > li > a:focus,
|
||||||
|
Loading…
Reference in New Issue
Block a user