Created
July 13, 2012 11:54
-
-
Save samarkandiy/3104523 to your computer and use it in GitHub Desktop.
A web page created at CodePen.io
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PURE CSS iMac · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Azik Samarkandiy, http://codepen.io/html5web | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: | |
The above copyright notice and this permission notice shall be | |
included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | |
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | |
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
--> | |
<style> | |
body{ | |
background: #222; | |
width: 600px; | |
margin: 0 auto; | |
} | |
.cont{ | |
width: 600px; | |
margin: -120px 0 0 0; | |
-webkit-transform: scale(0.6); | |
} | |
.macdisplay{ | |
background: #444; | |
width: 470px; | |
height: 270px; | |
border: solid 20px #000; | |
border-radius: 10px 10px 0 0; | |
margin: 94px 0 0 40px; | |
z-index: 1; | |
} | |
.macdisplay:before{ | |
background: -webkit-linear-gradient(top left, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%); | |
content: ""; | |
width:500px; | |
height: 310px; | |
border-radius:10px 10px 0 0; | |
margin: -20px 0 0 -10px; | |
position: absolute; | |
} | |
.macdisplay:after{ | |
background: #dddddd; /* Old browsers */ | |
background: -moz-linear-gradient(left, #dddddd 0%, #cccccc 24%, #eeeeee 46%, #dddddd 69%, #cccccc 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#dddddd), color-stop(24%,#cccccc), color-stop(46%,#eeeeee), color-stop(69%,#dddddd), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* IE10+ */ | |
background: linear-gradient(to right, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* W3C */ | |
content: ""; | |
width: 510px; | |
height: 40px; | |
position: absolute; | |
margin: 290px 0 0 -20px; | |
border-radius: 0 0 10px 10px; | |
z-index: 3; | |
box-shadow: 0 1px 2px #444; | |
} | |
.camera{ | |
background: #222; | |
width: 2px; | |
height: 2px; | |
position: absolute; | |
margin: -300px 0 0 293px; | |
border-radius: 3px; | |
box-shadow: 0 0 1px #fff; | |
} | |
.applelogo{ | |
background: url(http://iweb.uz/wp-content/uploads/2012/07/apple.png); | |
width: 24px; | |
height: 24px; | |
/*border-radius: 46% 46% 41% 41% / 42% 42% 85% 85%; */ | |
position: absolute; | |
margin: 5px 0px 0px 294px; | |
z-index: 3; | |
} | |
.foot{ | |
background: #bcbcbc; /* Old browsers */ | |
background: -moz-linear-gradient(top, #bcbcbc 0%, #eaeaea 22%, #dddddd 40%, #959595 50%, #a0a0a0 62%, #cccccc 70%, #cccccc 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bcbcbc), color-stop(22%,#eaeaea), color-stop(40%,#dddddd), color-stop(50%,#959595), color-stop(62%,#a0a0a0), color-stop(70%,#cccccc), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* W3C */ | |
width: 170px; | |
height: 60px; | |
position: absolute; | |
margin: 40px 0 0 220px; | |
border-radius: 0 0 4px 4px; | |
} | |
.foot:before{ | |
background: #222; | |
content: ""; | |
width: 60px; | |
height: 62px; | |
position: absolute; | |
margin: 0 0 0 -35px; | |
border-radius: 0 0 50px 0; | |
} | |
.foot:after{ | |
background: #222; | |
content: ""; | |
width: 60px; | |
height: 62px; | |
position: absolute; | |
margin: 0 0 0 145px; | |
border-radius: 0 0 0 50px; | |
} | |
iframe{ | |
width: 468px; | |
height: 268px; | |
position: absolute; | |
margin: -289px 0 0 61px; | |
overflow: hidden; | |
border: 0; | |
z-index: 5; | |
} | |
</style> | |
<style> | |
#codepen-footer, #codepen-footer * { | |
-webkit-box-sizing: border-box !important; | |
-moz-box-sizing: border-box !important; | |
box-sizing: border-box !important; | |
} | |
#codepen-footer { | |
display: block !important; | |
position: fixed !important; | |
bottom: 0 !important; | |
left: 0 !important; | |
width: 100% !important; | |
padding: 0 10px !important; | |
margin: 0 !important; | |
height: 30px !important; | |
line-height: 30px !important; | |
font-size: 12px !important; | |
color: #eeeeee !important; | |
background-color: #505050 !important; | |
text-align: left !important; | |
background: -webkit-linear-gradient(top, #505050, #383838) !important; | |
background: -moz-linear-gradient(top, #505050, #383838) !important; | |
background: -ms-linear-gradient(top, #505050, #383838) !important; | |
background: -o-linear-gradient(top, #505050, #383838) !important; | |
border-top: 1px solid black !important; | |
border-bottom: 1px solid black !important; | |
border-radius: 0 !important; | |
border-image: none !important; | |
box-shadow: inset 0 1px 0 #6e6e6e, 0 2px 2px rgba(0, 0, 0, 0.4) !important; | |
z-index: 300 !important; | |
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif !important; | |
letter-spacing: 0 !important; | |
word-spacing: 0 !important; | |
} | |
#codepen-footer a { | |
color: #a7a7a7 !important; | |
text-decoration: none !important; | |
} | |
#codepen-footer a:hover { | |
color: white !important; | |
} | |
</style> | |
<script> | |
// Kill alerts, confirmations and prompts | |
window.alert = function(){}; | |
window.confirm = function(){}; | |
window.prompt = function(){}; | |
window.open = function(){}; | |
window.print = function(){}; | |
</script> | |
</head> | |
<body> | |
<div class="cont"> | |
<div class="macdisplay"></div> | |
<iframe scrolling="no" src="http://iweb.uz"></iframe> | |
<div class="camera"></div> | |
<div class="applelogo"></div> | |
<div class="foot"></div> | |
</div> | |
<script> | |
(function() { | |
/* created by Azik Samarkandiy version 1.0 */ | |
})(); | |
</script> | |
<div id="codepen-footer"> | |
<a style="color: #f73535 !important;" href="https://codepen.wufoo.com/forms/m7x3r3/def/field14=" onclick="window.open(this.href, null, 'height=517, width=680, toolbar=0, location=0, status=1, scrollbars=1, resizable=1'); return false">Report Abuse</a> | |
| |
<a href="/html5web/pen/imac/6">Edit this Pen</a> | |
</div> | |
</body> | |
</html> |
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
/* created by Azik Samarkandiy version 1.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="cont" | |
div class="macdisplay" | |
iframe src="http://iweb.uz" scrolling="no" | |
div class="camera" | |
div class="applelogo" | |
div class="foot" |
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
body{ | |
background: #222; | |
width: 600px; | |
margin: 0 auto; | |
} | |
.cont{ | |
width: 600px; | |
margin: -120px 0 0 0; | |
-webkit-transform: scale(0.6); | |
} | |
.macdisplay{ | |
background: #444; | |
width: 470px; | |
height: 270px; | |
border: solid 20px #000; | |
border-radius: 10px 10px 0 0; | |
margin: 94px 0 0 40px; | |
z-index: 1; | |
} | |
.macdisplay:before{ | |
background: -webkit-linear-gradient(top left, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%); | |
content: ""; | |
width:500px; | |
height: 310px; | |
border-radius:10px 10px 0 0; | |
margin: -20px 0 0 -10px; | |
position: absolute; | |
} | |
.macdisplay:after{ | |
background: #dddddd; /* Old browsers */ | |
background: -moz-linear-gradient(left, #dddddd 0%, #cccccc 24%, #eeeeee 46%, #dddddd 69%, #cccccc 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#dddddd), color-stop(24%,#cccccc), color-stop(46%,#eeeeee), color-stop(69%,#dddddd), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(left, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* IE10+ */ | |
background: linear-gradient(to right, #dddddd 0%,#cccccc 24%,#eeeeee 46%,#dddddd 69%,#cccccc 100%); /* W3C */ | |
content: ""; | |
width: 510px; | |
height: 40px; | |
position: absolute; | |
margin: 290px 0 0 -20px; | |
border-radius: 0 0 10px 10px; | |
z-index: 3; | |
box-shadow: 0 1px 2px #444; | |
} | |
.camera{ | |
background: #222; | |
width: 2px; | |
height: 2px; | |
position: absolute; | |
margin: -300px 0 0 293px; | |
border-radius: 3px; | |
box-shadow: 0 0 1px #fff; | |
} | |
.applelogo{ | |
background: url(http://iweb.uz/wp-content/uploads/2012/07/apple.png); | |
width: 24px; | |
height: 24px; | |
/*border-radius: 46% 46% 41% 41% / 42% 42% 85% 85%; */ | |
position: absolute; | |
margin: 5px 0px 0px 294px; | |
z-index: 3; | |
} | |
.foot{ | |
background: #bcbcbc; /* Old browsers */ | |
background: -moz-linear-gradient(top, #bcbcbc 0%, #eaeaea 22%, #dddddd 40%, #959595 50%, #a0a0a0 62%, #cccccc 70%, #cccccc 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bcbcbc), color-stop(22%,#eaeaea), color-stop(40%,#dddddd), color-stop(50%,#959595), color-stop(62%,#a0a0a0), color-stop(70%,#cccccc), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, #bcbcbc 0%,#eaeaea 22%,#dddddd 40%,#959595 50%,#a0a0a0 62%,#cccccc 70%,#cccccc 100%); /* W3C */ | |
width: 170px; | |
height: 60px; | |
position: absolute; | |
margin: 40px 0 0 220px; | |
border-radius: 0 0 4px 4px; | |
} | |
.foot:before{ | |
background: #222; | |
content: ""; | |
width: 60px; | |
height: 62px; | |
position: absolute; | |
margin: 0 0 0 -35px; | |
border-radius: 0 0 50px 0; | |
} | |
.foot:after{ | |
background: #222; | |
content: ""; | |
width: 60px; | |
height: 62px; | |
position: absolute; | |
margin: 0 0 0 145px; | |
border-radius: 0 0 0 50px; | |
} | |
iframe{ | |
width: 468px; | |
height: 268px; | |
position: absolute; | |
margin: -289px 0 0 61px; | |
overflow: hidden; | |
border: 0; | |
z-index: 5; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PURE CSS iMac