Created
August 22, 2012 06:20
-
-
Save sahilpopli/3422855 to your computer and use it in GitHub Desktop.
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
| /*------------------------------------*\ | |
| RESET | |
| \*------------------------------------*/ | |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0b1 | 201101 | |
| NOTE:WORK IN PROGRESS | |
| USE WITH CAUTION AND TEST WITH ABANDON */ | |
| html,body,div,span,applet,object,iframe, | |
| h1,h2,h3,h4,h5,h6,p,blockquote,pre, | |
| a,abbr,acronym,address,big,cite,code, | |
| del,dfn,em,img,ins,kbd,q,s,samp, | |
| small,strike,strong,sub,sup,tt,var, | |
| b,u,i,center, | |
| dl,dt,dd,ol,ul,li, | |
| fieldset,form,label,legend, | |
| table,caption,tbody,tfoot,thead,tr,th,td, | |
| article,aside,canvas,details,figcaption,figure, | |
| footer,header,hgroup,menu,nav,section,summary, | |
| time,mark,audio,video{ | |
| margin:0; | |
| padding:0; | |
| border:0; | |
| outline:0; | |
| font-size:100%; | |
| font:inherit; | |
| vertical-align:baseline; | |
| } | |
| /* HTML5 display-role reset for older browsers */ | |
| article,aside,details,figcaption,figure, | |
| footer,header,hgroup,menu,nav,section{ | |
| display:block; | |
| } | |
| body{ | |
| line-height:1; | |
| } | |
| ol,ul{ | |
| list-style:none; | |
| } | |
| blockquote,q{ | |
| quotes:none; | |
| } | |
| blockquote:before,blockquote:after, | |
| q:before,q:after{ | |
| content:''; | |
| content:none; | |
| } | |
| /* remember to define visible focus styles! | |
| :focus{ | |
| outline:?????; | |
| } */ | |
| /* remember to highlight inserts somehow! */ | |
| ins{ | |
| text-decoration:none; | |
| } | |
| del{ | |
| text-decoration:line-through; | |
| } | |
| table{ | |
| border-collapse:collapse; | |
| border-spacing:0; | |
| } | |
| /*------------------------------------*\ | |
| MAIN | |
| \*------------------------------------*/ | |
| /* GO! */ | |
| body { | |
| font: 14px/20px Arial; | |
| background: #ccc; | |
| padding: 50px; | |
| width: 600px; | |
| margin: 0 auto; | |
| min-height: 1200px; | |
| } | |
| h1,h2,h3,h4,h5,h6 { | |
| font-size: 16px; | |
| font-weight: bold; | |
| margin: 80px 0 5px; | |
| } | |
| p { | |
| margin-bottom: 15px; | |
| } | |
| a { | |
| color: #333; | |
| } | |
| .mobile-note { | |
| text-align: center; | |
| top: 0; | |
| left: 0; | |
| background: #ddd; | |
| margin: 0 5%; | |
| width: 80%; | |
| padding: 3% 5%; | |
| position: fixed; | |
| display: none; | |
| opacity: 0.7; | |
| border-bottom-left-radius: 10px; | |
| border-bottom-right-radius: 10px; | |
| box-shadow: 1px 1px 3px #bbb; | |
| -webkit-transition: opacity .2s ease-in-out; | |
| -moz-transition: opacity .2s ease-in-out; | |
| } | |
| .mobile-note:hover { | |
| opacity: 1; | |
| } | |
| @-webkit-keyframes hide { | |
| 0% { opacity: 0; margin-top: 10%; border-radius: 10px; } | |
| 10% { opacity: 1; } | |
| 60% { opacity: 1; margin-top: 10%; border-radius: 10px; } | |
| 100% { opacity: 0.7; margin-top: 0; } | |
| } | |
| @-moz-keyframes hide { | |
| 0% { opacity: 0; margin-top: 10%; border-radius: 10px; } | |
| 10% { opacity: 1; } | |
| 60% { opacity: 1; margin-top: 10%; border-radius: 10px; } | |
| 100% { opacity: 0.7; margin-top: 0; } | |
| } | |
| h1:after { | |
| content: " - Resize to below 900px"; | |
| } | |
| @media only screen and (max-width: 900px) { | |
| .mobile-note { | |
| display: block; | |
| -webkit-animation-name: hide; | |
| -webkit-animation-duration: 2s; | |
| -moz-animation-name: hide; | |
| -moz-animation-duration: 2s; | |
| } | |
| h1:after { | |
| content: ""; | |
| } | |
| } |
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 id="home"> | |
| <h1>Version Alert</h1> | |
| <p>If you have a mobile version of your site and it isn't responsive/adaptive you may want to provide a note to the users if that version is more appropriate.</p> | |
| <p>I don't know who this would be useful to but I figured I'd put it up anyway.</p> | |
| <p class="mobile-note">Hey! We also have a <a href="#">mobile version</a></p> | |
| </body> |
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-vertical","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