Skip to content

Instantly share code, notes, and snippets.

View Ricardo-Diaz's full-sized avatar

Ricardo Diaz Ricardo-Diaz

View GitHub Profile
@Ricardo-Diaz
Ricardo-Diaz / gist:3940721
Created October 23, 2012 18:45
CSS: Gradients
Gradients
/* Light Gradient */
.gradient-light-linear {
background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
}
/* Dark Gradient */
.gradient-dark-linear {
background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,0));
@Ricardo-Diaz
Ricardo-Diaz / gist:3940724
Created October 23, 2012 18:46
CSS: Rounded Borders
Rounded Borders
.light-rounded {
border-radius: 3px;
}
.heavy-rounded {
border-radius: 8px;
}
@Ricardo-Diaz
Ricardo-Diaz / gist:3940757
Created October 23, 2012 18:50
CSS: Background Inline Link
Background Inline Link
@Ricardo-Diaz
Ricardo-Diaz / gist:3940768
Created October 23, 2012 18:51
CSS: Underline Inline Link Effect
//Underlined Inline Link
//This is some dummy text to show an inline link.
//Link will have dashes that transform into dotted over hover.
.inline-link-2 {
display: inline-block;
border-bottom: 1px dashed rgba(0,0,0,0.4);
@Ricardo-Diaz
Ricardo-Diaz / gist:3940784
Created October 23, 2012 18:53
CSS: Triangle Inline Link
//Triangle Inline Link
//This is some dummy text to show an inline link.
//Link will have a triangle next to it that changes upon hover
.inline-link-3 {
display: inline-block;
position: relative;
@Ricardo-Diaz
Ricardo-Diaz / gist:3940800
Created October 23, 2012 18:55
CSS: Metro Style buttons
//Metro Styles
//Boxes will have a 3d effet that looks like windows metro. There is a 3d version and plain button.
.metro {
display: inline-block;
padding: 10px;
margin: 10px;
background: #08C;
@Ricardo-Diaz
Ricardo-Diaz / gist:3940811
Created October 23, 2012 18:56
CSS: Bordered Link
//Bordered Link
//Link surround by a border box. nothing in the inside just the border.
.bordered-link {
display: inline-block;
padding: 8px;
border: 3px solid #FCB326;
@Ricardo-Diaz
Ricardo-Diaz / gist:3940845
Created October 23, 2012 19:00
CSS: Modern Buttons with Shadow, emboss, and Inset
Button Styles
//Modern-shadow around it
.modern {
display: inline-block;
margin: 10px;
padding: 8px 15px;
@Ricardo-Diaz
Ricardo-Diaz / gist:3940855
Created October 23, 2012 19:01
CSS: Simple Input with border that fades when active
//Simple Input with border that fades when active.
.simple-input {
display: block;
padding: 5px;
border: 4px solid #F1B720;
border-radius: 5px;
color: #333;
transition: all 0.3s ease-out;
}
@Ricardo-Diaz
Ricardo-Diaz / gist:3940862
Created October 23, 2012 19:02
CSS: Mac Input Search Box
//Mac Input
.mac {
display: block;
border: none;
border-radius: 20px;
padding: 5px 8px;
color: #333;
box-shadow:
inset 0 2px 0 rgba(0,0,0,.2),