Skip to content

Instantly share code, notes, and snippets.

@oliwa
Created February 24, 2014 11:28
Show Gist options
  • Save oliwa/4b214ab37fd1b94ab0bf to your computer and use it in GitHub Desktop.
Save oliwa/4b214ab37fd1b94ab0bf to your computer and use it in GitHub Desktop.
Collection of basic CSS3 Snipptes
.box-sizing {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.border-radius {
padding: 10px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.multiple-border-radius {
padding: 10px;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 15px;
-webkit-border-bottom-right-radius: 50px;
-webkit-border-bottom-left-radius: 30px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 15px;
-moz-border-radius-bottomright: 50px;
-moz-border-radius-bottomleft: 30px;
border-top-left-radius: 10px;
border-top-right-radius: 15px;
border-bottom-right-radius: 50px;
border-bottom-left-radius: 30px;
}
.box-shadow-all-sides {
-webkit-box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, .2);
-moz-box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, .2);
box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, .2);
}
.box-shadow-right-bottom-sides {
-webkit-box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, .2);
-moz-box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, .2);
box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, .2);
}
.opacity {
filter: alpha(opacity=30); /* internet explorer */
-khtml-opacity: 0.3; /* khtml, old safari */
-moz-opacity: 0.3; /* mozilla, netscape */
opacity: 0.3; /* fx, safari, opera */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment