aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-25 13:08:05 +0000
committerMario <mario@mariovavti.com>2023-01-25 13:08:05 +0000
commit08e925758e920b898ac2d08710eab2f9638fe276 (patch)
treefed0f7b2ee8251c6534d446b3166096889c9aeb3 /view
parent213c8a6eeccc16c34d3a34229a810bd213837c56 (diff)
downloadvolse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.tar.gz
volse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.tar.bz2
volse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.zip
update fullcalendar library
Diffstat (limited to 'view')
-rw-r--r--view/css/cdav_calendar.css40
-rw-r--r--view/theme/redbasic/js/redbasic.js23
-rw-r--r--view/tpl/cdav_calendar.tpl5
3 files changed, 32 insertions, 36 deletions
diff --git a/view/css/cdav_calendar.css b/view/css/cdav_calendar.css
index a732452f0..46a32bef7 100644
--- a/view/css/cdav_calendar.css
+++ b/view/css/cdav_calendar.css
@@ -1,33 +1,32 @@
/* fix borders */
-.fc th:first-child,
-.fc td:first-child {
- border-left-width: 0px;
+:root {
+ --fc-border-color: var(--bs-border-color) !important;
+ --fc-page-bg-color: var(--bs-tertiary-bg) !important;
+ --fc-list-event-hover-bg-color: var(--bs-tertiary-bg) !important;
+ --fc-daygrid-event-dot-width: 1rem !important;
+ --fc-list-event-dot-width: 1rem !important;
}
-.fc th:last-child,
-.fc td:last-child {
- border-right-width: 0px;
- border-bottom-width: 0px;
+.fc .fc-cell-shaded, .fc .fc-day-disabled {
+ background: var(--bs-tertiary-bg) !important;
}
-main.fullscreen .fc th:last-child,
-main.fullscreen .fc td:last-child {
- border-bottom-width: 1px;
+.fc-theme-standard td:last-child,
+.fc-theme-standard th:last-child {
+ border-right: 0px !important;
}
-.fc-unthemed th,
-.fc-unthemed td,
-.fc-unthemed thead,
-.fc-unthemed tbody,
-.fc-unthemed .fc-divider,
-.fc-unthemed .fc-row,
-.fc-unthemed .fc-popover {
- border-color: #ccc !important;
+.fc-theme-standard td:last-child {
+ border-bottom: 0px !important;
}
-.fc-list-view {
- border-width: 0px;
+.fc-theme-standard .fc-scrollgrid {
+ border: 0px !important;
+}
+
+.fc-theme-standard .fc-list {
+ border: 0px !important;
}
.bootstrap-tagsinput {
@@ -35,4 +34,3 @@ main.fullscreen .fc td:last-child {
padding: 6px 12px;
margin-bottom: 0px !important;
}
-
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index b32042668..f502b2538 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -4,20 +4,19 @@
let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode');
-$(document).ready(function() {
-
- if (redbasic_dark_mode == 1) {
- $('html').attr('data-bs-theme', 'light');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
- $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
- }
+if (redbasic_dark_mode == 1) {
+ $('html').attr('data-bs-theme', 'light');
+ $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
+ $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
+}
+if (redbasic_dark_mode == 2) {
+ $('html').attr('data-bs-theme', 'dark');
+ $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
+ $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
+}
- if (redbasic_dark_mode == 2) {
- $('html').attr('data-bs-theme', 'dark');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
- $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
- }
+$(document).ready(function() {
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl
index 2d6853513..e66953a5d 100644
--- a/view/tpl/cdav_calendar.tpl
+++ b/view/tpl/cdav_calendar.tpl
@@ -22,7 +22,7 @@ var allday;
$(document).ready(function() {
var calendarEl = document.getElementById('calendar');
calendar = new FullCalendar.Calendar(calendarEl, {
- plugins: [ 'interaction', 'dayGrid', 'timeGrid', 'list' ],
+
eventSources: [ {{$sources}} ],
timeZone: '{{$timezone}}',
@@ -30,7 +30,7 @@ $(document).ready(function() {
locale: '{{$lang}}',
eventTextColor: 'white',
- header: false,
+ headerToolbar: false,
height: 'auto',
@@ -384,7 +384,6 @@ $(document).ready(function() {
$('#id_dtstart_wrapper, #id_dtend_wrapper, #id_timezone_select_wrapper').hide();
});
-
function changeView(viewName) {
calendar.changeView(viewName);