minio/browser/app/less/inc/buttons.less

57 lines
900 B
Plaintext
Raw Normal View History

.btn {
border: 0;
2018-03-26 15:49:12 -04:00
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 2px;
text-align: center;
.transition(all);
.transition-duration(300ms);
2018-03-26 15:49:12 -04:00
&:hover,
&:focus {
.opacity(0.9);
}
}
2018-03-26 15:49:12 -04:00
/*-----------------------------------
Button Variants
------------------------------------*/
.btn-variant(@bg-color, @color) {
color: @color;
background-color: @bg-color;
&:hover,
&:focus {
color: @color;
2018-03-26 15:49:12 -04:00
background-color: darken(@bg-color, 6%);
}
2018-03-26 15:49:12 -04:00
}
.btn-block {
display: block;
width: 100%;
}
2018-03-26 15:49:12 -04:00
.btn-white {
.btn-variant(#fff, darken(@text-color, 20%));
}
.btn-link {
.btn-variant(#eee, #545454);
}
.btn-danger {
.btn-variant(@red, @white);
}
2018-03-26 15:49:12 -04:00
.btn-primary {
.btn-variant(@blue, @white);
}
2018-03-26 15:49:12 -04:00
.btn-success {
.btn-variant(@green, @white);
2018-03-26 15:49:12 -04:00
}
//-----------------------------------