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:4015272
Created November 5, 2012 04:10
CSS: Box Shadow Curved top and bottom
effect and adds shadow to the top of the box and the bottom. Looks like center is lifted.
The HTML
<div class="box effect7">
<h3>Effect 7</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015264
Created November 5, 2012 04:08
CSS: Box Shadow Effect Curved Bottom
This effect will create a curved shadow at the bottom of the box.
The HTML
<div class="box effect6">
<h3>Effect 6</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015263
Created November 5, 2012 04:07
CSS: Box Shadow Both Lifted Corner Extreme
This is expands on the effect 2 and will increase the angle of the shadows.
The HTML
<div class="box effect5">
<h3>Effect 5</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015261
Created November 5, 2012 04:07
CSS: Box Shadow Right Lifted Corner
Effect 4 will lift the corner on the bottom right of the box.
The HTML
<div class="box effect4">
<h3>Effect 4</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015260
Created November 5, 2012 04:06
CSS: Box Shadow Lifted Left Corner
This uses half of the effect approve and will add a lifted corner to the bottom left of the box.
The HTML
<div class="box effect3">
<h3>Effect 3</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015258
Created November 5, 2012 04:05
CSS: Box Shadow Lifted Corners
This effect will add shadows to the bottom corners of the boxes to create a lifted corner look on the boxes. This effect uses both the :before and :after properties to create new elements used for the corners.
The HTML
<div class="box effect2">
<h3>Effect 2</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4015255
Created November 5, 2012 04:04
CSS: Box Shadow Underneath
//Creates a box shadow effect underneath
The HTML
<div class="box effect1">
<h3>Effect 1</h3>
</div>
The CSS
.box h3{
@Ricardo-Diaz
Ricardo-Diaz / gist:4004991
Created November 2, 2012 23:23
CSS: 3D Button Effect
//3D Button Effect
$bottomSide: #3852b1;
$rightSide: #203891;
.button, #rcp_submit {
border: 0; // kill default styling
background: #4e68c7;
box-shadow:
// right side // bottom
@Ricardo-Diaz
Ricardo-Diaz / gist:4004909
Created November 2, 2012 23:09
HTML: Search Box w/Multi options
// Search Form HTML
<section class="search">
<!--Creates a box that expands-->
<div class="open-search">
<span data-icon""></span>
</div>
<!-- search box with options to search different options -->
<div class="close-search">
@Ricardo-Diaz
Ricardo-Diaz / gist:3978174
Created October 30, 2012 03:42
CSS: Flexible Images
//Flex Images
figure img {
max-width: 100%;
height: auto !important;
}