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

Style context menu like in OP

Henriette Dingered7db1bee68f
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/context_menu.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/context_menu.sass
new file mode 100644
index 00000000000..47b920fa616
--- /dev/null
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/context_menu.sass
@@ -0,0 +1,18 @@
+@import "layout/colors"
+@import "layout/drop_down"
+
+.xeokit-context-menu
+ @extend .dropdown
+ visibility: visible
+ border: none !important
+ box-shadow: none !important
+
+ &> ul
+ @extend .dropdown-menu
+ border-color: rgba(0, 0, 0, 0.2) !important
+ box-shadow: 1px 4px rgba(0, 0, 0, 0.15) !important
+
+
+ li
+ @extend .menu-item
+ border-bottom-color: rgba(0, 0, 0, 0.2) !important
\ No newline at end of file
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
index 61919f33ecb..9e81aaaddc4 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
@@ -2,10 +2,12 @@
@import "openproject/variables"
@import "openproject/mixins"
@import "fonts/openproject_icon_definitions"
+@import "fonts/openproject_icon_font"
@import "tabs"
@import "toolbar"
@import "loading_modal"
+@import "context_menu"
// The IFC viewer shall fill the viewport to the bottom.
// This is different to how we style #content else where.