AdminLTE/build/scss/_buttons.scss

109 lines
2.0 KiB
SCSS
Raw Normal View History

//
// Component: Button
//
2015-10-31 21:00:16 +00:00
.btn {
&.disabled,
&:disabled {
cursor: not-allowed;
}
2015-10-31 21:00:16 +00:00
// Flat buttons
&.btn-flat {
@include border-radius(0);
border-width: 1px;
box-shadow: none;
2015-10-31 21:00:16 +00:00
}
// input file btn
&.btn-file {
overflow: hidden;
position: relative;
2015-10-31 21:00:16 +00:00
> input[type='file'] {
background: $white;
cursor: inherit;
display: block;
2015-10-31 21:00:16 +00:00
font-size: 100px;
min-height: 100%;
min-width: 100%;
2015-10-31 21:00:16 +00:00
opacity: 0;
outline: none;
position: absolute;
right: 0;
text-align: right;
top: 0;
2015-10-31 21:00:16 +00:00
}
}
.text-sm & {
font-size: $font-size-sm !important;
}
2015-10-31 21:00:16 +00:00
}
2018-03-17 17:07:55 +00:00
// Button color variations
2015-10-31 21:00:16 +00:00
.btn-default {
background-color: $button-default-background-color;
border-color: $button-default-border-color;
color: $button-default-color;
2015-10-31 21:00:16 +00:00
&:hover,
&:active,
&.hover {
background-color: darken($button-default-background-color, 5%);
color: darken($button-default-color, 10%);
2015-10-31 21:00:16 +00:00
}
}
// Application buttons
.btn-app {
@include border-radius(3px);
background-color: $button-default-background-color;
border: 1px solid $button-default-border-color;
color: $gray-600;
font-size: 12px;
height: 60px;
2015-10-31 21:00:16 +00:00
margin: 0 0 10px 10px;
min-width: 80px;
padding: 15px 5px;
position: relative;
2015-10-31 21:00:16 +00:00
text-align: center;
// Icons within the btn
> .fa,
> .fas,
> .far,
> .fab,
> .glyphicon,
> .ion {
2015-10-31 21:00:16 +00:00
display: block;
font-size: 20px;
2015-10-31 21:00:16 +00:00
}
&:hover {
background: $button-default-background-color;
border-color: darken($button-default-border-color, 20%);
color: $button-default-color;
2015-10-31 21:00:16 +00:00
}
&:active,
&:focus {
@include box-shadow(inset 0 3px 5px rgba($black, 0.125));
2015-10-31 21:00:16 +00:00
}
// The badge
2015-10-31 21:00:16 +00:00
> .badge {
font-size: 10px;
font-weight: 400;
position: absolute;
right: -10px;
top: -3px;
2015-10-31 21:00:16 +00:00
}
}
// Extra Button Size
.btn-xs {
@include button-size($button-padding-y-xs, $button-padding-x-xs, $button-font-size-xs, $button-line-height-xs, $button-border-radius-xs);
}