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
Make new full calendar style accessible for all calendar instances and not only team planner
Henriette Dargee7e68dbae66a
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sassindex ee50e35701a..6eea31f8f19 100644--- a/frontend/src/global_styles/content/modules/_team_planner.sass+++ b/frontend/src/global_styles/content/modules/_team_planner.sass@@ -1,81 +1,3 @@.router--team-planner#contentheight: 100%-- // ------------------------ BEGIN: Full calendar overwrite ------------------------- .fc- font-size: 14px-- // ------------------------ BEGIN: Calendar cells ------------------------- .fc-datagrid-cell-cushion,- .fc-timeline-slot-cushion- padding: 12px 16px-- .fc-timeline-lane-frame- padding: 4px 0-- .fc-resource-timeline-divider- width: 1px- background: none- border: none- cursor: unset-- // ------------------------ END: Calendar cells ------------------------- // -------- // ------------------------ BEGIN: Calendar events ------------------------- .fc-timeline-event- padding-top: 5px- padding-bottom: 5px- border-radius: 5px- margin-bottom: 4px- background-color: var(--timeline--type-fallback-color)- border-color: var(--timeline--type-fallback-color)- color: #000000-- &:before,- &:after- padding-right: 4px-- .fc-event-title-container- margin: 0 16px- line-height: 12px-- .fc-event-main- color: unset-- // ------------------------ END: Calendar events ------------------------- // -------- // ------------------------ BEGIN: Calendar toolbar ------------------------- .fc-toolbar-title- font-size: 16px-- .fc-header-toolbar .fc-toolbar-chunk- .fc-button- @extend .button, .-transparent, .-round- padding: 8px 12px- margin: 0 8px 0 0-- &:focus- box-shadow: none-- .fc-prev-button,- .fc-next-button- padding: 4px- font-size: 8px- height: 32px- width: 32px-- .fc-prev-button .fc-icon- @include icon-font-common- @extend .icon-arrow-left1-- .fc-next-button .fc-icon- @include icon-font-common- @extend .icon-arrow-right3-- thead .fc-scroller- @include no-visible-scroll-bar-- // ------------------------ END: Calendar toolbar ------------------------- // -------- // ------------------------ END: Full calendar overwrite ------------------------diff --git a/frontend/src/global_styles/vendor/_full_calendar.sass b/frontend/src/global_styles/vendor/_full_calendar.sassnew file mode 100644index 00000000000..573e49c4695--- /dev/null+++ b/frontend/src/global_styles/vendor/_full_calendar.sass@@ -0,0 +1,89 @@+// Do no simply remove this selector without proper replacement as it is needed for specificity+#content-wrapper+ // ------------------------ BEGIN: Full calendar overwrite ------------------------+ .fc+ font-size: 14px++ // ------------------------ BEGIN: Calendar cells ------------------------+ .fc-datagrid-cell-cushion,+ .fc-timeline-slot-cushion,+ .fc-col-header-cell-cushion+ padding: 12px 16px++ .fc-timeline-lane-frame+ padding: 4px 0++ .fc-resource-timeline-divider+ width: 1px+ background: none+ border: none+ cursor: unset++ // ------------------------ END: Calendar cells ------------------------+ // -------+ // ------------------------ BEGIN: Calendar events ------------------------+ .fc-timeline-event,+ .fc-daygrid-event+ padding-top: 5px+ padding-bottom: 5px+ border-radius: 5px+ margin-bottom: 4px+ background-color: var(--timeline--type-fallback-color)+ border-color: var(--timeline--type-fallback-color)+ color: #000000++ &:before,+ &:after+ padding-right: 4px++ .fc-event-title-container+ margin: 0 16px+ line-height: 12px++ .fc-event-main+ color: unset++ // ------------------------ END: Calendar events ------------------------+ // -------+ // ------------------------ BEGIN: Calendar toolbar ------------------------+ .fc-toolbar-title+ font-size: 16px++ .fc-header-toolbar .fc-toolbar-chunk+ .fc-button+ background: transparent++ &:first-of-type+ border-bottom-left-radius: 2rem+ border-top-left-radius: 2rem++ &:last-of-type+ border-bottom-right-radius: 2rem+ border-top-right-radius: 2rem++ &:focus+ box-shadow: none++ .fc-prev-button,+ .fc-next-button+ border-radius: 2rem+ padding: 4px+ margin: 0 8px 0 0+ font-size: 8px+ height: 32px+ width: 32px++ .fc-prev-button .fc-icon+ @include icon-font-common+ @extend .icon-arrow-left1++ .fc-next-button .fc-icon+ @include icon-font-common+ @extend .icon-arrow-right3++ thead .fc-scroller+ @include no-visible-scroll-bar++ // ------------------------ END: Calendar toolbar ------------------------+ // -------+ // ------------------------ END: Full calendar overwrite ------------------------diff --git a/frontend/src/global_styles/vendor/_index.sass b/frontend/src/global_styles/vendor/_index.sassindex 6c523e9851b..e235b0b4e4e 100644--- a/frontend/src/global_styles/vendor/_index.sass+++ b/frontend/src/global_styles/vendor/_index.sass@@ -3,3 +3,4 @@@import dragula@import enjoyhint@import ngselect+@import full_calendar