Skip to content

Instantly share code, notes, and snippets.

@dryan1144
Last active December 23, 2015 11:29
Show Gist options
  • Save dryan1144/6629084 to your computer and use it in GitHub Desktop.
Save dryan1144/6629084 to your computer and use it in GitHub Desktop.
/*Resets and Defaults by healingartswebdesign.com*/
* {
box-sizing: border-box;
margin:0;
padding:0;
}
::selection {
background:#000;
color:#FFF;
text-shadow:none;
}
a {
transition: all 0.1s linear;
}
a:active {
transition: none;
}
input,
textarea,
.button {
transition: all 0.1s linear;
}
input[type="submit"],
.button {
display:inline-block;
zoom:1;
*display:inline;
-webkit-appearance:none;
}
input[type="submit"]:active,
.button:active {
transition: none;
}
/*Clearfix*/
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
/*Responsive Images*/
img {
max-width: 100%;
width: auto\9; /*IE 7 and 8*/
height: auto;
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
/*Responsive Forms*/
@media ( max-width:767px ) {
input,
textarea {
width:100%;
margin-bottom:5px;
float:none;
display:block;
}
input[type="checkbox"],
input[type="radio"] {
width:auto;
display:inline-block;
zoom:1;
*display:inline;
margin-right:5px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment