Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created September 5, 2012 19:02
Show Gist options
  • Save dziudek/3642653 to your computer and use it in GitHub Desktop.
Save dziudek/3642653 to your computer and use it in GitHub Desktop.
Responsive devices :)
/**
* 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;
}
<div id="responsive" class="desktop tablet"></div>
{"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