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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
refactoring the stylesheets in bim
bsatarnejaddcc2ddf03be1
diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.htmlindex 48607e42b48..649f99d5ded 100644--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html@@ -1,4 +1,4 @@-<ng-container *ngIf="shouldShowGroup()">+<ng-container *ngIf="shouldShowGroup()" class="op-bcf-wp-attribute-group"><div class="attributes-group description-group"><div class="attributes-group--header"><div class="attributes-group--header-container">diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sassindex 70bf2aeec65..cd7505f5d95 100644--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass@@ -1,44 +1,45 @@-.bcf--viewpoints- clear: both+.op-bcf-wp-attribute-group+ .bcf--viewpoints+ clear: both-ngx-gallery- display: inline-block+ ngx-gallery+ display: inline-block-ngx-gallery ::ng-deep- ngx-gallery-thumbnails .ngx-gallery-arrow- color: var(--content-link-color)+ ngx-gallery ::ng-deep+ ngx-gallery-thumbnails .ngx-gallery-arrow+ color: var(--content-link-color)- .ngx-gallery-arrow.ngx-gallery-disabled- display: none+ .ngx-gallery-arrow.ngx-gallery-disabled+ display: none- // Add small background for gallery icons to be sure they are always visible- .ngx-gallery-icons-wrapper- background: rgba(255, 255, 255, 0.5)- padding: 5px- .ngx-gallery-icon- margin-top: 0+ // Add small background for gallery icons to be sure they are always visible+ .ngx-gallery-icons-wrapper+ background: rgba(255, 255, 255, 0.5)+ padding: 5px+ .ngx-gallery-icon+ margin-top: 0- ngx-gallery-action:last-of-type .ngx-gallery-icon- margin-right: 0+ ngx-gallery-action:last-of-type .ngx-gallery-icon+ margin-right: 0- .ngx-gallery-thumbnail- background-color: white- &.ngx-gallery-clickable- .ngx-gallery-icon- font-size: 1.25rem- color: var(--content-link-color)+ .ngx-gallery-thumbnail+ background-color: white+ &.ngx-gallery-clickable+ .ngx-gallery-icon+ font-size: 1.25rem+ color: var(--content-link-color)- // Disable red border on active thumbnails- .ngx-gallery-active,- .ngx-gallery-thumbnail- border: 1px solid #E7E7E7 !important+ // Disable red border on active thumbnails+ .ngx-gallery-active,+ .ngx-gallery-thumbnail+ border: 1px solid #E7E7E7 !important- .ngx-gallery-preview-img- background-color: white+ .ngx-gallery-preview-img+ background-color: white- // Decrease opacity of background to avoid content conflicts- ngx-gallery-preview- background: rgba(0, 0, 0, 0.8) !important+ // Decrease opacity of background to avoid content conflicts+ ngx-gallery-preview+ background: rgba(0, 0, 0, 0.8) !important- a:hover- color: #FFFFFF+ a:hover+ color: #FFFFFFdiff --git a/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.html b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.htmlindex b51880f89ca..24972c59ee8 100644--- a/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.html+++ b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.html@@ -1,37 +1,39 @@-<div class="result-overlay"- *ngIf="(showResultOverlay$ | async) && showTableView"></div>+<div class="op-bcf-list-container">+ <div class="op-bcf-list-container--result-overlay"+ *ngIf="(showResultOverlay$ | async) && showTableView"></div>-<!-- TABLE + TIMELINE horizontal split -->-<div class="work-packages-split-view--tabletimeline-container"- [ngClass]="{ '-with-resizer': showResizerInCardView() }"- *ngIf="tableInformationLoaded && showTableView">- <wp-resizer elementClass="work-packages-partitioned-page--content-right"- localStorageKey="openProject-splitViewFlexBasis">- </wp-resizer>+ <!-- TABLE + TIMELINE horizontal split -->+ <div class="op-bcf-list-container--work-packages-split-view--tabletimeline-container"+ [ngClass]="{ '-with-resizer': showResizerInCardView() }"+ *ngIf="tableInformationLoaded && showTableView">+ <wp-resizer elementClass="work-packages-partitioned-page--content-right"+ localStorageKey="openProject-splitViewFlexBasis">+ </wp-resizer>- <wp-table [projectIdentifier]="CurrentProject.identifier"- [configuration]="wpTableConfiguration"- (itemClicked)="handleWorkPackageClicked($event)"- (stateLinkClicked)="openStateLink($event)"- class="work-packages-split-view--tabletimeline-content">- </wp-table>-</div>+ <wp-table [projectIdentifier]="CurrentProject.identifier"+ [configuration]="wpTableConfiguration"+ (itemClicked)="handleWorkPackageClicked($event)"+ (stateLinkClicked)="openStateLink($event)"+ class="work-packages-split-view--tabletimeline-content">+ </wp-table>+ </div>-<!-- GRID representation of the WP -->-<div *ngIf="!showTableView"- class="work-packages--card-view-container"- [ngClass]="{ '-with-resizer': showResizerInCardView() }" >- <wp-grid [configuration]="wpTableConfiguration"- [showResizer]="showResizerInCardView()"- (itemClicked)="handleWorkPackageCardClicked($event)"- (stateLinkClicked)="openStateLink($event)"- resizerClass="work-packages-partitioned-page--content-right"- resizerStorageKey="openProject-splitViewFlexBasis">- </wp-grid>-</div>+ <!-- GRID representation of the WP -->+ <div *ngIf="!showTableView"+ class="op-bcf-list-container--work-packages--card-view-container"+ [ngClass]="{ '-with-resizer': showResizerInCardView() }" >+ <wp-grid [configuration]="wpTableConfiguration"+ [showResizer]="showResizerInCardView()"+ (itemClicked)="handleWorkPackageCardClicked($event)"+ (stateLinkClicked)="openStateLink($event)"+ resizerClass="work-packages-partitioned-page--content-right"+ resizerStorageKey="openProject-splitViewFlexBasis">+ </wp-grid>+ </div>-<!-- Footer -->-<div class="work-packages-split-view--tabletimeline-footer hide-when-print"- *ngIf="tableInformationLoaded">- <wp-table-pagination></wp-table-pagination>-</div>+ <!-- Footer -->+ <div class="work-packages-split-view--tabletimeline-footer hide-when-print"+ *ngIf="tableInformationLoaded">+ <wp-table-pagination></wp-table-pagination>+ </div>+</div>\ No newline at end of filediff --git a/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sassindex 2d0a8cd1acf..88acec2bd8d 100644--- a/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass+++ b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass@@ -1,35 +1,36 @@@import "src/assets/sass/helpers"-.result-overlay- @include overlay-background- background-color: #FFFFFF- opacity: 0.5+.op-bcf-list-container+ &--result-overlay+ @include overlay-background+ background-color: #FFFFFF+ opacity: 0.5-.work-packages--card-view-container- width: 100%- overflow: auto- padding-bottom: 5px- @include styled-scroll-bar+ &--work-packages--card-view-container+ width: 100%+ overflow: auto+ padding-bottom: 5px+ @include styled-scroll-bar- @media screen and (min-width: 679px)- &.-with-resizer- padding-left: 10px+ @media screen and (min-width: 679px)+ &.-with-resizer+ padding-left: 10px- @media screen and (max-width: 679px)- // Ensure the WP cards span the complete width on mobile- // --> Move scrollbar out of visible area- min-width: calc(100vw + 10px)+ @media screen and (max-width: 679px)+ // Ensure the WP cards span the complete width on mobile+ // --> Move scrollbar out of visible area+ min-width: calc(100vw + 10px)-.work-packages-split-view--tabletimeline-container- display: flex- flex: 1 1 auto- @include styled-scroll-bar+ &--work-packages-split-view--tabletimeline-container+ display: flex+ flex: 1 1 auto+ @include styled-scroll-bar- @media screen and (min-width: 679px)- &.-with-resizer- padding-left: 10px+ @media screen and (min-width: 679px)+ &.-with-resizer+ padding-left: 10px- @media screen and (max-width: 679px)- // Ensure the WP cards span the complete width on mobile- // --> Move scrollbar out of visible area- min-width: calc(100vw + 10px)\ No newline at end of file+ @media screen and (max-width: 679px)+ // Ensure the WP cards span the complete width on mobile+ // --> Move scrollbar out of visible area+ min-width: calc(100vw + 10px)\ No newline at end of filediff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.htmlindex a0a68560393..13cf1f78196 100644--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html@@ -1,5 +1,5 @@<div #outerContainer- class="ifc-model-viewer">+ class="op-ifc-viewer"><div *ngIf="modelCount === 0" class="notification-box -info"><div class="notification-box--content">@@ -15,21 +15,25 @@</div></div>- <div class="ifc-model-viewer--container xeokit-busy-modal-backdrop">+ <div class="op-ifc-viewer--container xeokit-busy-modal-backdrop"><div *ngIf="modelCount && !keyboardEnabled"- class="ifc-model-viewer--focus-warning">- <a class="ifc-model-viewer--keyboard-disabled-icon icon-no-color icon-input-disabled"+ class="op-ifc-viewer--focus-warning">+ <a class="op-ifc-viewer--keyboard-disabled-icon icon-no-color icon-input-disabled"(mousedown)="enableFromIcon($event)"[attr.title]="text.keyboard_input_disabled"></a></div>- <div class="ifc-model-viewer--toolbar-container"></div>+ <div class="op-ifc-viewer--toolbar-container"+ data-qa-selector="op-ifc-viewer--toolbar-container"+ ></div><canvas #modelCanvas- class="ifc-model-viewer--model-canvas"+ class="op-ifc-viewer--model-canvas"+ data-qa-selector="op-ifc-viewer--model-canvas"tabindex="0"></canvas></div>- <canvas class="ifc-model-viewer--nav-cube-canvas"></canvas>+ <canvas class="op-ifc-viewer--nav-cube-canvas"+ data-qa-selector="op-ifc-viewer--nav-cube-canvas" ></canvas></div>\ No newline at end of filediff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sassindex cf13925b896..ea79bb425a2 100644--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass@@ -1,58 +1,58 @@@import "src/assets/sass/helpers"-.ifc-model-viewer+.op-ifc-viewerheight: 100%.notification-boxposition: absoluteright: 10px-.ifc-model-viewer--nav-cube-canvas- position: absolute- width: 200px- height: 200px- bottom: 0- right: 0- z-index: 10--.ifc-model-viewer--section-planes-overview-canvas- position: absolute- width: 250px- height: 250px- top: 50px- right: 50px- z-index: 2000--.ifc-model-viewer--container- position: relative- width: 100%- height: 100%- padding-bottom: 10px- overflow: hidden- min-width: 420px--.ifc-model-viewer--model-canvas- width: 100%- height: 100%-- &:focus- outline: none+ &--nav-cube-canvas+ position: absolute+ width: 200px+ height: 200px+ bottom: 0+ right: 0+ z-index: 10-.ifc-model-viewer--focus-warning- @include without-link-styling- position: absolute- top: 6px- right: 395px+ &--section-planes-overview-canvas+ position: absolute+ width: 250px+ height: 250px+ top: 50px+ right: 50px+ z-index: 2000++ &--container+ position: relative+ width: 100%+ height: 100%+ padding-bottom: 10px+ overflow: hidden+ min-width: 420px++ &--model-canvas+ width: 100%+ height: 100%++ &:focus+ outline: none++ &--focus-warning+ @include without-link-styling+ position: absolute+ top: 6px+ right: 395px-.ifc-model-viewer--keyboard-disabled-icon- font-size: 20px+ &--keyboard-disabled-icon+ font-size: 20px-.ifc-model-viewer--toolbar-container,-.ifc-model-viewer--focus-warning- margin-top: 10px- margin-right: 5px+ &--toolbar-container,+ &--focus-warning+ margin-top: 10px+ margin-right: 5px@media only screen and (max-width: 679px)- .ifc-model-viewer--nav-cube-canvas,- .ifc-model-viewer--focus-warning+ .op-ifc-viewer--nav-cube-canvas,+ .op-ifc-viewer--focus-warningdisplay: nonediff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.tsindex e75f530b5b4..bf977b19583 100644--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts@@ -94,10 +94,10 @@ export class IFCViewerComponent implements OnInit, OnDestroy {).subscribe((manageIfcModelsAllowed) => {this.ifcViewer.newViewer({- canvasElement: element.find('.ifc-model-viewer--model-canvas')[0], // WebGL canvas- explorerElement: jQuery('.ifc-model-viewer--tree-panel')[0], // Left panel- toolbarElement: element.find('.ifc-model-viewer--toolbar-container')[0], // Toolbar- navCubeCanvasElement: element.find('.ifc-model-viewer--nav-cube-canvas')[0],+ canvasElement: element.find('[data-qa-selector="op-ifc-viewer--model-canvas"]')[0], // WebGL canvas+ explorerElement: jQuery('[data-qa-selector="op-ifc-model-viewer--tree-panel"]')[0], // Left panel+ toolbarElement: element.find('[data-qa-selector="op-ifc-viewer--toolbar-container"]')[0], // Toolbar+ navCubeCanvasElement: element.find('[data-qa-selector="op-ifc-viewer--nav-cube-canvas"]')[0],busyModelBackdropElement: element.find('.xeokit-busy-modal-backdrop')[0],enableEditModels: manageIfcModelsAllowed,},diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sassindex 38c8098325f..015151de842 100644--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sass+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sass@@ -1,5 +1,5 @@// -------------------------- GENERIC ---------------------------.ifc-model-viewer--tree-panel+.op-ifc-viewer--tree-panelpadding: 0 15pxcolor: var(--main-menu-font-color)diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erbindex a0430aaf3d6..cc6232e2976 100644--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb@@ -1 +1 @@-<div class="ifc-model-viewer--tree-panel active"></div>+<div class="op-ifc-model-viewer--tree-panel active" data-qa-selector="op-ifc-model-viewer--tree-panel"></div>