Created
November 12, 2012 13:20
-
-
Save tyv/4059359 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul | |
{ | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
} | |
.popup | |
{ | |
position: absolute; | |
padding: 10px; | |
height: 100px; | |
overflow: hidden; | |
opacity: 0; | |
transition: opacity 0.2s ease-in 0.2s; | |
} | |
.popup:before | |
{ | |
content: ''; | |
position: absolute; | |
left: 0; | |
top: -3px; | |
height: 1px; | |
margin-left: -5px; | |
width: 120%; | |
z-index: 1; | |
box-shadow: 0 0 6px 1px rgba(0,0,0,1) | |
} | |
.popup-i | |
{ | |
position: relative; | |
width: 200px; | |
height: 100px; | |
top: -100px; | |
transition: top 0.2s ease-in 0.1s; | |
} | |
input:checked ~ .popup | |
{ | |
opacity: 1; | |
} | |
input:checked ~ .popup .popup-i | |
{ | |
top: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="dropdown"> | |
<input type="checkbox" id="id"> | |
<label for="id">тык</label> | |
<div class="popup"> | |
<div class="popup-i"> | |
<ul> | |
<li>dddd</li> | |
<li>dddd</li> | |
<li>dddd</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment