File "vc_button.less"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/js_composer/assets/less/shortcodes/vc_button.less
File size: 4.1 KB
MIME-type: text/plain
Charset: utf-8
/* Buttons
---------------------------------------------------------- */
// Core
.wpb_button {
display: inline-block;
padding: 4px 10px 4px;
margin-bottom: 0; // For input.btn
margin-top: 0;
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @grayDark;
text-align: center;
text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
vertical-align: middle;
cursor: pointer;
.buttonBackground(@vc_btnBackground, @vc_btnBackgroundHighlight);
border: 1px solid @vc_btnBorder;
border-bottom-color: darken(@vc_btnBorder, 10%);
.border-radius(2px);
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_vc_button2 {
.vc_btn {
margin-top: 5px;
margin-bottom: 5px;
}
}
.vc_vc_button {
.vc_btn {
margin-top: 5px;
margin-bottom: 5px;
}
}
// Hover state
.wpb_button:hover {
color: @grayDark;
text-decoration: none;
background-color: darken(@white, 10%);
// transition is only when going to hover, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
.transition(background-color .1s linear);
}
// Focus state for keyboard and accessibility
.wpb_button:focus {
.tab-focus();
}
// Active state
.wpb_button.active,
.wpb_button:active {
background-color: darken(@white, 10%);
background-image: none;
outline: 0;
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
}
// Button Sizes
// --------------------------------------------------
button,
span {
// Large
&.wpb_btn-large {
padding: 9px 14px;
font-size: @baseFontSize + 2px;
line-height: normal;
.border-radius(2px);
}
&.wpb_btn-large [class^="icon-"] {
margin-top: 1px;
}
// Small
&.wpb_btn-small {
padding: 5px 9px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
&.wpb_btn-small [class^="icon-"] {
margin-top: -1px;
}
// Mini
&.wpb_btn-mini {
padding: 2px 6px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 4px;
}
}
// Alternate buttons
// --------------------------------------------------
// Set text color
// -------------------------
.wpb_btn-primary,
.wpb_btn-primary:hover,
.wpb_btn-warning,
.wpb_btn-warning:hover,
.wpb_btn-danger,
.wpb_btn-danger:hover,
.wpb_btn-success,
.wpb_btn-success:hover,
.wpb_btn-info,
.wpb_btn-info:hover,
.wpb_btn-inverse,
.wpb_btn-inverse:hover {
color: @white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
}
// Provide *some* extra contrast for those who can get it
.wpb_btn-primary.active,
.wpb_btn-warning.active,
.wpb_btn-danger.active,
.wpb_btn-success.active,
.wpb_btn-info.active,
.wpb_btn-inverse.active {
color: rgba(255, 255, 255, .75);
}
// Set the backgrounds
// -------------------------
.wpb_button {
// reset here as of 2.0.3 due to Recess property order
border-color: #ccc;
border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .1);
}
.wpb_btn-primary {
.buttonBackground(@vc_btnPrimaryBackground, @vc_btnPrimaryBackgroundHighlight);
}
// Warning appears are orange
.wpb_btn-warning {
.buttonBackground(@vc_btnWarningBackground, @vc_btnWarningBackgroundHighlight);
}
// Danger and error appear as red
.wpb_btn-danger {
.buttonBackground(@vc_btnDangerBackground, @vc_btnDangerBackgroundHighlight);
}
// Success appears as green
.wpb_btn-success {
.buttonBackground(@vc_btnSuccessBackground, @vc_btnSuccessBackgroundHighlight);
}
// Info appears as a neutral blue
.wpb_btn-info {
.buttonBackground(@vc_btnInfoBackground, @vc_btnInfoBackgroundHighlight);
}
// Inverse appears as dark gray
.wpb_btn-inverse {
.buttonBackground(@vc_btnInverseBackground, @vc_btnInverseBackgroundHighlight);
}
// Cross-browser Jank
// --------------------------------------------------
button.wpb_button,
input[type="submit"].wpb_button {
// Firefox 3.6 only I believe
&::-moz-focus-inner {
padding: 0;
border: 0;
}
}
/* Button
---------------------------------------------------------- */
a.wpb_button_a {
text-decoration: none;
border: none;
&:hover {
text-decoration: none;
}
}
.wpb_button {
&:hover {
background-image: none;
}
}
@import "../lib/wpb_icon.less";