UNPKG

@fullcalendar/bootstrap5

Version:
38 lines (34 loc) 1.51 kB
import { Theme, injectStyles } from '@fullcalendar/core/internal.js'; class BootstrapTheme extends Theme { } BootstrapTheme.prototype.classes = { root: 'fc-theme-bootstrap5', tableCellShaded: 'fc-theme-bootstrap5-shaded', buttonGroup: 'btn-group', button: 'btn btn-primary', buttonActive: 'active', popover: 'popover', popoverHeader: 'popover-header', popoverContent: 'popover-body', }; BootstrapTheme.prototype.baseIconClass = 'bi'; BootstrapTheme.prototype.iconClasses = { close: 'bi-x-lg', prev: 'bi-chevron-left', next: 'bi-chevron-right', prevYear: 'bi-chevron-double-left', nextYear: 'bi-chevron-double-right', }; BootstrapTheme.prototype.rtlIconClasses = { prev: 'bi-chevron-right', next: 'bi-chevron-left', prevYear: 'bi-chevron-double-right', nextYear: 'bi-chevron-double-left', }; // wtf BootstrapTheme.prototype.iconOverrideOption = 'buttonIcons'; // TODO: make TS-friendly BootstrapTheme.prototype.iconOverrideCustomButtonOption = 'icon'; BootstrapTheme.prototype.iconOverridePrefix = 'bi-'; var css_248z = ".fc-theme-bootstrap5 a:not([href]){color:inherit;text-decoration:inherit}.fc-theme-bootstrap5 .fc-list,.fc-theme-bootstrap5 .fc-scrollgrid,.fc-theme-bootstrap5 td,.fc-theme-bootstrap5 th{border:1px solid var(--bs-gray-400)}.fc-theme-bootstrap5 .fc-scrollgrid{border-bottom-width:0;border-right-width:0}.fc-theme-bootstrap5-shaded{background-color:var(--bs-gray-200)}"; injectStyles(css_248z); export { BootstrapTheme };