[html]
<nav id="navigation" class="mini-cart" role="navigation">
<ul class="menu">
<li class="menu-item"><a href="#">Shop</a>
<ul class="dropdown">
<div class="woocom-cart">
Shop Items Goes Here!
</div>
</li>
</ul>
</nav>
[/html]
[css]
.mini-cart {
display: block;
font-family: 'Titillium Web', sans-serif;
font-size: 16px;
font-weight: bold;
margin: 40px;
}
.mini-cart ul {
background: #3498DB;
list-style: none;
margin: 0;
padding-left: 0;
}
.mini-cart li {
color: #fff;
background: #3498DB;
display: block;
float: left;
margin: 0 2px 0 0;
padding: 25px 18px;
position: relative;
text-decoration: none;
text-transform: uppercase;
}
.mini-cart li a {
color: #fff;
text-decoration: none;
display: block;
}
.mini-cart li:hover {
@include transition(background, 0.2s);
background: #52a6df;
cursor: pointer;
}
.mini-cart ul li ul {
background: #52a6df;
visibility: hidden;
float: left;
min-width: 150px;
position: absolute;
transition: visibility 0.65s ease-in;
margin-top:25px;
left: 0;
opacity: 0;
z-index: 999;
}
.mini-cart ul li:hover > ul,
.mini-cart ul li ul:hover {
visibility: visible;
opacity: 1;
transition: opacity 0.5s ease-in-out;
-moz-transition: opacity 0.5s ease-in-out;
-webkit-transition: opacity 0.5s ease-in-out;
}
.woocom-cart{
width: 300px;
height: 200px;
padding: 18px;
}
[/css]
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.