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
Merge the two fullCalendar sass files into one
Henriette Dargee3d4ed3adac2
diff --git a/frontend/src/global_styles/content/_calendars.sass b/frontend/src/global_styles/content/_calendars.sassdeleted file mode 100644index 31c09d43960..00000000000--- a/frontend/src/global_styles/content/_calendars.sass+++ /dev/null@@ -1,68 +0,0 @@-html- --fc-event-resizer-thickness: 12px--// overrides for full-calendar so that it looks to belong into OpenProject-full-calendar- .fc-header-toolbar.fc-toolbar- .fc-button- @extend .button- height: 34px-- &.fc-today-button- margin: 0- margin-left: 0.5rem-- // ensure to have higher specificity than above extend- .fc-button-group- .fc-button- margin-right: 0- margin-bottom: 0- padding: 0.4em 0.65em-- &.fc-button-active- @extend .button, .-active- margin-right: 0 !important-- // The days in full calendar are anchor elements which we do not- // want to like like actual links- .fc-col-header-cell a, a.fc-daygrid-day-number- color: #000000- cursor: default-- &:hover- text-decoration: none-- .fc-event-title- max-width: 100%- @include text-shortener(false)-- .fc-timegrid-event-condensed .fc-event-title-container- white-space: nowrap- overflow: hidden-- .fc-header-toolbar- h2- @extend h2- font-size: 1.5rem-- .fc-event:hover .fc-event-resizer- display: flex- align-items: center- flex-direction: row-- &::before,- &::after- display: block- content: ''- width: 1px- height: 70%- background-color: rgba(255, 255, 255, 0.5)-- &::before- margin-right: 2px-- &-start- justify-content: flex-end-- &-end- justify-content: flex-startdiff --git a/frontend/src/global_styles/content/_index.sass b/frontend/src/global_styles/content/_index.sassindex 4eee80230a9..4dee040c4ba 100644--- a/frontend/src/global_styles/content/_index.sass+++ b/frontend/src/global_styles/content/_index.sass@@ -8,7 +8,6 @@@import editable_toolbar@import forms@import forms_mobile-@import calendars@import comments@import collapsible_section@import copy_to_clipboarddiff --git a/frontend/src/global_styles/vendor/_full_calendar.sass b/frontend/src/global_styles/vendor/_full_calendar.sassindex b8381e91c93..d493a3a46d9 100644--- a/frontend/src/global_styles/vendor/_full_calendar.sass+++ b/frontend/src/global_styles/vendor/_full_calendar.sass@@ -37,6 +37,16 @@td.fc-day-fribackground: rgb(205 205 205 / 20%)+ // The days in full calendar are anchor elements which we do not+ // want to like like actual links+ .fc-col-header-cell a,+ a.fc-daygrid-day-number+ color: #000000+ cursor: default++ &:hover+ text-decoration: none+// ------------------------ END: Calendar cells ------------------------// -------// ------------------------ BEGIN: Calendar events ------------------------@@ -75,14 +85,39 @@margin: 0 16pxline-height: 12px+ .fc-timegrid-event-condensed &+ white-space: nowrap+ overflow: hidden++ .fc-event-title+ max-width: 100%+ @include text-shortener(false)+.fc-event-maincolor: unset- .fc-event-resizer:before,- .fc-event-resizer:after- background: rgba(0,0,0,0.2)- margin: 0 -2px- max-height: 16px+ .fc-event:hover+ .fc-event-resizer+ display: flex+ align-items: center+ flex-direction: row++ &:before,+ &:after+ display: block+ content: ''+ width: 1px+ background: rgba(0,0,0,0.2)+ margin: 0 -2px+ height: 70%+ max-height: 16px++ &-start+ justify-content: flex-end++ &-end+ justify-content: flex-start+ margin-right: 2px// ------------------------ END: Calendar events ------------------------// -------@@ -90,14 +125,32 @@.fc-toolbar-titlefont-size: 16px- .fc-header-toolbar .fc-toolbar-chunk+ .fc-header-toolbar.fc-toolbar .fc-toolbar-chunk.fc-button+ height: 34pxbackground: transparent+ color: var(--button--font-color)+ border-color: var(--button--border-color)margin-bottom: 0&:focusbox-shadow: none+ // ensure to have higher specificity than above extend+ .fc-button-group+ .fc-button+ margin-right: 0+ margin-bottom: 0+ padding: 0.4em 0.65em++ &.fc-button-active+ @extend .button, .-active+ margin-right: 0 !important++ .fc-today-button+ margin: 0+ margin-left: 0.5rem+.fc-prev-button,.fc-next-buttonpadding: 4px