mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
update fullcalendar library
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,21 +4,20 @@
|
||||
|
||||
let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode');
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
$(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 == 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');
|
||||
}
|
||||
|
||||
// CSS3 calc() fallback (for unsupported browsers)
|
||||
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
|
||||
if( $('#css3-calc').width() == 10) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user