You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 rivejä
1.3 KiB

  1. import { Theme, injectStyles } from '@fullcalendar/core/internal.js';
  2. class BootstrapTheme extends Theme {
  3. }
  4. BootstrapTheme.prototype.classes = {
  5. root: 'fc-theme-bootstrap',
  6. table: 'table-bordered',
  7. tableCellShaded: 'table-active',
  8. buttonGroup: 'btn-group',
  9. button: 'btn btn-primary',
  10. buttonActive: 'active',
  11. popover: 'popover',
  12. popoverHeader: 'popover-header',
  13. popoverContent: 'popover-body',
  14. };
  15. BootstrapTheme.prototype.baseIconClass = 'fa';
  16. BootstrapTheme.prototype.iconClasses = {
  17. close: 'fa-times',
  18. prev: 'fa-chevron-left',
  19. next: 'fa-chevron-right',
  20. prevYear: 'fa-angle-double-left',
  21. nextYear: 'fa-angle-double-right',
  22. };
  23. BootstrapTheme.prototype.rtlIconClasses = {
  24. prev: 'fa-chevron-right',
  25. next: 'fa-chevron-left',
  26. prevYear: 'fa-angle-double-right',
  27. nextYear: 'fa-angle-double-left',
  28. };
  29. BootstrapTheme.prototype.iconOverrideOption = 'bootstrapFontAwesome'; // TODO: make TS-friendly. move the option-processing into this plugin
  30. BootstrapTheme.prototype.iconOverrideCustomButtonOption = 'bootstrapFontAwesome';
  31. BootstrapTheme.prototype.iconOverridePrefix = 'fa-';
  32. var css_248z = ".fc-theme-bootstrap a:not([href]){color:inherit}.fc-theme-bootstrap .fc-more-link:hover{text-decoration:none}";
  33. injectStyles(css_248z);
  34. export { BootstrapTheme };