Update hardware page colors (#30719)

Replaces yellow with a light gray
This commit is contained in:
Cody Baker 2021-10-26 15:08:05 -06:00 committed by GitHub
parent 44684a8dff
commit b764b6ce21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ function generate_selectors(elem) {
var available = available_systems_for_current_data_size.indexOf(systems[i]) != -1; var available = available_systems_for_current_data_size.indexOf(systems[i]) != -1;
var button_class = 'btn-outline-dark'; var button_class = 'btn-outline-dark';
if (system_kinds[i] == 'cloud' || system_kinds[i] == 'vps') { if (system_kinds[i] == 'cloud' || system_kinds[i] == 'vps') {
button_class = 'btn-outline-primary'; button_class = 'btn-light';
} else if (system_kinds[i] == 'desktop' || system_kinds[i] == 'laptop') { } else if (system_kinds[i] == 'desktop' || system_kinds[i] == 'laptop') {
button_class = 'btn-outline-secondary'; button_class = 'btn-outline-secondary';
}; };
@ -424,11 +424,11 @@ function generate_diagram() {
} }
table_row += '<div class="progress ml-2 my-2" style="height:1rem;"><div class="progress-bar '; table_row += '<div class="progress bg-light ml-2 my-2" style="height:1rem;"><div class="progress-bar ';
var bg = 'bg-dark'; var bg = 'bg-dark';
if (filtered_results[j].kind == 'cloud' || filtered_results[j].kind == 'vps') { if (filtered_results[j].kind == 'cloud' || filtered_results[j].kind == 'vps') {
bg = 'bg-primary'; bg = 'bg-medium';
} else if (filtered_results[j].kind == 'desktop' || filtered_results[j].kind == 'laptop' || filtered_results[j].kind == 'phone') { } else if (filtered_results[j].kind == 'desktop' || filtered_results[j].kind == 'laptop' || filtered_results[j].kind == 'phone') {
bg = 'bg-secondary'; bg = 'bg-secondary';
} }