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

[#45708] Dragging over effect blue color is missing

Eric Schubert312e7be15dfe
diff --git a/frontend/src/global_styles/content/work_packages/shared/_file_section.sass b/frontend/src/global_styles/content/work_packages/shared/_file_section.sass
index 6b5f453fb7f..dd74097a88e 100644
--- a/frontend/src/global_styles/content/work_packages/shared/_file_section.sass
+++ b/frontend/src/global_styles/content/work_packages/shared/_file_section.sass
@@ -43,17 +43,26 @@
&--drop-box
@include unset-button-styles
display: flex
+ position: relative
justify-content: center
align-items: center
width: 100%
- margin-top: $spot-spacing-0_75
- border: 2px dashed var(--light-gray)
- border-radius: 2px
+ margin-top: $spot-spacing-0_25
padding: 20px
cursor: pointer
color: var(--light-gray)
background: rgba($spot-color-basic-white, 0.9)
+ &::after
+ display: block
+ content: ''
+ position: absolute
+ top: 0
+ height: 100%
+ left: 0
+ width: 100%
+ border: 2px dashed $spot-color-basic-gray-4
+
&_float
display: none
position: absolute
@@ -63,7 +72,6 @@
width: 100%
z-index: 1
background: transparent
- border: 0
&::after,
&::before
@@ -72,8 +80,8 @@
position: absolute
&::before
- top: -1 * $spot-spacing-0_75
- height: calc(100% + #{$spot-spacing-1_5})
+ top: 0
+ height: 100%
left: 0
width: 100%
@@ -82,21 +90,36 @@
&::after
z-index: -1
- top: 0
- height: 100%
- left: $spot-spacing-0_75
- width: calc(100% - #{$spot-spacing-1_5})
+ top: $spot-spacing-0_5
+ height: calc(100% - #{$spot-spacing-1})
+ left: $spot-spacing-0_5
+ width: calc(100% - #{$spot-spacing-1})
border: 2px dashed $spot-color-basic-gray-4
- border-radius: 2px
&_dragging
display: flex
- &_dragging-over::after
- background: $spot-color-basic-gray-6
+ &_dragging-over
+ color: $spot-color-main
+
+ &::before
+ background: rgba($spot-color-main-light, 0.9)
+
+ &::after
+ border: 2px dashed $spot-color-main
&_dragging-over:not(#{&}_float)
- background: $spot-color-basic-gray-6
+ background: rgba($spot-color-main-light, 0.9)
+
+ &::after
+ top: $spot-spacing-0_5
+ height: calc(100% - #{$spot-spacing-1})
+ left: $spot-spacing-0_5
+ width: calc(100% - #{$spot-spacing-1})
+ border: 2px dashed $spot-color-main
+
+ &_dragging-over &-text
+ color: $spot-color-main
&-text
cursor: pointer