mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Cleanup use of colors with CSS variables
- Custom CSS variables were declared with Bootstrap 4 since it did not use CSS variables itself. In Boostrap 5, CSS variables are available. Use them to eliminate custom color definitions. This means that when Bootstrap colors are changed, custom colored elements will not look different. - Use color utilities from Bootstratp instead of .processing, .warning, and .normal. - Collect more repeated colors into variables. This will make themeing easier. - Using Bootstrap variables also makes implement dark mode easier. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
1de071cceb
commit
1a01f672d6
3 files changed
+30
-47
No files matched your search
@@ -14,11 +14,11 @@
|
||||
<div class="upgrades-status-frame clearfix">
|
||||
<div class="upgrade-status-icon pull-left">
|
||||
{% if is_busy %}
|
||||
<span class="fa fa-refresh fa-spin fa-3x fa-pull-left processing"></span>
|
||||
<span class="fa fa-refresh fa-spin fa-3x fa-pull-left text-info"></span>
|
||||
{% elif new_version %}
|
||||
<span class="fa fa-frown-o fa-3x fa-pull-left warning"></span>
|
||||
<span class="fa fa-frown-o fa-3x fa-pull-left text-warning"></span>
|
||||
{% else %}
|
||||
<span class="fa fa-smile-o fa-3x fa-pull-left normal"></span>
|
||||
<span class="fa fa-smile-o fa-3x fa-pull-left text-body-tertiary"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<p>
|
||||
|
||||
Reference in new issue
Block a user