2015-11-04 23:23:20 +03:00
|
|
|
.btn-shadow() {
|
|
|
|
.shadow-z-1();
|
|
|
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
&:active:not(.btn-link) {
|
|
|
|
.shadow-z-1-hover();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-18 18:25:33 +04:00
|
|
|
.btn {
|
2014-12-18 15:59:34 +03:00
|
|
|
position: relative;
|
|
|
|
padding: 8px 30px;
|
|
|
|
border: 0;
|
|
|
|
margin: 10px 1px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 2px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
text-decoration: none;
|
|
|
|
color: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-12-26 08:03:07 +03:00
|
|
|
&:hover:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
2015-03-10 15:01:47 +03:00
|
|
|
.shadow-z-1();
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
2014-12-26 08:03:07 +03:00
|
|
|
&:active:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
2015-03-10 15:01:47 +03:00
|
|
|
.shadow-z-1-hover();
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
2015-03-10 15:01:47 +03:00
|
|
|
transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
2014-12-18 15:59:34 +03:00
|
|
|
outline: none !important;
|
2014-08-20 14:53:26 +04:00
|
|
|
|
2015-03-09 22:56:57 +03:00
|
|
|
|
2014-12-18 15:59:34 +03:00
|
|
|
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text);
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-12-16 13:13:49 +03:00
|
|
|
.background-variations(~":not(.btn-link):not(.btn-flat)", @btn-default);
|
2014-12-13 14:36:26 +03:00
|
|
|
|
2015-03-09 22:56:57 +03:00
|
|
|
// BTN hover effect
|
2015-11-05 02:50:22 +03:00
|
|
|
// SASS conversion note: please mirror any content change in _mixins-shared.scss button-variations-content
|
2015-03-09 22:56:57 +03:00
|
|
|
.generic-variations(~":hover:not(.btn-link):not(.btn-flat)", @btn-default, {
|
2015-11-21 17:56:29 +03:00
|
|
|
background-color: contrast(@mdb-color, darken(@mdb-color, 4%), lighten(@mdb-color, 4%), @contrast-factor);
|
2015-03-09 22:56:57 +03:00
|
|
|
});
|
|
|
|
// BTN active effect
|
2015-11-05 02:50:22 +03:00
|
|
|
// SASS conversion note: please mirror any content change in _mixins-shared.scss button-variations-content
|
2015-03-09 22:56:57 +03:00
|
|
|
.generic-variations(~":active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
2015-11-21 17:56:29 +03:00
|
|
|
background-color: contrast(@mdb-color, darken(@mdb-color, 6%), lighten(@mdb-color, 6%), @contrast-factor);
|
2015-03-09 22:56:57 +03:00
|
|
|
});
|
|
|
|
// BTN .active effect
|
2015-11-05 02:50:22 +03:00
|
|
|
// SASS conversion note: please mirror any content change in _mixins-shared.scss button-variations-content
|
2015-03-09 22:56:57 +03:00
|
|
|
.generic-variations(~".active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
2015-11-21 17:56:29 +03:00
|
|
|
background-color: contrast(@mdb-color, darken(@mdb-color, 6%), lighten(@mdb-color, 6%), @contrast-factor);
|
2015-03-09 22:56:57 +03:00
|
|
|
});
|
|
|
|
// BTN flat hover effect
|
2015-11-05 02:50:22 +03:00
|
|
|
// SASS conversion note: please mirror any content change in _mixins-shared.scss bg-color-variations-content
|
2015-11-03 19:17:44 +03:00
|
|
|
.generic-variations(~".btn-flat:hover:not(.btn-link)", @btn-default, {
|
2015-11-21 17:56:29 +03:00
|
|
|
background-color: fade(@mdb-color, 20%);
|
2015-03-09 22:56:57 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-11-17 19:18:37 +03:00
|
|
|
.btn,
|
|
|
|
.input-group-btn .btn {
|
2014-12-18 15:59:34 +03:00
|
|
|
&.btn-flat {
|
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
|
|
|
font-weight: 500;
|
|
|
|
&:disabled {
|
|
|
|
color: @text-disabled !important;
|
2014-10-12 17:46:56 +04:00
|
|
|
}
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2015-03-17 20:32:39 +03:00
|
|
|
// Size variations
|
|
|
|
&.btn-sm {
|
|
|
|
padding: 5px 20px;
|
|
|
|
}
|
|
|
|
&.btn-xs {
|
|
|
|
padding: 4px 15px;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
2014-12-18 15:59:34 +03:00
|
|
|
&.btn-raised {
|
|
|
|
.btn-shadow();
|
|
|
|
}
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-12-18 15:59:34 +03:00
|
|
|
&.btn-fab {
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px;
|
|
|
|
font-size: 26px;
|
|
|
|
width: 56px;
|
|
|
|
height: 56px;
|
2014-12-27 02:00:18 +03:00
|
|
|
&, &:hover, &:active {
|
2014-12-18 15:59:34 +03:00
|
|
|
.variations(~"", background-color, transparent);
|
2014-10-12 17:46:56 +04:00
|
|
|
}
|
2015-03-10 15:01:47 +03:00
|
|
|
&, &:hover {
|
|
|
|
.shadow-z-1();
|
2014-12-26 08:03:07 +03:00
|
|
|
}
|
|
|
|
&:active {
|
2015-03-10 15:01:47 +03:00
|
|
|
.shadow-z-1-hover();
|
2014-12-26 08:03:07 +03:00
|
|
|
}
|
2015-11-17 19:18:37 +03:00
|
|
|
&,
|
|
|
|
.ripple-wrapper {
|
2014-12-18 15:59:34 +03:00
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
&.btn-fab-mini {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
2015-05-10 01:16:03 +03:00
|
|
|
padding: 13px 0;
|
2014-12-18 15:59:34 +03:00
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
i {
|
|
|
|
position: relative;
|
|
|
|
top: -5px;
|
2015-05-10 01:16:03 +03:00
|
|
|
margin: 0 auto;
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
|
|
|
}
|
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)
|
2015-01-03 02:04:01 +03:00
|
|
|
.btn-link, .btn:not([class*="btn-"]), .btn-default {
|
2014-12-18 15:59:34 +03:00
|
|
|
color: @lightbg-text;
|
|
|
|
&:hover {
|
2014-08-20 14:53:26 +04:00
|
|
|
color: @lightbg-text;
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
2015-01-03 02:04:01 +03:00
|
|
|
.btn:not([class*="btn-"]), .btn-default, .btn-flat:not(.btn-link) {
|
2014-12-18 15:59:34 +03:00
|
|
|
&:hover, &.active {
|
|
|
|
background-color: rgba(255,255,255,0.5);
|
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
.open > .dropdown-toggle.btn {
|
2014-12-18 15:59:34 +03:00
|
|
|
.variations(~"", background-color, @btn-default);
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
2014-11-26 14:53:20 +03:00
|
|
|
.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
.btn-group, .btn-group-vertical {
|
2014-12-18 15:59:34 +03:00
|
|
|
position: relative;
|
|
|
|
border-radius: 2px;
|
|
|
|
margin: 10px 1px;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-12-18 15:59:34 +03:00
|
|
|
.btn-shadow();
|
|
|
|
&.open .dropdown-toggle {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&.btn-group-raised {
|
2014-08-18 18:25:33 +04:00
|
|
|
.btn-shadow();
|
2014-12-18 15:59:34 +03:00
|
|
|
}
|
|
|
|
.btn, .btn:active, .btn-group {
|
|
|
|
box-shadow: none !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
.btn-group-flat {
|
2014-12-18 15:59:34 +03:00
|
|
|
box-shadow: none !important;
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|