2012-02-27 00:49:51 +00:00
|
|
|
/*!
|
2010-07-14 19:55:54 +00:00
|
|
|
* jQuery UI Button @VERSION
|
2012-07-04 13:08:08 +00:00
|
|
|
* http://jqueryui.com
|
2010-07-14 19:55:54 +00:00
|
|
|
*
|
2013-01-10 13:52:20 +00:00
|
|
|
* Copyright 2013 jQuery Foundation and other contributors
|
2012-08-09 14:13:24 +00:00
|
|
|
* Released under the MIT license.
|
2010-07-14 19:55:54 +00:00
|
|
|
* http://jquery.org/license
|
|
|
|
*
|
|
|
|
* http://docs.jquery.com/UI/Button#theming
|
|
|
|
*/
|
2012-11-20 00:29:01 +00:00
|
|
|
.ui-button {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
padding: 0;
|
2012-11-29 17:30:17 +00:00
|
|
|
line-height: normal;
|
2012-11-20 00:29:01 +00:00
|
|
|
margin-right: .1em;
|
|
|
|
cursor: pointer;
|
2012-11-29 17:30:17 +00:00
|
|
|
vertical-align: middle;
|
2012-11-20 00:29:01 +00:00
|
|
|
text-align: center;
|
|
|
|
overflow: visible; /* removes extra width in IE */
|
|
|
|
}
|
|
|
|
.ui-button,
|
|
|
|
.ui-button:link,
|
|
|
|
.ui-button:visited,
|
|
|
|
.ui-button:hover,
|
|
|
|
.ui-button:active {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
/* to make room for the icon, a width needs to be set here */
|
|
|
|
.ui-button-icon-only {
|
|
|
|
width: 2.2em;
|
|
|
|
}
|
|
|
|
/* button elements seem to need a little more width */
|
|
|
|
button.ui-button-icon-only {
|
|
|
|
width: 2.4em;
|
|
|
|
}
|
|
|
|
.ui-button-icons-only {
|
|
|
|
width: 3.4em;
|
|
|
|
}
|
|
|
|
button.ui-button-icons-only {
|
|
|
|
width: 3.7em;
|
|
|
|
}
|
2010-01-07 03:19:50 +00:00
|
|
|
|
2012-11-20 00:29:01 +00:00
|
|
|
/* button text element */
|
|
|
|
.ui-button .ui-button-text {
|
2012-11-29 19:26:29 +00:00
|
|
|
display: block;
|
2012-11-29 17:30:17 +00:00
|
|
|
line-height: normal;
|
2012-11-20 00:29:01 +00:00
|
|
|
}
|
|
|
|
.ui-button-text-only .ui-button-text {
|
|
|
|
padding: .4em 1em;
|
|
|
|
}
|
|
|
|
.ui-button-icon-only .ui-button-text,
|
|
|
|
.ui-button-icons-only .ui-button-text {
|
|
|
|
padding: .4em;
|
|
|
|
text-indent: -9999999px;
|
|
|
|
}
|
|
|
|
.ui-button-text-icon-primary .ui-button-text,
|
|
|
|
.ui-button-text-icons .ui-button-text {
|
|
|
|
padding: .4em 1em .4em 2.1em;
|
|
|
|
}
|
|
|
|
.ui-button-text-icon-secondary .ui-button-text,
|
|
|
|
.ui-button-text-icons .ui-button-text {
|
|
|
|
padding: .4em 2.1em .4em 1em;
|
|
|
|
}
|
|
|
|
.ui-button-text-icons .ui-button-text {
|
|
|
|
padding-left: 2.1em;
|
|
|
|
padding-right: 2.1em;
|
|
|
|
}
|
2010-01-07 03:19:50 +00:00
|
|
|
/* no icon support for input elements, provide padding by default */
|
2012-11-20 00:29:01 +00:00
|
|
|
input.ui-button {
|
|
|
|
padding: .4em 1em;
|
|
|
|
}
|
2010-01-07 03:19:50 +00:00
|
|
|
|
2012-11-20 00:29:01 +00:00
|
|
|
/* button icon element(s) */
|
|
|
|
.ui-button-icon-only .ui-icon,
|
|
|
|
.ui-button-text-icon-primary .ui-icon,
|
|
|
|
.ui-button-text-icon-secondary .ui-icon,
|
|
|
|
.ui-button-text-icons .ui-icon,
|
|
|
|
.ui-button-icons-only .ui-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -8px;
|
|
|
|
}
|
|
|
|
.ui-button-icon-only .ui-icon {
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -8px;
|
|
|
|
}
|
|
|
|
.ui-button-text-icon-primary .ui-button-icon-primary,
|
|
|
|
.ui-button-text-icons .ui-button-icon-primary,
|
|
|
|
.ui-button-icons-only .ui-button-icon-primary {
|
|
|
|
left: .5em;
|
|
|
|
}
|
|
|
|
.ui-button-text-icon-secondary .ui-button-icon-secondary,
|
|
|
|
.ui-button-text-icons .ui-button-icon-secondary,
|
|
|
|
.ui-button-icons-only .ui-button-icon-secondary {
|
|
|
|
right: .5em;
|
|
|
|
}
|
2010-01-07 03:19:50 +00:00
|
|
|
|
2012-11-20 00:29:01 +00:00
|
|
|
/* button sets */
|
|
|
|
.ui-buttonset {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
.ui-buttonset .ui-button {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: -.3em;
|
|
|
|
}
|
2010-01-07 03:19:50 +00:00
|
|
|
|
|
|
|
/* workarounds */
|
2012-11-29 17:30:17 +00:00
|
|
|
/* reset extra padding in Firefox, see h5bp.com/l */
|
|
|
|
input.ui-button::-moz-focus-inner,
|
2012-11-20 00:29:01 +00:00
|
|
|
button.ui-button::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|