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

ensure te-calendar styles are only applied there

ulferts16b876dc74ab
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
index 6fff9f52cb9..fa1b0247dd1 100644
--- a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
+++ b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
@@ -1,112 +1,113 @@
-full-calendar
- overflow-x: auto
-
- .fc-view
- min-width: 800px
-
- // Move the days header to the bottom.
- thead
- display: table-footer-group
-
- // Remove the borders at the left and of the bottom
- th.fc-day,
- th.fc-timegrid-axis
- border-bottom: none
-
- table.fc-scrollgrid.fc-scrollgrid-liquid
- border-left: none
-
- .fc-event, .fc-bgevent
- border-radius: 0
- margin-right: 8px
- margin-left: 8px
-
- .fc-head-container
- border-color: white
-
- .fc-day-header
- padding-top: 5px
-
- .fc-widget-content
- border-left-color: white
-
- .fc-day
- border-left: 0
- border-right: 0
-
- .fc-timeGrid-view .fc-day-grid .fc-row
- min-height: 1em
-
- .fc-timeGrid-view .fc-day-grid .fc-row .fc-content-skeleton
- padding-bottom: 0
-
- .fc-timegrid-slot.fc-timegrid-slot-minor
- border-top: 0
-
- .te-calendar--day-sum
- border: none
- background-color: initial
- color: #000000
- text-align: center
- font-size: 0.875em
- font-weight: bold
- line-height: 22px
- opacity: 1
- cursor: default
-
- .te-calendar--add-entry
- text-align: center
- font-weight: bold
- opacity: 0
- background: none
- border: none
- display: flex
- align-items: center
-
- &:hover
- opacity: 1
- transition: opacity 1s ease
- background: #EAEAEA
+te-calendar
+ full-calendar
+ overflow-x: auto
+
+ .fc-view
+ min-width: 800px
+
+ // Move the days header to the bottom.
+ thead
+ display: table-footer-group
+
+ // Remove the borders at the left and of the bottom
+ th.fc-day,
+ th.fc-timegrid-axis
+ border-bottom: none
+
+ table.fc-scrollgrid.fc-scrollgrid-liquid
+ border-left: none
+
+ .fc-event, .fc-bgevent
+ border-radius: 0
+ margin-right: 8px
+ margin-left: 8px
+
+ .fc-head-container
+ border-color: white
- .te-calendar--add-icon
- color: black
- width: 100%
- font-weight: normal
- font-size: 1.5rem
+ .fc-day-header
+ padding-top: 5px
- &.-prohibited
- cursor: not-allowed
+ .fc-widget-content
+ border-left-color: white
+
+ .fc-day
+ border-left: 0
+ border-right: 0
+
+ .fc-timeGrid-view .fc-day-grid .fc-row
+ min-height: 1em
+
+ .fc-timeGrid-view .fc-day-grid .fc-row .fc-content-skeleton
+ padding-bottom: 0
+
+ .fc-timegrid-slot.fc-timegrid-slot-minor
+ border-top: 0
+
+ .te-calendar--day-sum
+ border: none
+ background-color: initial
+ color: #000000
+ text-align: center
+ font-size: 0.875em
+ font-weight: bold
+ line-height: 22px
+ opacity: 1
+ cursor: default
+
+ .te-calendar--add-entry
+ text-align: center
+ font-weight: bold
+ opacity: 0
+ background: none
+ border: none
+ display: flex
+ align-items: center
+
+ &:hover
+ opacity: 1
+ transition: opacity 1s ease
+ background: #EAEAEA
.te-calendar--add-icon
- display: none
+ color: black
+ width: 100%
+ font-weight: normal
+ font-size: 1.5rem
+
+ &.-prohibited
+ cursor: not-allowed
- .te-calendar--time-entry
- .fc-content
- height: 100%
+ .te-calendar--add-icon
+ display: none
- .fc-fadeout
- position: relative
- bottom: 2em
- height: 2em
- z-index: 5
+ .te-calendar--time-entry
+ .fc-content
+ height: 100%
- &.-no-fadeout
.fc-fadeout
- display: none
-
- .fc-duration
- border-right: 1px solid white
- border-bottom: 1px solid white
- margin-left: -1px
- padding-left: 1px
- display: inline-block
- margin-right: 5px
- padding-right: 5px
- font-weight: bold
-
-.te-calendar--create-button
- position: absolute
- right: 0
- top: 6px
- margin-right: 0px
+ position: relative
+ bottom: 2em
+ height: 2em
+ z-index: 5
+
+ &.-no-fadeout
+ .fc-fadeout
+ display: none
+
+ .fc-duration
+ border-right: 1px solid white
+ border-bottom: 1px solid white
+ margin-left: -1px
+ padding-left: 1px
+ display: inline-block
+ margin-right: 5px
+ padding-right: 5px
+ font-weight: bold
+
+ .te-calendar--create-button
+ position: absolute
+ right: 0
+ top: 6px
+ margin-right: 0px