Skip to content

Instantly share code, notes, and snippets.

@armno
Created November 1, 2013 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armno/7261861 to your computer and use it in GitHub Desktop.
Save armno/7261861 to your computer and use it in GitHub Desktop.
my css for phonegap projects
/* apply a natural box layout model to all elements */
*, *:before, *:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* from http://devgeeks.github.io/presentation--none-of-the-above/#5 */
body {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-user-select: none;
user-select: none;
font-size: 100%;
padding: 0;
margin: 0;
background-color: #fff;
font-family: "Roboto", "HelveticaNeue", Helvetica, Arial, sans-serif;
}
a {
text-decoration: none;
color: royalblue;
}
.left {
float: left;
}
.right {
float: right;
}
.aligncenter {
text-align: center;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
.ir {
font: 0/0 a;
text-shadow: none;
color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment