2019-10-29 08:22:51 +00:00
|
|
|
//
|
|
|
|
// Mixins: Accent
|
|
|
|
//
|
|
|
|
|
|
|
|
// Accent Variant
|
|
|
|
@mixin accent-variant($name, $color) {
|
2020-09-23 14:08:15 +00:00
|
|
|
$link-color: $color;
|
2019-10-29 08:22:51 +00:00
|
|
|
.accent-#{$name} {
|
|
|
|
$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-04-27 17:37:51 +00:00
|
|
|
a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.btn) {
|
2019-10-29 08:22:51 +00:00
|
|
|
color: $link-color;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
@include hover () {
|
2019-10-29 08:22:51 +00:00
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-11 09:46:00 +00:00
|
|
|
.dropdown-item {
|
2020-02-13 13:55:20 +00:00
|
|
|
&:active,
|
2020-02-11 09:46:00 +00:00
|
|
|
&.active {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $color;
|
2020-02-11 09:46:00 +00:00
|
|
|
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 {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $color;
|
2019-12-07 10:34:02 +00:00
|
|
|
border-color: darken($color, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
2020-05-30 13:06:11 +00:00
|
|
|
$new-color: color-yiq($color);
|
|
|
|
background-image: str-replace($custom-checkbox-indicator-icon-checked, str-replace(#{$custom-control-indicator-checked-color}, "#", "%23"), str-replace(#{$new-color}, "#", "%23"));
|
2019-12-07 10:34:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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%);
|
|
|
|
}
|
2020-05-30 13:06:11 +00:00
|
|
|
|
2019-10-29 08:22:51 +00:00
|
|
|
.page-item {
|
2020-04-01 15:01:35 +00:00
|
|
|
.page-link {
|
|
|
|
color: $link-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active a,
|
2019-10-29 08:22:51 +00:00
|
|
|
&.active .page-link {
|
|
|
|
background-color: $pagination-active-bg;
|
|
|
|
border-color: $pagination-active-border-color;
|
2020-04-01 15:01:35 +00:00
|
|
|
color: $pagination-active-color;
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|
|
|
|
|
2020-04-01 15:01:35 +00:00
|
|
|
&.disabled a,
|
2019-10-29 08:22:51 +00:00
|
|
|
&.disabled .page-link {
|
|
|
|
background-color: $pagination-disabled-bg;
|
|
|
|
border-color: $pagination-disabled-border-color;
|
2020-04-01 15:01:35 +00:00
|
|
|
color: $pagination-disabled-color;
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|
|
|
|
}
|
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;
|
2020-05-30 13:06:11 +00:00
|
|
|
|
|
|
|
@include hover () {
|
2020-02-11 09:46:00 +00:00
|
|
|
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;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
@include hover () {
|
2020-02-11 09:46:00 +00:00
|
|
|
color: $sidebar-light-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
.dark-mode.accent-#{$name} {
|
|
|
|
.page-item {
|
|
|
|
.page-link {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: lighten($link-color, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|