mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 12:18:06 +01:00
f248d95be2
* Fix badge color not affected * Generate user role css
12 lines
357 B
Text
12 lines
357 B
Text
<%- 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 %>
|