Created
September 5, 2012 19:02
-
-
Save dziudek/3642653 to your computer and use it in GitHub Desktop.
Responsive devices :)
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
/** | |
* Responsive devices :) | |
*/ | |
#responsive { | |
background: #fff; | |
border: 5px solid #333; | |
border-bottom: 17px solid #333; | |
border-radius: 5px; | |
border-top: 10px solid #333; | |
height: 90px; | |
margin: 20px auto; | |
position: relative; | |
width: 60px; | |
transition: all 0.3s linear; | |
} | |
#responsive::after { | |
background: #fff; | |
border-radius: 50%; | |
content: ""; | |
height: 9px; | |
left: 50%; | |
margin: 4px 0 0 -4px; | |
position: absolute; | |
top: 100%; | |
width: 9px; | |
} | |
#responsive.tablet { | |
border: 10px solid #333; | |
border-bottom: 34px solid #333; | |
border-radius: 10px; | |
border-top: 20px solid #333; | |
height: 200px; | |
width: 160px; | |
} | |
#responsive.tablet::after { | |
height: 18px; | |
left: 50%; | |
margin: 8px 0 0 -9px; | |
width: 18px; | |
} | |
#responsive.desktop { | |
border: 10px solid #333; | |
border-bottom: 12px solid #333; | |
border-radius: 10px; | |
border-top: 12px solid #333; | |
height: 140px; | |
width: 240px; | |
} | |
#responsive.desktop::after { | |
background: #333; | |
border-radius: 0; | |
border-left: 50px solid #fff; | |
border-right: 50px solid #fff; | |
border-bottom: 10px solid #333; | |
height: 30px; | |
left: 50%; | |
margin: 12px 0 0 -65px; | |
width: 30px; | |
} |
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 id="responsive" class="desktop tablet"></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":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment