/*
 * Sexy Buttons
 * 
 * DESCRIPTION	
 * 	Sexy, skinnable HTML/CSS buttons with icons.
 * 
 * PROJECT URL: 
 * 	http://code.google.com/p/sbuttons/
 * 
 * AUTHOR:
 * 	Richard Davies
 * 	http://www.richarddavies.us
 * 	Richard@richarddavies.us
 * 
 * VERSION:
 * 	1.0
 * 
 * LICENSE:
 * 	Apache License 2.0  (http://www.apache.org/licenses/LICENSE-2.0)
 * 	Creative Commons 3.0 Attribution  (http://creativecommons.org/licenses/by/3.0/)
 * 
 * CREDITS
 * 	Inspired by, derived from, and thanks to:
 * 	http://www.p51labs.com/simply-buttons-v2/
 * 	http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
 * 	http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
 * 	http://www.elctech.com/snippets/make-your-buttons-look-super-awesome
 * 
 * USAGE:
 * 	Simply add class="sbutton [skin]" to a <button> or <a> element and wrap the label text with double <span>s.
 * 	You can optionally add a "silk" icon to the button text by using a third <span> with class to identify the icon.   
 * 
 * EXAMPLE: 
 * 	<button id="btn1" class="sbutton" name="btn1" type="submit" value="Submit">
 * 		<span><span><span class="ok">Submit</span></span></span>
 * 	</button>
 */


/* 
 *	Generic styles for all Sexy Buttons
 */

.sbutton {
	display: inline-block;
	margin: 0;
	padding: 0;
	font: bold 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
	text-decoration: none;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.20);
	background: none;
	border: none;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	-moz-user-select: none;
	
	/* Fix extra width padding in IE */
	_width: 0;
	overflow: visible;
}

.sbutton span {
	display: block;						/* Prevents :active from working in IE--oh well! */
	height: 24px;
	padding-right: 12px;
	background-repeat: no-repeat;
	background-position: right top;
}

.sbutton span span {
	padding-right: 0;
	padding-left: 12px;
	line-height: 24px;
	background-position: left top;
}

.sbutton span span span {
	padding-left: 21px;
	background-image: none;
	background-repeat: no-repeat;
	background-position: left center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _background-image: none;		Or just hide icons from the undeserving IE6 */
	/* _padding-left: 0;					Or just hide icons from the undeserving IE6 */
}

.sbutton span span span.after {
	padding-left: 0px;
	padding-right: 21px;
	background-position: right center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-right: 0;					Or just hide icons from the undeserving IE6 */
}

.sbutton:hover span {
	background-position: right center;
}

.sbutton:hover span span {
	background-position: left center;
}

.sbutton:active span {
	background-position: right bottom;
}

.sbutton:active span span {
	background-position: left bottom;
}

.sbutton:active span span span {
	background-position: left center;
}

.sbutton:active span span span.after {
	background-position: right center;
}

.sbutton img {
	margin-right: 5px;
	vertical-align: text-top;
	/* IE6 Hack */
	_margin-top: 4px;
	_vertical-align: text-bottom;
	/* IE6 still requires a PNG transparency fix */ 
	/* _display: none;		Or just hide icons from the undeserving IE6 */
}

.sbutton img.after {
	margin-right: 0;
	margin-left: 5px;
	/* IE6 still requires a PNG transparency fix */ 
	/* _margin-left: 0;		Or just hide icons from the undeserving IE6 */
}

.sbutton.sexymedium	{ font-size: 15px; }
.sbutton.sexylarge	{ font-size: 18px; }


/*
 * Button Skins
 * 
 * Additional skins can be added below. The images/skins/ButtonTemplate.psd can be used to create new skins.
 * Prefix the skin name with "sexy" to avoid any potential conflicts with other class names. 
 */

/* Silver Button Skin (the default skin) */

.sbutton,
.sbutton.sexysilver {
	color: #666;
}
	
.sbutton:hover,
.sbutton.sexysilver:hover {
	color: #333;
}
	
.sbutton span,
.sbutton.sexysilver span {
	background-image: url(images/skins/silver/button_right.gif);
}

.sbutton span span,
.sbutton.sexysilver span span {
	background-image: url(images/skins/silver/button_left.gif);
}

