2014-08-18 18:25:33 +04:00
|
|
|
.btn {
|
|
|
|
position: relative;
|
|
|
|
padding: 8px 30px;
|
|
|
|
border: 0;
|
|
|
|
margin: 10px 1px;
|
|
|
|
cursor: pointer;
|
2014-10-11 10:22:15 +04:00
|
|
|
border-radius: 2px;
|
2014-08-18 18:25:33 +04:00
|
|
|
text-transform: uppercase;
|
|
|
|
text-decoration: none;
|
2014-08-20 14:53:26 +04:00
|
|
|
color: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
&:hover:not(.btn-link):not(.btn-flat) {
|
2014-08-18 18:25:33 +04:00
|
|
|
.shadow-z-2-hover();
|
2014-10-18 18:17:31 +04:00
|
|
|
}
|
2014-10-12 17:46:56 +04:00
|
|
|
&:active:not(.btn-link):not(.btn-flat) {
|
2014-08-18 18:25:33 +04:00
|
|
|
.shadow-z-3();
|
|
|
|
}
|
2014-10-12 17:46:56 +04:00
|
|
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
2014-08-18 18:25:33 +04:00
|
|
|
outline: none !important;
|
2014-08-20 14:53:26 +04:00
|
|
|
|
2014-10-28 11:40:58 +03:00
|
|
|
.variations(~":not(.btn-link):not(.btn-flat)", background-color, @btn-default);
|
|
|
|
|
|
|
|
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text);
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
&.btn-flat {
|
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
|
|
|
font-weight: 500;
|
|
|
|
&:disabled {
|
|
|
|
color: @text-disabled !important;
|
|
|
|
}
|
|
|
|
}
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
&.btn-raised {
|
|
|
|
.btn-shadow();
|
|
|
|
}
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
&.btn-fab {
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px;
|
|
|
|
font-size: 26px;
|
|
|
|
width: 56px;
|
|
|
|
height: 56px;
|
|
|
|
&, &:hover {
|
|
|
|
.shadow-z-1();
|
|
|
|
.variations(~"", background-color, transparent);
|
|
|
|
}
|
|
|
|
&, .ripple-wrapper {
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
&.btn-fab-mini {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
padding: 13px;
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
i {
|
|
|
|
position: relative;
|
|
|
|
top: -5px;
|
|
|
|
}
|
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
2014-10-12 17:46:56 +04:00
|
|
|
|
2014-10-28 11:40:58 +03:00
|
|
|
// This is needed to style buttons which has not a variation suffix (they must be stiled as btn-default)
|
2014-08-20 14:53:26 +04:00
|
|
|
.btn-link, .btn:not([class^="btn btn-"]), .btn-default {
|
|
|
|
color: @lightbg-text;
|
2014-10-08 16:52:08 +04:00
|
|
|
&:hover {
|
2014-08-20 14:53:26 +04:00
|
|
|
color: @lightbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
}
|
2014-10-28 11:40:58 +03:00
|
|
|
.btn:not([class^="btn btn-"]), .btn-default, .btn-flat:not(.btn-link) {
|
2014-10-28 11:10:40 +03:00
|
|
|
&:hover, &.active {
|
2014-08-20 14:53:26 +04:00
|
|
|
background-color: rgba(255,255,255,0.5);
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.open > .dropdown-toggle.btn {
|
2014-08-20 14:53:26 +04:00
|
|
|
.variations(~"", background-color, @btn-default);
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
.btn-group, .btn-group-vertical {
|
|
|
|
position: relative;
|
2014-10-11 10:22:15 +04:00
|
|
|
border-radius: 2px;
|
2014-08-18 18:25:33 +04:00
|
|
|
margin: 10px 1px;
|
|
|
|
|
|
|
|
.btn-shadow();
|
|
|
|
&.open .dropdown-toggle {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&.btn-group-raised {
|
|
|
|
.btn-shadow();
|
|
|
|
}
|
|
|
|
.btn, .btn:active, .btn-group {
|
|
|
|
box-shadow: none !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.btn:active .caret { margin-left: -1px; }
|
|
|
|
}
|
|
|
|
.btn-group-flat {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2014-09-05 11:46:43 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
.btn-shadow() {
|
|
|
|
.shadow-z-2();
|
|
|
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
&:active:not(.btn-link) {
|
|
|
|
.shadow-z-3();
|
2014-09-05 11:46:43 +04:00
|
|
|
}
|
2014-10-18 18:17:31 +04:00
|
|
|
}
|