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

Use round buttons with own icons for calendar toolbar

Henriette Dargea6f2e72e4982
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index 4b0aace4a29..ee50e35701a 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -2,13 +2,11 @@
#content
height: 100%
- // ------------------------ Full calendar overwrite ------------------------
+ // ------------------------ BEGIN: Full calendar overwrite ------------------------
.fc
font-size: 14px
- .fc-toolbar-title
- font-size: 16px
-
+ // ------------------------ BEGIN: Calendar cells ------------------------
.fc-datagrid-cell-cushion,
.fc-timeline-slot-cushion
padding: 12px 16px
@@ -16,6 +14,15 @@
.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
@@ -36,11 +43,39 @@
.fc-event-main
color: unset
- .fc-resource-timeline-divider
- width: 1px
- background: none
- border: none
- cursor: 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 ------------------------