這裏我沒有看到任何複雜的東西。
編輯:我站好了。我是一隻愚蠢的鵝。
無論如何,這是似乎涉及的CSS:
@media all and (max-width: 1200px) {
.main-nav .assistive-text { display: none; }
.main-nav-wrap {
margin: 0px auto;
position: relative;
text-align: center;
width: 50px;
height: 40px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #fff;
border-bottom: none;
}
.main-nav-wrap .menu-toggle {
display: block;
cursor: pointer;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
padding: 5px;
-moz-transition: all .1s linear;
-webkit-transition: all .1s linear;
transition: all .1s linear;
margin: 0;
text-transform: uppercase;
line-height: 0px;
font-size: 0;
}
.main-nav-wrap .menu-toggle::after {
color: #000;
content: "\f0c9";
font-family: "FontAwesome";
font-size: 30px;
line-height: normal;
}
.main-nav-wrap .nav-menu-main {
display: none;
width: 300px;
position: absolute;
border: 1px solid #dddcda;
top: 38px;
left: -1px;
z-index: -1;
}
.main-nav-wrap.hover .nav-menu-main { display: block; }
.main-nav-wrap.hover {
border: 1px solid #dddcda;
border-bottom: none;
background: #fff;
}
.nav-menu-main > ul { background: #fff; }
.nav-menu-main > ul > li {
float: none;
padding: 0;
margin: 0;
}
.nav-menu-main > ul > li:hover { background: none; }
.nav-menu-main > ul > li > a {
font-family: arial;
font-weight: bold;
color: #333;
padding: 5px 15px;
text-shadow: none;
text-align: left;
}
.nav-menu-main > ul > li > a:hover {
background: #eee;
color: #000;
}
.nav-menu-main > ul > li > a:before {bottom: 0;}
.nav-menu-main ul li a {border-bottom: 1px solid #dddcda !important;}
.nav-menu-main > ul > li ul {
width: auto;
padding: 0px;
position: static;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
text-align: left;
}
.nav-menu-main > ul > li li {padding: 0px;}
.nav-menu-main > ul > li li a:hover {
background: #eee;
color: #000;
}
.nav-menu-main > ul > li li a:before {
content: "\f105";
font-family: "FontAwesome";
font-size: 16px;
line-height: normal;
padding-right: 5px;
}
.nav-menu-main > ul > li.current_page_item,
.nav-menu-main > ul > li.current_page_parent,
.nav-menu-main > ul > li.current_page_ancestor,
.nav-menu-main > ul > li.current-menu-item,
.nav-menu-main > ul > li.current-menu-parent,
.nav-menu-main > ul > li.current-menu-ancestor {
background: #f5f5f5;
}
.nav-menu-main > ul > li.current_page_item > a,.nav-menu-main > ul > li.current_page_parent > a,
.nav-menu-main > ul > li.current_page_ancestor > a,
.nav-menu-main > ul > li.current-menu-item > a,
.nav-menu-main > ul > li.current-menu-parent > a,
.nav-menu-main > ul > li.current-menu-ancestor > a {
color: #000;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.nav-menu-main > ul ul li.current_page_parent > a,
.nav-menu-main > ul ul li.current_page_ancestor > a,
.nav-menu-main > ul ul li.current-menu-parent > a,
.nav-menu-main > ul ul li.current-menu-ancestor > a {
color: #464646;
}
.nav-menu-main > ul ul li.current_page_parent > a:hover,
.nav-menu-main > ul ul li.current_page_ancestor > a:hover,
.nav-menu-main > ul ul li.current-menu-parent > a:hover,
.nav-menu-main > ul ul li.current-menu-ancestor > a:hover {
color: #000;
}
.nav-menu-main ul li.current_page_item > a,.nav-menu-main ul li.current-menu-item > a {
color: #636363;
}
.nav-menu-main ul.ait-megamenu > li.menu-item-has-children > a:after {
display: none;
}
.nav-menu-main ul.ait-megamenu > li > ul {
display: block;
overflow: visible;
opacity: 1;
height: 0;
}
.nav-menu-main ul.ait-megamenu > li:hover > ul {
-moz-transition: none;
-webkit-transition: none;
transition: none;
height: auto;
}
.nav-menu-main ul.ait-megamenu > li > ul li:not(.menu-item-column) > ul.sub-menu {
visibility: hidden;
opacity: 0;
}
.nav-menu-main ul.ait-megamenu > li > ul li:not(.menu-item-column):hover > ul.sub-menu {
visibility: visible;
opacity: 1;
-moz-transition: all 0.3s ease 0s;
-webkit-transition: all 0.3s ease 0s;
transition: all 0.3s ease 0s;
}
.nav-menu-main ul#menu-main-menu > li > ul li:not(.menu-item-column) > ul.sub-menu {
visibility: visible;
opacity: 1;
-moz-transition: all 0.5s ease 0s;
-webkit-transition: all 0.5s ease 0s;
transition: all 0.5s ease 0s;
}
.nav-menu-main ul.ait-megamenu > li > ul li:not(.menu-item-column) > ul.sub-menu {
visibility: visible;
opacity: 1;
-moz-transition: all 0.5s ease 0s;
-webkit-transition: all 0.5s ease 0s;
transition: all 0.5s ease 0s;
}
.main-nav-wrap .nav-menu-main { text-align: center; }
.menu-item-has-columns > ul > li > ul > li { display: block; }
.menu-item-ait-row > ul li,.menu-item-column-label { width: 290px !important; }
.menu-item-ait-row > ul > li > ul li:last-child a { border-bottom: 1px solid #dddcda !important;}
.nav-menu-main > ul > li.sub-menu-center-position > ul,.nav-menu-main > ul > li > ul {
border: 0 none;
left: auto !important;
margin-left: 0 !important;
}
.menu-container { z-index: 300;}
.main-nav-wrap .separator.first { display: none; }
.main-nav-wrap .separator.separator-1 { display: none; }
.main-nav-wrap .separator.separator-2 { display: none; }
.main-nav-wrap .separator.separator-3 { display: none; }
.main-nav-wrap .separator.separator-4 { display: none; }
.main-nav-wrap .separator.separator-5 { display: none; }
.main-nav-wrap .separator.separator-6 { display: none; }
.nav-menu-main > ul > li {
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.nav-menu-main ul.sub-menu {
border: 0 none;
height: auto !important;
}
}
你嘗試過使用'important'在您的自定義CSS? – threeFatCat
是的,我沒有,沒有骰子。 –