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

Unify modal paddings and clean up a bit

Inga Mai1f13268cda04
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass
index a9b8b1ad350..868bd6bebca 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass
@@ -1,9 +1,2 @@
-.op-modal--modal-body
- padding: 0
-
- .onboarding--video-text
- margin-bottom: 1.25rem
-
-.op-modal--modal-footer
- margin: 0
- padding: 0
\ No newline at end of file
+.onboarding--video-text
+ margin-bottom: 1.25rem
\ No newline at end of file
diff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.sass b/frontend/src/app/modules/time_entries/shared/modal/base.modal.sass
index f6babfaab74..fb1c36bc3dc 100644
--- a/frontend/src/app/modules/time_entries/shared/modal/base.modal.sass
+++ b/frontend/src/app/modules/time_entries/shared/modal/base.modal.sass
@@ -2,12 +2,6 @@
max-width: 90vw
width: 800px
-.op-modal--modal-footer
- margin-top: 2em
-
- .button
- margin-bottom: 0
-
.icon-log_time
&:before
padding-right: 6px
\ No newline at end of file
diff --git a/frontend/src/global_styles/content/_modal.sass b/frontend/src/global_styles/content/_modal.sass
index 292945ca6d3..1c6a191a63a 100644
--- a/frontend/src/global_styles/content/_modal.sass
+++ b/frontend/src/global_styles/content/_modal.sass
@@ -90,7 +90,6 @@ $ng-modal-image-height: 135px
.op-modal--modal-body
margin: 1em 0
- padding: 0 1.5rem
max-height: calc(100vh - var(--header-height) - var(--header-height))
overflow: auto
@include styled-scroll-bar
@@ -100,10 +99,13 @@ $ng-modal-image-height: 135px
margin-bottom: 0px
.op-modal--modal-footer
- padding: 0 1.5rem
+ margin: 1.5rem 0
- button:last-of-type
- margin-right: 0
+ button
+ margin-bottom: 0
+
+ &:last-of-type
+ margin-right: 0
.op-modal--modal-close-button
position: absolute
@@ -119,6 +121,10 @@ $ng-modal-image-height: 135px
.op-modal--modal-container.-highlight
padding: 0
+ .op-modal--modal-body,
+ .op-modal--modal-footer
+ padding: 0 1.5rem
+
// Overridden header styles
.op-modal--modal-header
padding-left: 1.5rem
@@ -129,9 +135,6 @@ $ng-modal-image-height: 135px
*
color: var(--header-item-font-color)
- .op-modal--modal-footer
- margin: 1em 0
-
.op-modal--modal-close-button
top: 0
color: var(--header-item-font-color)
diff --git a/frontend/src/global_styles/content/work_packages/_table_configuration_modal.sass b/frontend/src/global_styles/content/work_packages/_table_configuration_modal.sass
index 7c57820fe20..e751b7657b2 100644
--- a/frontend/src/global_styles/content/work_packages/_table_configuration_modal.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_configuration_modal.sass
@@ -14,7 +14,7 @@
margin-top: 0px
.modal--form-actions
- margin: 1em 0
+ @extend .op-modal--modal-footer
.advanced-filters--filter,
.advanced-filters--add-filter
diff --git a/frontend/src/global_styles/openproject/_onboarding.sass b/frontend/src/global_styles/openproject/_onboarding.sass
index 456c338fc57..34f01ea79a3 100644
--- a/frontend/src/global_styles/openproject/_onboarding.sass
+++ b/frontend/src/global_styles/openproject/_onboarding.sass
@@ -49,4 +49,4 @@
justify-content: flex-end
.button
- margin: 0 1.5rem 0 1rem
+ margin-left: 1rem