2015-10-31 22:00:16 +01:00
|
|
|
/*
|
|
|
|
* Component: Button
|
|
|
|
* -----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
// Flat buttons
|
|
|
|
&.btn-flat {
|
|
|
|
@include border-radius(0);
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// input file btn
|
|
|
|
&.btn-file {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
> input[type='file'] {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
font-size: 100px;
|
|
|
|
text-align: right;
|
|
|
|
opacity: 0;
|
|
|
|
outline: none;
|
|
|
|
background: white;
|
|
|
|
cursor: inherit;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// Button color variations
|
2015-10-31 22:00:16 +01:00
|
|
|
.btn-default {
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
color: #444;
|
|
|
|
border-color: #ddd;
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&.hover {
|
|
|
|
background-color: darken(#f4f4f4, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Application buttons
|
|
|
|
.btn-app {
|
|
|
|
@include border-radius(3px);
|
|
|
|
position: relative;
|
|
|
|
padding: 15px 5px;
|
|
|
|
margin: 0 0 10px 10px;
|
|
|
|
min-width: 80px;
|
|
|
|
height: 60px;
|
|
|
|
text-align: center;
|
|
|
|
color: #666;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
font-size: 12px;
|
2018-04-01 19:35:02 +02:00
|
|
|
// Icons within the btn
|
|
|
|
> .fa,
|
|
|
|
> .glyphicon,
|
|
|
|
> .ion {
|
2015-10-31 22:00:16 +01:00
|
|
|
font-size: 20px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: #f4f4f4;
|
|
|
|
color: #444;
|
|
|
|
border-color: #aaa;
|
|
|
|
}
|
|
|
|
|
2018-04-01 19:35:02 +02:00
|
|
|
&:active,
|
|
|
|
&:focus {
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
|
|
}
|
|
|
|
|
2018-04-01 19:35:02 +02:00
|
|
|
// The badge
|
2015-10-31 22:00:16 +01:00
|
|
|
> .badge {
|
|
|
|
position: absolute;
|
|
|
|
top: -3px;
|
|
|
|
right: -10px;
|
|
|
|
font-size: 10px;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
}
|