about summary refs log tree commit diff
path: root/app/views/custom_css/show.css.erb
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-07-19 08:06:11 +0900
committerGitHub <noreply@github.com>2022-07-19 01:06:11 +0200
commitf248d95be26ceca3c2d717fa71557a56e975fece (patch)
treee3f193d0b7a7c980b5e0b95d4c4881262a15ba3d /app/views/custom_css/show.css.erb
parentec83e2a35ee5f3a68ec0f8f5285e45d24d4d1da6 (diff)
Fix badge color not affected (#18826)
* Fix badge color not affected

* Generate user role css
Diffstat (limited to 'app/views/custom_css/show.css.erb')
-rw-r--r--app/views/custom_css/show.css.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/custom_css/show.css.erb b/app/views/custom_css/show.css.erb
index 9cd38fb37..bcbe81962 100644
--- a/app/views/custom_css/show.css.erb
+++ b/app/views/custom_css/show.css.erb
@@ -5,6 +5,8 @@
 <%- 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 %>