<div class="newd"><dropdown>
<div class="newd"><dropdown>
<input id="toggle2" type="checkbox">
<label for="toggle2" style="padding:10px 0px 10px 0px;font-weight:bold;"class="animate">MENU</label>
<ul class="animate">
<li class="animate"><div class="idea"></div></li>
<li class="animate"><div class="print"></div></li>
<li class="animate"><div class="video"></div></li>
<li class="animate"><div class="foto"></div></li>
</ul>
</dropdown>
</div>
body{
body{
background:url(http://maracujaminds.de/images/mm.jpg);
}
.newd {
margin:20px auto;
width:800px;
height:800px;}
*{
padding: 0;
margin: 0;
font-family: 'Lato', sans-serif;
box-sizing: border-box;
}
.idea {
background:url(http://maracujaminds.de/images/yell_02.jpg);
background-position:0px;
width:55px;
height:50px;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
}
.idea:hover {
background-position:-55px;
width:55px;
height:50px;
}
.print {
background:url(http://maracujaminds.de/images/yell_03.jpg);
background-position:0px;
width:55px;
height:50px;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
}
.print:hover {
background-position:-55px;
width:55px;
height:50px;
}
.video{
background:url(http://maracujaminds.de/images/yell_04.jpg);
background-position:0px;
width:55px;
height:50px;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
}
.video:hover {
background-position:-55px;
width:55px;
height:50px;
}
.foto {
background:url(http://maracujaminds.de/images/yell_05.jpg);
background-position:0px;
width:55px;
height:50px;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
transition: all .4s ease;
}
.foto:hover {
background-position:-55px;
width:55px;
height:50px;
}
.float-right{
float: right;
}
.fa{
font-size: .8em;
line-height: 0px !important;
}
dropdown{
display: inline-block;
margin: 0px;
float:right;
}
dropdown label, dropdown ul li{
display: block;
background: #ffae00;
padding: 0px;
color:white;
text-align:center;
}
dropdown label:hover, dropdown ul li:hover{
background: #ffae00;
color: white;
cursor: pointer;
}
dropdown label{
color: #fff;
border-left: 4px solid #ffae00;
border-radius: 0px;
position: relative;
z-index: 2;
}
dropdown input{
display: none;
}
dropdown input ~ ul{
position: relative;
visibility: hidden;
opacity: 0;
top: -20px;
z-index: 1;
}
dropdown input:checked + label{
background: #ffae00;
color: white;
}
dropdown input:checked ~ ul{
visibility: visible;
opacity: 1;
top: 0;
}
$colors:
@for $i from 1 through length($colors) {
dropdown ul li:nth-child(#{$i}) {
border-left: 4px solid nth($colors, $i);
.fa{
color: nth($colors, $i);
}
&:hover {
background: nth($colors, $i);
color: white;
.fa{
color: white;
}
}
}
}
.animate{
transition: all .3s;
transition: all .3s;
transition: all .3s;
transition: all .3s;
transition: all .3s;
backface-visibility:hidden;
backface-visibility:hidden;
backface-visibility:hidden;
backface-visibility:hidden;
}