Created
October 2, 2011 07:52
-
-
Save pcraciunoiu/1257211 to your computer and use it in GitHub Desktop.
Stylish Mobile Frame
This file contains 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
/* Use the Stylish Firefox addon to get this working. Replace domain with your domain. */ | |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("localhost") { | |
body:before { | |
width: 320px; | |
height: 480px; | |
top: 0; | |
position: fixed; | |
left: -moz-calc(50% - 160px); | |
} | |
body { | |
width: 320px; | |
height: 480px; | |
position: relative; | |
left: -moz-calc(50% - 160px); | |
} | |
html:before, html:after { | |
content: ""; | |
display: block; | |
position: fixed; | |
height: 100%; | |
width: -moz-calc(50% - 160px); | |
background: black; | |
top: 0; | |
left: 0; | |
} | |
html:after { | |
right: 0; | |
left: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment