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
Refactor op-files-tab styles a bit into less specific BEM selectors
Benjamin Bädorf658f6a9ab6fe
diff --git a/frontend/src/app/spot/styles/sass/components/list.sass b/frontend/src/app/spot/styles/sass/components/list.sassindex 065aa19346d..6a53f665795 100644--- a/frontend/src/app/spot/styles/sass/components/list.sass+++ b/frontend/src/app/spot/styles/sass/components/list.sass@@ -109,3 +109,4 @@#{$item-list} .spot-list--item-actionpadding-left: $spot-spacing-1 + ($i * $spot-spacing-1)+diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sassindex de120b8bfcf..11185c9657e 100644--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass@@ -26,23 +26,37 @@// See COPYRIGHT and LICENSE files for more details.//++-.op-files-tab+.op-tab-content--tab-section_no-header+ // Remove any top margin of the top most elements, if the header is not displayed.+.op-files-tab--file-upload- margin-top: $spot-spacing-0-75+ margin-top: 0++ .op-files-tab--file-list .op-files-tab--file-list-item:first-child+ margin-top: 0++- .op-tab-content--tab-section_no-header- // Remove any top margin of the top most elements, if the header is not displayed.- .op-files-tab--file-upload- margin-top: 0- .op-files-tab--file-list .op-files-tab--file-list-item:first-child- margin-top: 0- .op-files-tab--file-list+++++.op-files-tab+ &--file-upload+ margin-top: $spot-spacing-0-75++ &--file-listmargin-bottom: $spot-spacing-0-75- .op-files-tab--file-list-item- .op-files-tab--file-list-item-action+ &-item+ &_disabled+ .op-files-tab--file-list-item-action+ opacity: 0.5+ pointer-events: none++ &-actionpadding-left: 0padding-right: 0text-decoration: none@@ -50,42 +64,38 @@&.view-not-allowedopacity: 0.5- &.disabled- opacity: 0.5- pointer-events: none-&:hover.op-files-tab--file-list-item-titletext-decoration: underline- .op-files-tab--file-list-item-title- @include spot-body-small+ &-title+ @include spot-body-small- line-height: $spot-spacing-1-5- word-break: normal- @include text-shortener- padding-right: $spot_spacing-0-5+ line-height: $spot-spacing-1-5+ word-break: normal+ @include text-shortener+ padding-right: $spot_spacing-0-5- .op-files-tab--file-list-item-text- @include spot-caption()+ &-text+ @include spot-caption()- color: $spot-color-basic-gray-3- flex-shrink: 0+ color: $spot-color-basic-gray-3+ flex-shrink: 0- &:not(:last-child)- margin-right: $spot-spacing-0-5+ &:not(:last-child)+ margin-right: $spot-spacing-0-5- .op-files-tab--file-list-item-avatar+ &-avatardisplay: inline-block- .op-files-tab--file-list-item-floating-actions+ &-floating-actionspadding-right: 0- .op-files-tab--file-list-item-floating-wrapper+ &-floating-wrapper&_disabled:hoverbackground: none- .op-files-tab--file-list-item-floating-text+ &-floating-text@include spot-body-small()padding-right: $spot-spacing-0-25