landmark-serve
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
138 lines (114 loc) • 3.27 kB
text/less
// Button
.mce-btn {
border: 1px solid @btn-border-top;
border-color: @btn-border-top @btn-border-right @btn-border-bottom @btn-border-left;
position: relative;
text-shadow: @text-shadow;
.inline-block();
.border-radius(3px);
// .box-shadow(@btn-box-shadow);
// .vertical-gradient(@btn-bg, @btn-bg-hlight);
&:hover, &:focus {
color: @btn-text;
background: @btn-bg-hover;
// .vertical-gradient(darken(@btn-bg, 5%), darken(@btn-bg-hlight, 5%));
}
&.mce-disabled button, &.mce-disabled:hover button {
cursor: default;
.box-shadow(none);
.opacity(@btn-box-disabled-opacity);
}
&.mce-active, &.mce-active:hover, &:not(.mce-disabled):active {
background: @btn-bg-hover;
border-color: darken(@btn-border-top, 10%) darken(@btn-border-right, 10%) darken(@btn-border-bottom, 10%) darken(@btn-border-left, 10%);
// .vertical-gradient(darken(@btn-bg, 10%), darken(@btn-bg-hlight, 10%));
.box-shadow(@btn-box-shadow-active);
}
}
.mce-btn button {
padding: 4px 10px;
font-size: @font-size;
line-height: @line-height;
*line-height: @line-height - 4px;
cursor: pointer;
color: @btn-text;
text-align: center;
// Fixes for default inner padding of button
overflow: visible; // IE7
-webkit-appearance: none; // WebKit
&::-moz-focus-inner { // Gecko
border: 0;
padding: 0;
}
}
.mce-btn i {
text-shadow: 1px 1px @btn-text-shadow;
}
.mce-primary {
min-width: 50px;
color: @btn-primary-text;
border: 1px solid mix(rgb(red(@btn-border-right), green(@btn-border-right), blue(@btn-border-right)), @panel-bg, 30%);
border-color: @btn-primary-border-top @btn-primary-border-right @btn-primary-border-bottom @btn-primary-border-left;
background: white;
.vertical-gradient(@btn-primary-bg, @btn-primary-bg-hlight);
&:hover, &:focus {
.vertical-gradient(@btn-primary-bg-hover, @btn-primary-bg-hover-hlight);
}
&.mce-disabled button, &.mce-disabled:hover button {
cursor: default;
.box-shadow(none);
.opacity(@btn-box-disabled-opacity);
}
&.mce-active, &.mce-active:hover, &:not(.mce-disabled):active {
border-color: darken(@btn-primary-border-top, 20%) darken(@btn-primary-border-right, 20%) darken(@btn-primary-border-bottom, 20%) darken(@btn-primary-border-left, 20%);
background: @btn-primary-bg-active;
.box-shadow(@btn-primary-box-shadow-active);
}
}
.mce-primary button, .mce-primary button i {
color: @btn-primary-text;
text-shadow: 1px 1px @btn-primary-text-shadow;
}
.mce-btn-large button {
padding: 9px 14px;
font-size: @font-size + 2px;
line-height: normal;
.border-radius(5px);
}
.mce-btn-large i {
margin-top: 2px;
}
.mce-btn-small button {
padding: 3px 5px;
font-size: @font-size - 2px;
line-height: @line-height - 5px;
}
.mce-btn-small i {
margin-top: 0;
}
.mce-btn .mce-caret {
margin-top: 8px;
*margin-top: 6px;
margin-left: 0;
}
.mce-btn-small .mce-caret {
margin-top: 6px;
*margin-top: 4px;
margin-left: 0;
}
.mce-caret {
.inline-block();
width: 0; height: 0;
vertical-align: top;
border-top: 4px solid @btn-caret-border;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
}
.mce-disabled .mce-caret {
border-top-color: @text-disabled;
}
.mce-caret.mce-up {
border-bottom: 4px solid @btn-caret-border;
border-top: 0;
}