|
21 | 21 | --bs-dark-rgb: {{ settings.pages.BrandSettings.dark_color|hex_to_rgb }}; |
22 | 22 | {% endif %} |
23 | 23 | } |
| 24 | + {% if settings.pages.BrandSettings.primary_color %} |
24 | 25 | .accordion { |
25 | 26 | --bs-accordion-active-color: {{ settings.pages.BrandSettings.primary_color }}; |
26 | 27 | --bs-accordion-active-bg: rgba(var(--bs-primary-rgb), 0.2); |
|
49 | 50 | background-color: var(--bs-primary)!important; |
50 | 51 | color: var(--bs-light)!important; |
51 | 52 | } |
52 | | - {% if settings.pages.BrandSettings.secondary_color %} |
53 | | - .text-bg-secondary { |
54 | | - background-color: var(--bs-secondary)!important; |
55 | | - color: var(--bs-light)!important; |
| 53 | + .btn-white { |
| 54 | + --bs-btn-border-color: {{ settings.pages.BrandSettings.primary_color }}; |
| 55 | + } |
| 56 | + .datepicker-cell.date-enabled { |
| 57 | + color: {{ settings.pages.BrandSettings.primary_color }}!important; |
| 58 | + font-weight: bold; |
| 59 | + } |
| 60 | + .datepicker-cell.selected { |
| 61 | + background-color: {{ settings.pages.BrandSettings.primary_color }}!important; |
| 62 | + color: #fff!important; |
| 63 | + } |
| 64 | + |
| 65 | + .form-control:focus { |
| 66 | + box-shadow: 0 0 0 0.25rem rgba({{ settings.pages.BrandSettings.primary_color|hex_to_rgb }},.25); |
| 67 | + } |
| 68 | + .dropdown-menu { |
| 69 | + --bs-dropdown-link-active-bg: {{ settings.pages.BrandSettings.primary_color }}; |
56 | 70 | } |
57 | | - {% endif %} |
58 | 71 | .table-primary { |
59 | 72 | --bs-table-color: #000; |
60 | 73 | --bs-table-bg: rgba(var(--bs-primary-rgb), 0.2); |
|
84 | 97 | .btn-close:focus { |
85 | 98 | box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb),.25); |
86 | 99 | } |
| 100 | + {% endif %} |
| 101 | + {% if settings.pages.BrandSettings.secondary_color %} |
| 102 | + .text-bg-secondary { |
| 103 | + background-color: var(--bs-secondary)!important; |
| 104 | + color: var(--bs-light)!important; |
| 105 | + } |
87 | 106 | .btn-secondary { |
88 | 107 | --bs-btn-bg: {{ settings.pages.BrandSettings.secondary_color }}; |
89 | 108 | --bs-btn-border-color: {{ settings.pages.BrandSettings.secondary_color }}; |
|
95 | 114 | --bs-btn-hover-color: var(--bs-white); |
96 | 115 |
|
97 | 116 | } |
98 | | - .btn-white { |
99 | | - --bs-btn-border-color: {{ settings.pages.BrandSettings.primary_color }}; |
100 | | - } |
101 | | - .datepicker-cell.date-enabled { |
102 | | - color: {{ settings.pages.BrandSettings.primary_color }}!important; |
103 | | - font-weight: bold; |
104 | | - } |
105 | | - .datepicker-cell.selected { |
106 | | - background-color: {{ settings.pages.BrandSettings.primary_color }}!important; |
107 | | - color: #fff!important; |
108 | | - } |
109 | | - |
110 | | - .form-control:focus { |
111 | | - box-shadow: 0 0 0 0.25rem rgba({{ settings.pages.BrandSettings.primary_color|hex_to_rgb }},.25); |
112 | | - } |
113 | | - .dropdown-menu { |
114 | | - --bs-dropdown-link-active-bg: {{ settings.pages.BrandSettings.primary_color }}; |
115 | | - } |
| 117 | + {% endif %} |
116 | 118 | {% if settings.pages.BrandSettings.custom_css %} |
117 | 119 | {{ settings.pages.BrandSettings.custom_css|safe }} |
118 | 120 | {% endif %} |
|
0 commit comments