nav ul {
display: block;
text-align: center;
}
nav li {
display: inline-block;
}
nav li a {
color: inherit;
padding: 15px 15px;
display: block;
font-family: 'Sanchez', serif;
}
#top-menu {
background-color: #fff;
background-image: url(//myblog.grotwebdesigner.hu/wp-content/themes/myblog_theme/images/border-horizontal.png);
background-size: auto 3px;
background-position: bottom center;
background-repeat: repeat-x;
}
@media only screen and (max-width: 550px) {
#top-menu ul,
#top-menu li,
#foot-menu ul,
#foot-menu li {
display: block;
width: 100%;
}
#top-menu li a,
#foot-menu li a {
padding: 5px 15px;
}
}
#main-menu {
background: url(//myblog.grotwebdesigner.hu/wp-content/themes/myblog_theme/images/brush-yellow.gif);
background-size: 100% 100%;
transition: all 0.3s ease-in-out;
} @media only screen and (min-width: 769px) {
#main-menu ul li {
position: relative;
}
#main-menu ul li ul {
position: absolute;
z-index: 2;
display: block;
text-align: left;
overflow: hidden;
opacity: 0;
top: 30px;
transition: all 0.3s ease-in-out;
}
#main-menu ul li ul li {
background: #ffd207;
display: block;
}
#main-menu ul li ul li a {
white-space: nowrap;
padding: 10px 15px;
}
#main-menu ul li:hover ul {
top: 40px;
opacity: 1;
}
#main-menu ul li ul:after {
content: "";
width: 100%;
height: 50px;
display: block;
background: url(//myblog.grotwebdesigner.hu/wp-content/themes/myblog_theme/images/paint-drop.gif) bottom left no-repeat;
background-size: auto 140%;
}
#main-menu ul {
display: block !important;
}
}
.menu-item-has-children {
position: relative;
}
.menu-item-has-children:after {
top: 50%;
margin-top: -3px;
right: 0;
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid #000;
}
@media only screen and (max-width: 768px) {
#hamburger {
display: block;
width: 100%;
height: 40px;
background: url(//myblog.grotwebdesigner.hu/wp-content/themes/myblog_theme/images/brush-yellow.gif);
background-size: 100% 100%;
position: relative;
vertical-align: middle;
text-align: center;
line-height: 40px;
cursor: pointer;
}
#hamburger:before {
content: "Menü";
display: inline-block;
vertical-align: middle;
text-transform: uppercase;
font-weight: bold;
}
#hamburger:after {
content: "";
width: 18px;
height: 16px;
display: inline-block;
vertical-align: middle;
margin-left: 10px;
border-top: double 6px #000;
border-bottom: double 6px #000;
transition: all 0.3s ease-in-out;
}
.hambi-open {
background-size: 100% 150% !important;
}
.hambi-open:after {
height: 0 !important;
border-top: solid 2px #000 !important;
border-bottom: solid 2px #000 !important;
}
.menu-item-has-children:after {
content: none; }
.open-sub {
display: block;
position: absolute;
width: 30px;
height: 30px;
top: 0;
right: 0;
cursor: pointer;
z-index: 5;
}
.open-sub:before {
top: 50%;
left: 50%;
margin-top: -3px;
margin-left: -4px;
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid #000;
}
.sub-open:before {
border-left: none !important;
border-right: none !important;
border-top: 2px solid #000 !important;
width: 15px;
right: 15px;
}
#main-menu {
background: none;
}
#main-menu ul,
#main-menu li {
display: block;
width: 100%;
background: #ffd207;
}
#main-menu li a {
background: #ffd207;
padding: 5px 15px;
}
#main-menu ul {
display: none;
}
#main-menu ul li ul {
display: none;
}
}