New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Correct css classes of mod_menu and the Cassiopeia template's css for menu at the "menu" module position #20702
Changes from 5 commits
42f040f
4201c30
033c9e1
eae0859
c138da2
3fdb0cd
3719e5b
e9844ff
753d485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ | |
$id = ' id="' . $tagId . '"'; | ||
} | ||
|
||
// The menu class is deprecated. Use nav instead | ||
// The menu class is deprecated. Use mod-menu instead | ||
?> | ||
<ul<?php echo $id; ?> class="nav flex-column <?php echo $class_sfx; ?>"> | ||
<ul<?php echo $id; ?> class="mod-menu nav<?php echo $class_sfx; ?>"> | ||
<?php foreach ($list as $i => &$item) | ||
{ | ||
$class = 'nav-item'; | ||
$class = 'mod-menu__item nav-item'; | ||
|
||
if ($item->id == $default_id) | ||
{ | ||
|
@@ -86,7 +86,7 @@ | |
// The next item is deeper. | ||
if ($item->deeper) | ||
{ | ||
echo '<ul class="list-unstyled small">'; | ||
echo '<ul class="mod-menu__list list-unstyled small">'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now I would remove |
||
} | ||
// The next item is shallower. | ||
elseif ($item->shallower) | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,7 @@ small, | |
dd { | ||
margin-bottom: 0; | ||
} | ||
|
||
.mod-menu.nav { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just |
||
flex-direction: column; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
} | ||
} | ||
|
||
.navbar-nav.flex-column { | ||
.mod-menu.nav { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, but then it needs at line 70 below a change of |
||
flex-direction: row !important; | ||
|
||
@include media-breakpoint-down(md) { | ||
|
@@ -67,7 +67,7 @@ | |
flex-grow: 0; | ||
} | ||
|
||
.navbar-nav li { | ||
.nav li { | ||
position: relative; | ||
display: inline-block; | ||
margin-right: 20px; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I would remove
mod-menu__item
. These items can be selected with simplymod-menu li