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

Include fonts only in ifc viewer where needed

Oliver Günther4baeb306365e
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass
index e2c93bf4aab..5e97ef4bbb3 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass
+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass
@@ -1,6 +1,10 @@
// Global helpers
@import "helpers"
+// Need to import the icon mixins
+@import "~global_styles/fonts/openproject_icon_definitions"
+@import "~global_styles/fonts/openproject_icon_font"
+
@import "tabs"
@import "toolbar"
@import "loading_modal"
diff --git a/frontend/src/assets/sass/_helpers.sass b/frontend/src/assets/sass/_helpers.sass
index 7b9116def54..0be97a8b3e8 100644
--- a/frontend/src/assets/sass/_helpers.sass
+++ b/frontend/src/assets/sass/_helpers.sass
@@ -1,4 +1,7 @@
+/**
+ * Ensure you're exposing only mixins and sass stuff here
+ * as all CSS output will be duplicated in EVERY component
+ * importing these helpers!
+ */
@import "~global_styles/openproject/_mixins"
@import "~global_styles/content/drag_and_drop"
-@import "~global_styles/fonts/openproject_icon_definitions"
-@import "~global_styles/fonts/openproject_icon_font"
diff --git a/frontend/src/global_styles/content/drag_and_drop.sass b/frontend/src/global_styles/content/drag_and_drop.sass
index 65540555d53..bdf668c93dd 100644
--- a/frontend/src/global_styles/content/drag_and_drop.sass
+++ b/frontend/src/global_styles/content/drag_and_drop.sass
@@ -30,15 +30,6 @@
// As there will hopefully also be a shared style for resizing, and as those two will hopefully also share some styles
// there is also the 'modifying' grouping, which could serve as the basis for the two.
-@mixin modifying--placeholder
- border: 1px dashed var(--primary-color)
- pointer-events: none
- *
- visibility: hidden
-
-@mixin d_n_d--preview
- box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1)
-
// There does not seem to be a way to add a class to the preview element
// added by cdk drag.
.cdk-drag-preview
diff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sass
index c850d45cd46..f86a8200324 100644
--- a/frontend/src/global_styles/openproject/_mixins.sass
+++ b/frontend/src/global_styles/openproject/_mixins.sass
@@ -188,3 +188,12 @@ $scrollbar-size: 10px
padding-right: 15px
.work-packages--filters-optional-container
margin-right: 15px
+
+@mixin modifying--placeholder
+ border: 1px dashed var(--primary-color)
+ pointer-events: none
+ *
+ visibility: hidden
+
+@mixin d_n_d--preview
+ box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1)
\ No newline at end of file
diff --git a/vendor/openproject-icon-font/generate.js b/vendor/openproject-icon-font/generate.js
index 6f071a77731..b74f45e8e9b 100644
--- a/vendor/openproject-icon-font/generate.js
+++ b/vendor/openproject-icon-font/generate.js
@@ -24,4 +24,6 @@ webfontsGenerator({
if (error) {
console.log('Failed to build icon font. ', error);
}
+
+ console.log('Failed to build icon font. ', error);
});