Commit f26740bd by halweg

fix : topmenu css优化

parent df43cebc
......@@ -146,7 +146,7 @@ class Topmenu extends JoshineMenu
if ($childLevel == 0) {
$html = "<div class=\"level{$childLevel} {$childrenWrapClass}\">";
$html .= "<div class=\"row\">
<ul class=\"subchildmenu col-sm-8 mega-columns columns4\">
<ul class=\"subchildmenu col-sm-8 mega-columns columns4 joshine-clearfix \">
{$this->_getHtml($child, $childrenWrapClass, $limit, $colStops)}
</ul>
<div class=\"menu-right-block col-sm-4\">".
......
......@@ -1279,18 +1279,12 @@ footer{
.navigation .subchildmenu.col-sm-8.mega-columns.columns4 li.level1:last-child{
border: none;
}
.navigation .subchildmenu.mega-columns.columns4 > li{
width: 25%;
}
.navigation .subchildmenu.col-sm-8.mega-columns.columns4 > li{
width: 18%;
}
.navigation .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1){
clear: both;
}
.navigation .menu-right-block.col-sm-4{
float: right;
width: 38%;
}
.navigation ul li.level0{
padding: 0 1px;
......@@ -1334,7 +1328,6 @@ footer{
color: #666666;
font-family: 'Outfit-Regular', sans-serif;
}
.navigation .subchildmenu.col-sm-9 li{
position: relative;
border: none;
......
......@@ -8,6 +8,15 @@
visibility: hidden;
}
.joshine-clearfix::after {
clear: both;
content: ' ';
display: block;
font-size: 0;
height: 0;
visibility: hidden;
}
.joshine-col-xs-1,
.joshine-col-xs-2,
.joshine-col-xs-3,
......@@ -221,4 +230,4 @@
.joshine-col-lg-12 {
width: 100%;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment