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:3940878
Created October 23, 2012 19:04
CSS: Only A Line Input
Only Line Input
@Ricardo-Diaz
Ricardo-Diaz / gist:3940870
Created October 23, 2012 19:03
CSS: Depth & Gradient Input Box
//Depth & Gradient Input
.depth {
display: block;
border: 1px solid silver;
background: linear-gradient(#eee, #fff);
transition: all 0.3s ease-out;
padding: 5px;
color: #555;
}
@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),
@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: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: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: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: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: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:3940757
Created October 23, 2012 18:50
CSS: Background Inline Link
Background Inline Link