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

Correct broken style selectors

Henriette Dinger63c033ef9997
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
index 5c589f70e3e..912c374ed3f 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
@@ -13,6 +13,14 @@
.xeokit-tab
flex: 1 1 auto
+ .active
+ .xeokit-tab-content
+ display: block
+
+ .xeokit-tab-button
+ border-bottom: 2px solid
+ @include varprop(border-color, main-menu-font-color)
+
// As the button and the content are in the same container,
// we have to position the content absolutely.
// Otherwise we could not show the buttons next to each other.
@@ -23,23 +31,20 @@
padding: 1.5em 15px
width: 100%
- .active &
- display: block
-
// Override inline style of xeokit
.xeokit-models,
.xeokit-objects,
.xeokit-classes
overflow: hidden !important
- .xeokit-btn-group
- margin-bottom: 10px
+ .xeokit-btn-group
+ margin-bottom: 10px
- .xeokit-btn
- @include varprop(color, main-menu-font-color)
- background-color: transparent
- border: 1px solid
- @include varprop(border-color, main-menu-font-color)
+ .xeokit-btn
+ @include varprop(color, main-menu-font-color)
+ background-color: transparent
+ border: 1px solid
+ @include varprop(border-color, main-menu-font-color)
.xeokit-tab-button
display: inline-block
@@ -47,10 +52,6 @@
font-weight: bold
padding: 0 5px !important
- .active &
- border-bottom: 2px solid
- @include varprop(border-color, main-menu-font-color)
-
&:hover
border-bottom: 2px solid white