2019-10-29 08:22:51 +00:00
|
|
|
//
|
|
|
|
// Mixins: Accent
|
|
|
|
//
|
|
|
|
|
|
|
|
// Accent Variant
|
|
|
|
@mixin accent-variant($name, $color) {
|
|
|
|
.accent-#{$name} {
|
|
|
|
$link-color: $color;
|
|
|
|
$link-hover-color: darken($color, 15%);
|
|
|
|
$pagination-active-bg: $color;
|
|
|
|
$pagination-active-border-color: $color;
|
|
|
|
|
2019-12-04 08:34:36 +00:00
|
|
|
.btn-link,
|
2020-02-11 09:46:00 +00:00
|
|
|
a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link) {
|
2019-10-29 08:22:51 +00:00
|
|
|
color: $link-color;
|
|
|
|
|
|
|
|
@include hover {
|
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-11 09:46:00 +00:00
|
|
|
.dropdown-item {
|
|
|
|
&.active {
|
|
|
|
background: $color;
|
|
|
|
color: color-yiq($color);
|
|
|
|
}
|
2020-01-16 14:23:49 +00:00
|
|
|
}
|
|
|
|
|
2019-12-07 10:34:02 +00:00
|
|
|
.custom-control-input:checked ~ .custom-control-label {
|
|
|
|
&::before {
|
|
|
|
background: $color;
|
|
|
|
border-color: darken($color, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
$newColor: color-yiq($color);
|
|
|
|
background-image: str-replace($custom-checkbox-indicator-icon-checked, str-replace(#{$custom-control-indicator-checked-color}, '#', '%23'), str-replace(#{$newColor}, '#', '%23'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-control:focus:not(.is-invalid):not(.is-warning):not(.is-valid),
|
|
|
|
.custom-select:focus,
|
|
|
|
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before,
|
|
|
|
.custom-file-input:focus ~ .custom-file-label {
|
|
|
|
border-color: lighten($color, 25%);
|
|
|
|
}
|
2019-11-25 08:02:11 +00:00
|
|
|
|
2019-10-29 08:22:51 +00:00
|
|
|
.page-item {
|
|
|
|
&.active .page-link {
|
|
|
|
background-color: $pagination-active-bg;
|
|
|
|
border-color: $pagination-active-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled .page-link {
|
|
|
|
background-color: $pagination-disabled-bg;
|
|
|
|
border-color: $pagination-disabled-border-color;
|
|
|
|
}
|
|
|
|
}
|
2020-02-11 09:46:00 +00:00
|
|
|
|
|
|
|
[class*="sidebar-dark-"] {
|
|
|
|
.sidebar {
|
|
|
|
a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link) {
|
|
|
|
color: $sidebar-dark-color;
|
|
|
|
|
|
|
|
@include hover {
|
|
|
|
color: $sidebar-dark-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[class*="sidebar-light-"] {
|
|
|
|
.sidebar {
|
|
|
|
a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link) {
|
|
|
|
color: $sidebar-light-color;
|
|
|
|
|
|
|
|
@include hover {
|
|
|
|
color: $sidebar-light-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|