6773bd1772
- changed /* comments to // (to avoid displaying in compiled css file) - added .alert-primary - removed _label.scss (due renamed to badge with BS4) - reworked bg-*, bg-gradient-*, custom-switch-*, custom-range-* as mixin - changed control-sidebar-light border color to main-header border - renamed `.direct-chat-info` to `.direct-chat-infos` (not theme color, its a extra block inside direct-chat & updated demo files - enhanced direct-chat with all colors - added `.dropdown-menu-xl` - reworked color-palette in pages/UI/general - changed `Block Quotes Pulled Right` to `Secondary Block Quotes` in pages/UI/general - removed `@-webkit-keyframes flipInX` due autoprefixer - enhanced demo.js with additional colors for sidebar & renamed `Navbar border` to `No Navbar border`
95 lines
1.7 KiB
SCSS
95 lines
1.7 KiB
SCSS
//
|
|
// Component: Button
|
|
//
|
|
|
|
.btn {
|
|
// Flat buttons
|
|
&.btn-flat {
|
|
@include border-radius(0);
|
|
border-width: 1px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
// input file btn
|
|
&.btn-file {
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
> input[type='file'] {
|
|
background: $white;
|
|
cursor: inherit;
|
|
display: block;
|
|
font-size: 100px;
|
|
min-height: 100%;
|
|
min-width: 100%;
|
|
opacity: 0;
|
|
outline: none;
|
|
position: absolute;
|
|
right: 0;
|
|
text-align: right;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Button color variations
|
|
.btn-default {
|
|
background-color: $button-default-background-color;
|
|
border-color: $button-default-border-color;
|
|
color: $button-default-color;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&.hover {
|
|
background-color: darken($button-default-background-color, 5%);
|
|
color: darken($button-default-color, 10%);
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
margin: 0 0 10px 10px;
|
|
min-width: 80px;
|
|
padding: 15px 5px;
|
|
position: relative;
|
|
text-align: center;
|
|
|
|
// Icons within the btn
|
|
> .fa,
|
|
> .fas,
|
|
> .far,
|
|
> .fab,
|
|
> .glyphicon,
|
|
> .ion {
|
|
display: block;
|
|
font-size: 20px;
|
|
}
|
|
|
|
&:hover {
|
|
background: $button-default-background-color;
|
|
border-color: darken($button-default-border-color, 20%);
|
|
color: $button-default-color;
|
|
}
|
|
|
|
&:active,
|
|
&:focus {
|
|
@include box-shadow(inset 0 3px 5px rgba($black, 0.125));
|
|
}
|
|
|
|
// The badge
|
|
> .badge {
|
|
font-size: 10px;
|
|
font-weight: 400;
|
|
position: absolute;
|
|
right: -10px;
|
|
top: -3px;
|
|
}
|
|
}
|
|
|