/* Orange Button Skin */

.sbutton.sexyorange,
.sbutton.sexyorange:hover {
	color: white;
}
	
.sbutton.sexyorange span {
	background-image: url(images/skins/orange/button_right.gif);
}

.sbutton.sexyorange span span {
	background-image: url(images/skins/orange/button_left.gif);
}

/* Yellow Button Skin */

.sbutton.sexyyellow,
.sbutton.sexyyellow:hover {
	color: #994800;
}
	
.sbutton.sexyyellow span {
	background-image: url(images/skins/yellow/button_right.gif);
}

.sbutton.sexyyellow span span {
	background-image: url(images/skins/yellow/button_left.gif);
}


/* 
 * Simple Skin Buttons
 */

.sbutton.sexysimple { 
	position: relative; 
	padding: 5px 10px 5px;
	font: inherit;
	font-size: 13px;
	font-style: normal; 
	font-weight: bold; 
	color: #fff;
	line-height: 1; 
	background-image: url(images/skins/simple/awesome-overlay-sprite.png);
	background-repeat: repeat-x;
	background-position: 0 0;
	
	/* Special effects */
	text-shadow: 0 -1px 1px rgba(0,0,0,0.25), -2px 0 1px rgba(0,0,0,0.25); 
	border-radius: 5px; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px; 
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.5); 
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
	
	/* IE only stuff */
	border-bottom: 1px solid transparent\9;
	_background-image: none;
	
	/* Cross browser inline block hack - http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/ */
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	*display: inline !important;
	position: relative;
	
	/* Force hasLayout in IE */
	zoom: 1;
	
	/* Disable text selection (Firefox only)*/
	-moz-user-select: none;
}

.sbutton.sexysimple::selection {
	background: transparent;
}

.sbutton.sexysimple:hover {
	background-position: 0 -50px; 
	color: #fff;
}

.sbutton.sexysimple:active { 
	background-position: 0 100%; 
	-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.7); 
	/* Unfortunately, Safari doesn't support inset yet */
	-webkit-box-shadow: none;
	
	/* IE only stuff */
	border-bottom: 0\9;
	border-top: 1px solid #666\9;
}

.sbutton.sexysimple span {
	height: auto;
	padding-left: 24px;
	padding-right: 0;
	background-position: left center;
	background-repeat: no-repeat;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-left: 0;		Or just hide icons from the undeserving IE6 */
}

.sbutton.sexysimple span.after {
	padding-left: 0;
	padding-right: 24px;
	background-position: right center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-right: 0;		Or just hide icons from the undeserving IE6 */
}

