mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 13:04:14 +03:00
86 lines
1.7 KiB
Plaintext
86 lines
1.7 KiB
Plaintext
// main: material.less
|
|
|
|
.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();
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
position: relative;
|
|
padding: 8px 30px;
|
|
border: 0;
|
|
margin: 10px 1px;
|
|
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
color: @darkbg-text;
|
|
|
|
&:hover {
|
|
color: @darkbg-text;
|
|
}
|
|
&:hover:not(.btn-link) {
|
|
.shadow-z-2-hover();
|
|
}
|
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
&:active:not(.btn-link) {
|
|
.shadow-z-3();
|
|
}
|
|
outline: none !important;
|
|
|
|
.variations(~":not(.btn-link)", background-color, @btn-default);
|
|
|
|
}
|
|
// This is needed to style buttons which has not a variation suffix (they must stiled as btn-default)
|
|
.btn-link, .btn:not([class^="btn btn-"]), .btn-default {
|
|
color: @lightbg-text;
|
|
&:hover {
|
|
color: @lightbg-text;
|
|
}
|
|
}
|
|
.btn:not([class^="btn btn-"]), .btn-default {
|
|
&:hover {
|
|
background-color: rgba(255,255,255,0.5);
|
|
}
|
|
}
|
|
|
|
.btn-raised {
|
|
.btn-shadow();
|
|
}
|
|
|
|
.open > .dropdown-toggle.btn {
|
|
.variations(~"", background-color, @btn-default);
|
|
}
|
|
.btn-flat {
|
|
box-shadow: none !important;
|
|
&.btn-default:hover {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.btn-group, .btn-group-vertical {
|
|
position: relative;
|
|
border-radius: 4px;
|
|
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;
|
|
}
|