OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
admin
/
scss
/
bootstrap
/
mixins
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/12/2024 08:53:06 AM
rwxr-xr-x
📄
_alert.scss
242 bytes
11/12/2024 08:53:04 AM
rw-r--r--
📄
_background-variant.scss
474 bytes
11/12/2024 08:53:04 AM
rw-r--r--
📄
_badge.scss
318 bytes
11/12/2024 08:53:04 AM
rw-r--r--
📄
_border-radius.scss
1.31 KB
11/12/2024 08:53:04 AM
rw-r--r--
📄
_box-shadow.scss
532 bytes
11/12/2024 08:53:04 AM
rw-r--r--
📄
_breakpoints.scss
4.38 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_buttons.scss
3.29 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_caret.scss
1.37 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_clearfix.scss
93 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_deprecate.scss
613 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_float.scss
386 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_forms.scss
4.8 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_gradients.scss
2 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_grid-framework.scss
1.79 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_grid.scss
1.53 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_hover.scss
749 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_image.scss
1.13 KB
11/12/2024 08:53:05 AM
rw-r--r--
📄
_list-group.scss
431 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_lists.scss
168 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_nav-divider.scss
261 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_pagination.scss
462 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_reset-text.scss
479 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_resize.scss
202 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_screen-reader.scss
733 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_size.scss
148 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_table-row.scss
792 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_text-emphasis.scss
364 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_text-hide.scss
326 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_text-truncate.scss
168 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_transition.scss
364 bytes
11/12/2024 08:53:05 AM
rw-r--r--
📄
_visibility.scss
189 bytes
11/12/2024 08:53:05 AM
rw-r--r--
Editing: _buttons.scss
Close
// Button variants // // Easily pump out default styles, as well as :hover, :focus, :active, // and disabled options for all buttons @mixin button-variant($background, $border, $hover-background: darken($background, 7.5%), $hover-border: darken($border, 10%), $active-background: darken($background, 10%), $active-border: darken($border, 12.5%)) { color: color-yiq($background); @include gradient-bg($background); border-color: $border; @include box-shadow($btn-box-shadow); @include hover { color: color-yiq($hover-background); @include gradient-bg($hover-background); border-color: $hover-border; } &:focus, &.focus { // Avoid using mixin so we can pass custom focus shadow properly @if $enable-shadows { box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5); } @else { box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5); } } // Disabled comes first so active can properly restyle &.disabled, &:disabled { color: color-yiq($background); background-color: $background; border-color: $border; // Remove CSS gradients if they're enabled @if $enable-gradients { background-image: none; } } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active, .show > &.dropdown-toggle { color: color-yiq($active-background); background-color: $active-background; @if $enable-gradients { background-image: none; // Remove the gradient for the pressed/active state } border-color: $active-border; &:focus { // Avoid using mixin so we can pass custom focus shadow properly @if $enable-shadows and $btn-active-box-shadow != none { box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5); } @else { box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5); } } } } @mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) { color: $color; border-color: $color; @include hover { color: $color-hover; background-color: $active-background; border-color: $active-border; } &:focus, &.focus { box-shadow: 0 0 0 $btn-focus-width rgba($color, .5); } &.disabled, &:disabled { color: $color; background-color: transparent; } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active, .show > &.dropdown-toggle { color: color-yiq($active-background); background-color: $active-background; border-color: $active-border; &:focus { // Avoid using mixin so we can pass custom focus shadow properly @if $enable-shadows and $btn-active-box-shadow != none { box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5); } @else { box-shadow: 0 0 0 $btn-focus-width rgba($color, .5); } } } } // Button sizes @mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) { padding: $padding-y $padding-x; @include font-size($font-size); line-height: $line-height; // Manually declare to provide an override to the browser default @include border-radius($border-radius, 0); }