mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
f248d95be2
* Fix badge color not affected * Generate user role css
13 lines
357 B
Plaintext
13 lines
357 B
Plaintext
<%- if Setting.custom_css.present? %>
|
|
<%= raw Setting.custom_css %>
|
|
|
|
<%- end %>
|
|
<%- UserRole.where(highlighted: true).select { |role| role.color.present? }.each do |role| %>
|
|
.user-role-<%= role.id %> {
|
|
--user-role-accent: <%= role.color %>;
|
|
--user-role-background: <%= role.color + '19' %>;
|
|
--user-role-border: <%= role.color + '80' %>;
|
|
}
|
|
|
|
<%- end %>
|