Apply missing styles when overriding the default colors with the company colors

This commit is contained in:
Alex Tselegidis 2022-06-02 09:19:23 +02:00
parent ca7727dfaa
commit 9cab342719

View file

@ -4,7 +4,10 @@
*/
?>
<?php if ($company_color !== DEFAULT_COMPANY_COLOR): ?>
<style>
/* Generic Overrides */
a {
color: <?= $company_color ?>;
}
@ -19,12 +22,57 @@
border-color: <?= $company_color ?>;
}
.btn-primary:hover {
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
background-color: <?= $company_color ?>;
border-color: <?= $company_color ?>;
filter: brightness(120%);
outline: none;
}
.btn-primary:disabled, .btn-primary.disabled {
background-color: <?= $company_color ?>;
border-color: <?= $company_color ?>;
filter: brightness(70%);
opacity: .75;
}
.dropdown-item.active,
.dropdown-item:active {
background-color: <?= $company_color ?> !important;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
background-color: <?= $company_color ?> !important;
}
.nav .nav-link:not(.active) {
color: <?= $company_color ?> !important;
}
.form-control:focus {
border-color: <?= $company_color ?> !important;
filter: brightness(120%);
box-shadow: none;
}
.form-check-input:checked {
background-color: <?= $company_color ?> !important;
border-color: <?= $company_color ?> !important;
}
body .ui-datepicker .ui-slider-handle {
border-color: <?= $company_color ?> !important;
background-color: <?= $company_color ?> !important;
}
body .modal-header {
background: <?= $company_color ?> !important;
}
/* Booking Layout */
#book-appointment-wizard #header {
background: <?= $company_color ?>;
}
@ -90,4 +138,27 @@
#frame-footer .backend-link:hover {
color: #fff;
}
/* Backend Layout */
#header {
background-color: <?= $company_color ?> !important;
}
#header #header-menu .nav-item:hover,
#header #header-menu .nav-item.active {
background: <?= $company_color ?> !important;
filter: brightness(120%);
}
#header #header-logo small {
color: <?= $company_color ?> !important;
filter: brightness(60%);
}
.backend-page .filter-records .results .entry.selected {
border-right-color: <?= $company_color ?> !important;
}
</style>
<?php endif ?>