Skip to content

Commit

Permalink
Merge pull request #265 from csidirop/OptimizedCalendarStyling
Browse files Browse the repository at this point in the history
Hide PageView tools in CalendarView
  • Loading branch information
beatrycze-volk authored Dec 4, 2023
2 parents 4275263 + 8b20a33 commit a9f8dc4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions Resources/Private/JavaScript/dfgviewerScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ $(document).ready(function() {

// add body class if any calendar is present
$('.tx-dfgviewer-newspaper-calendar').parents('body').addClass('calendar');
$('.tx-dfgviewer-newspaper-years').parents('body').addClass('calendar');

// Inject view switch functions for calendar/list view (initial show calendar)
$('.tx-dfgviewer-newspaper-calendar .calendar-list-selection a.select-calendar-view, .tx-dfgviewer-newspaper-calendar .calendar-view').addClass('active');
Expand Down
16 changes: 16 additions & 0 deletions Resources/Private/Less/components/controls.less
Original file line number Diff line number Diff line change
Expand Up @@ -940,3 +940,19 @@
color: black;
}
}

/* ==============[ hide page elements in calendar view ]====================================== */
body.dfgviewer.calendar {
.document-functions {
display: none;
}

.view-functions {
display: none;
}

.tx-dfgviewer-newspaper-calendar, .tx-dfgviewer-newspaper-years {
position: relative;
top: -80px;
}
}
2 changes: 1 addition & 1 deletion Resources/Public/Css/allStyles.css

Large diffs are not rendered by default.

Loading

0 comments on commit a9f8dc4

Please sign in to comment.