1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-31 06:53:18 +09:00
YuruToot/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 %>