1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-26 10:36:34 +00:00
mastodon/app/views/custom_css/show.css.erb
Jeong Arm f248d95be2
Fix badge color not affected ()
* Fix badge color not affected

* Generate user role css
2022-07-19 01:06:11 +02:00

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 %>