Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove css.erb no longer in use

Oliver Günther2366996809ed
diff --git a/frontend/src/global_styles/openproject/_plugins.scss.erb b/frontend/src/global_styles/openproject/_plugins.scss.erb
deleted file mode 100644
index 88eca615243..00000000000
--- a/frontend/src/global_styles/openproject/_plugins.scss.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<% Redmine::Plugin.all.collect do |plugin| %>
- <% plugin.registered_global_assets[:css].each do |path| %>
- @import "<%= path %>";
- <% end %>
-<% end %>
diff --git a/frontend/src/global_styles/openproject/_variables.scss.erb b/frontend/src/global_styles/openproject/_variables.scss.erb
deleted file mode 100644
index c9811a4dfeb..00000000000
--- a/frontend/src/global_styles/openproject/_variables.scss.erb
+++ /dev/null
@@ -1,38 +0,0 @@
-<%#
-Depend on the design file so that this is recompiled on core changes.
-Doesn't work for theme plugins, sorry :-/ just update the core design.rb as well to reload!
-%>
-<% depend_on Rails.root.join('lib', 'open_project', 'custom_styles', 'design.rb') %>
-<%# Todo for task #33508: Replace %>
-<%#
-Set defaults for the following variables
-primary-color
-primary-color-dark
-alternative-color
-This allows us to dynamically define CSS4 + Sass variables from a single map
-%>
-<% ::OpenProject::CustomStyles::Design.variables.each do |var, hexcode| %>
-$<%= var %>: <%= hexcode %>;
-<% end %>
-
-:root {
-<% ::OpenProject::CustomStyles::Design.variables.each do |var, definition| %>
- <% css4definition = definition.gsub(/\$([\w-]+)/, 'var(--\1)') %>
- --<%= var %>: <%= css4definition %>;
-<% end %>
-}
-
-<%# Construct a sass map to lookup variables in the mixin below %>
-$variable-map: (
-<% ::OpenProject::CustomStyles::Design.variables.each do |var, definition| %>
- <%= var %>: #{<%= definition %>},
-<% end %>
-);
-
-
-// use CSS4 + Sass variable fallback for the given property
-// e.g., @include varprop(background-color, primary-color)
-@mixin varprop($prop, $name, $suffix:"") {
- #{$prop}: map-get($variable-map, $name) unquote($suffix);
- #{$prop}: var(--#{$name}) unquote($suffix);
-}