/* Simple button colors */
.sbutton.sexysimple				{ background-color: #333; }		/* Default */
.sbutton.sexysimple.sexyblack	{ background-color: #333; }
.sbutton.sexysimple.sexyred		{ background-color: #a90118; }
.sbutton.sexysimple.sexyorange	{ background-color: #ff8a00; }
.sbutton.sexysimple.sexyyellow	{ background-color: #ffb515; }
.sbutton.sexysimple.sexygreen	{ background-color: #59a901; }
.sbutton.sexysimple.sexyblue	{ background-color: #015ea9; }
.sbutton.sexysimple.sexyteal	{ background-color: #2daebf; }
.sbutton.sexysimple.sexymagenta	{ background-color: #a9014b; }
.sbutton.sexysimple.sexypurple	{ background-color: #9d01a9; }

/* Simple button sizes */
.sbutton.sexysimple.sexysmall          { padding: 4px 7px 5px; font-size: 10px; }
.sbutton.sexysimple.sexysmall:active   { padding: 5px 7px 4px; }
.sbutton.sexysimple                    { /* default */ }
.sbutton.sexysimple:active             { padding: 6px 10px 4px; }
.sbutton.sexysimple.sexymedium         { /* default */ }
.sbutton.sexysimple.sexymedium:active  { padding: 6px 10px 4px; }
.sbutton.sexysimple.sexylarge          { padding: 8px 14px 8px; font-size: 14px; }
.sbutton.sexysimple.sexylarge:active   { padding: 9px 14px 7px; }
.sbutton.sexysimple.sexyxl             { padding: 8px 14px 8px; font-size: 16px; }
.sbutton.sexysimple.sexyxl:active      { padding: 9px 14px 7px; }
.sbutton.sexysimple.sexyxxl            { padding: 8px 14px 8px; font-size: 20px; }
.sbutton.sexysimple.sexyxxl:active     { padding: 9px 14px 7px; }
.sbutton.sexysimple.sexyxxxl           { padding: 8px 14px 8px; font-size: 26px; }
.sbutton.sexysimple.sexyxxxl:active    { padding: 9px 14px 7px; }


/*
 * Icon Definitions
 */

/* Silk Icons - http://www.famfamfam.com/lab/icons/silk/ */
/* (Obviously not all Silk icons are defined here. Feel free to define any other icons that you may need.) */

.sbutton span.ok			{ background-image: url(images/icons/silk/tick.png); }
.sbutton span.cancel		{ background-image: url(images/icons/silk/cross.png); }
.sbutton span.add			{ background-image: url(images/icons/silk/add.png); }
.sbutton span.delete		{ background-image: url(images/icons/silk/delete.png); }
.sbutton span.lockgo		{ background-image: url(images/icons/silk/lock_start.png); }
.sbutton span.lockedit		{ background-image: url(images/icons/silk/lock_edit.png); }
.sbutton span.signout		{ background-image: url(images/icons/silk/door_out.png); }
.sbutton span.signin		{ background-image: url(images/icons/silk/door_in.png); }
.sbutton span.appform		{ background-image: url(images/icons/silk/application_form.png); }
.sbutton span.bookopen		{ background-image: url(images/icons/silk/book_open.png); }
.sbutton span.download		{ background-image: url(images/icons/silk/arrow_down.png); }
.sbutton span.download2		{ background-image: url(images/icons/silk/package_down.png); }
.sbutton span.upload		{ background-image: url(images/icons/silk/arrow_up.png); }
.sbutton span.search		{ background-image: url(images/icons/silk/magnifier.png); }
.sbutton span.find			{ background-image: url(images/icons/silk/find.png); }
.sbutton span.first			{ background-image: url(images/icons/silk/resultset_first.png); }
.sbutton span.prev			{ background-image: url(images/icons/silk/resultset_previous.png); }
.sbutton span.next			{ background-image: url(images/icons/silk/resultset_next.png); }
.sbutton span.last			{ background-image: url(images/icons/silk/resultset_last.png); }
.sbutton span.reload		{ background-image: url(images/icons/silk/reload.png); }
.sbutton span.sync			{ background-image: url(images/icons/silk/arrow_refresh.png); }
.sbutton span.save			{ background-image: url(images/icons/silk/disk.png); }
.sbutton span.email			{ background-image: url(images/icons/silk/email.png); }
.sbutton span.print			{ background-image: url(images/icons/silk/printer.png); }
.sbutton span.heart			{ background-image: url(images/icons/silk/heart.png); }
.sbutton span.like			{ background-image: url(images/icons/silk/thumb_up.png); }
.sbutton span.dislike		{ background-image: url(images/icons/silk/thumb_down.png); }
.sbutton span.accept		{ background-image: url(images/icons/silk/accept.png); }
.sbutton span.decline		{ background-image: url(images/icons/silk/decline.png); }
.sbutton span.help			{ background-image: url(images/icons/silk/help.png); }
.sbutton span.home			{ background-image: url(images/icons/silk/house.png); }
.sbutton span.sb_info		{ background-image: url(images/icons/silk/information.png); }
.sbutton span.undo			{ background-image: url(images/icons/silk/arrow_undo.png); }
.sbutton span.redo			{ background-image: url(images/icons/silk/arrow_redo.png); }
.sbutton span.edit			{ background-image: url(images/icons/silk/pencil.png); }
.sbutton span.calendar		{ background-image: url(images/icons/silk/date.png); }
.sbutton span.user			{ background-image: url(images/icons/silk/user.png); }
.sbutton span.settings		{ background-image: url(images/icons/silk/cog.png); }
.sbutton span.cart			{ background-image: url(images/icons/silk/cart.png); }
.sbutton span.wand			{ background-image: url(images/icons/silk/wand.png); }
.sbutton span.wrench		{ background-image: url(images/icons/silk/wrench.png); }
