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

everything that is deprecated is in a separate folder named deprecated

Behrokh Satarnejade8351145bdcf
diff --git a/lookbook/docs/patterns/modals.md.erb b/lookbook/docs/patterns/deprecated/modals.md.erb
similarity index 100%
rename from lookbook/docs/patterns/modals.md.erb
rename to lookbook/docs/patterns/deprecated/modals.md.erb
diff --git a/lookbook/docs/styles/01-typography.md.erb b/lookbook/docs/styles/deprecated/01-typography.md.erb
similarity index 100%
rename from lookbook/docs/styles/01-typography.md.erb
rename to lookbook/docs/styles/deprecated/01-typography.md.erb
diff --git a/lookbook/docs/styles/deprecated/02-op-icons.md.erb b/lookbook/docs/styles/deprecated/02-op-icons.md.erb
new file mode 100644
index 00000000000..61e818a5027
--- /dev/null
+++ b/lookbook/docs/styles/deprecated/02-op-icons.md.erb
@@ -0,0 +1,53 @@
+---
+title: OP Icon Font
+---
+
+<%= include_spot_assets %>
+
+# OpenProject icon font
+
+For use outside primer pages, use these icon fonts
+
+<style>
+.icons {
+ display: flex;
+ flex-wrap: wrap;
+ margin-right: -1rem;
+}
+
+.icons--icon {
+ border-radius: 2px;
+ border: 1px solid #eeeeee;
+ margin-bottom: 1rem;
+ margin-right: 1rem;
+ display: flex;
+ flex-direction: column;
+ flex-basis: 120px;
+ flex-grow: 0;
+ flex-shrink: 0;
+ min-width: 80px;
+ max-width: 180px;
+ text-align: center;
+ padding: 0.5rem;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.icons--name {
+ font-weight: bold;
+ margin-top: 0.5rem;
+}
+</style>
+
+<div class="icons">
+<% Dir[Rails.root.join('frontend/src/app/spot/icon-font/icons/*').to_s].each do |path| %>
+<% name = File.basename(path, '.*') %>
+<div class="icons--icon">
+ <div class="icons--preview">
+ <i class="icon icon-<%= name %>"></i>
+ </div>
+ <div class="icons--name"><%= name %></div>
+</div>
+<% end %>
+</div>
diff --git a/lookbook/docs/styles/03-colors.md.erb b/lookbook/docs/styles/deprecated/03-colors.md.erb
similarity index 100%
rename from lookbook/docs/styles/03-colors.md.erb
rename to lookbook/docs/styles/deprecated/03-colors.md.erb
diff --git a/lookbook/docs/styles/04-spacings.md.erb b/lookbook/docs/styles/deprecated/04-spacings.md.erb
similarity index 100%
rename from lookbook/docs/styles/04-spacings.md.erb
rename to lookbook/docs/styles/deprecated/04-spacings.md.erb
diff --git a/lookbook/docs/styles/05-shadows.md.erb b/lookbook/docs/styles/deprecated/05-shadows.md.erb
similarity index 100%
rename from lookbook/docs/styles/05-shadows.md.erb
rename to lookbook/docs/styles/deprecated/05-shadows.md.erb
diff --git a/lookbook/docs/styles/06-focus.md.erb b/lookbook/docs/styles/deprecated/06-focus.md.erb
similarity index 100%
rename from lookbook/docs/styles/06-focus.md.erb
rename to lookbook/docs/styles/deprecated/06-focus.md.erb