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

Use OP tooltips for button group

Henriette Dinger1da5d964859c
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 9e81aaaddc4..c7d6363a51c 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
@@ -8,6 +8,7 @@
@import "toolbar"
@import "loading_modal"
@import "context_menu"
+@import "tooltips"
// The IFC viewer shall fill the viewport to the bottom.
// This is different to how we style #content else where.
@@ -71,6 +72,7 @@
margin-right: .5rem
.xeokit-btn
+ position: relative
background-color: $button--background-color
vertical-align: middle
padding: .375rem .75rem
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tooltips.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tooltips.sass
new file mode 100644
index 00000000000..a36f852a3ff
--- /dev/null
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tooltips.sass
@@ -0,0 +1,11 @@
+@import "content/tooltips"
+
+[data-tippy-content]
+ @extend .tooltip--bottom
+ &:after
+ @extend [data-tooltip]:after
+ content: attr(data-tippy-content)
+ opacity: 1
+
+ &:hover:after
+ visibility: visible
\ No newline at end of file