mdb-ui-kit/less/_buttons.import.less

108 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-08-18 18:25:33 +04:00
// 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;
2014-08-18 18:25:33 +04:00
2014-10-08 16:52:08 +04:00
&:hover {
color: @darkbg-text;
}
2014-10-08 16:52:08 +04:00
&:hover:not(.btn-link) {
2014-08-18 18:25:33 +04:00
.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);
2014-08-18 18:25:33 +04:00
}
// 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;
2014-10-08 16:52:08 +04:00
&:hover {
color: @lightbg-text;
2014-08-18 18:25:33 +04:00
}
}
.btn:not([class^="btn btn-"]), .btn-default {
2014-10-08 16:52:08 +04:00
&:hover {
background-color: rgba(255,255,255,0.5);
2014-08-18 18:25:33 +04:00
}
}
.btn-raised {
.btn-shadow();
2014-08-18 18:25:33 +04:00
}
.open > .dropdown-toggle.btn {
.variations(~"", background-color, @btn-default);
2014-08-18 18:25:33 +04:00
}
.btn-flat {
box-shadow: none !important;
2014-10-08 16:52:08 +04:00
&.btn-default:hover {
2014-08-18 18:25:33 +04:00
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;
}
// Floating Action Button (FAB)
.btn-fab {
margin: 0;
padding: 15px;
font-size: 26px;
width: 56px;
height: 56px;
2014-10-08 16:52:08 +04:00
&, &:hover {
.variations(~"", background-color, transparent);
}
&, .ripple-wrapper {
border-radius: 100%;
}
&.btn-mini {
width: 40px;
height: 40px;
padding: 13px;
font-size: 15px;
}
}