All checks were successful
Build and deploy static pages / build-and-push (push) Successful in 19s
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
{{- if eq .Layout "calendar" }}
|
|
<style>
|
|
#pa-calendar { margin: 1.5rem 0 2.5rem; }
|
|
.fc .fc-toolbar-title { font-size: 1.1rem; }
|
|
.fc-event { cursor: pointer; font-size: 0.78rem; }
|
|
/* Reset PaperMod's global table overrides inside FullCalendar */
|
|
.fc table { display: table; overflow-x: visible; margin-bottom: 0; border-radius: 0; word-break: normal; }
|
|
.fc th { min-width: 0; text-align: center; }
|
|
.fc td:first-child, .fc th:first-child { width: auto; }
|
|
/* Map PaperMod dark theme to FullCalendar CSS variables */
|
|
[data-theme="dark"] #pa-calendar {
|
|
--fc-page-bg-color: var(--theme);
|
|
--fc-neutral-bg-color: var(--entry);
|
|
--fc-neutral-text-color: var(--secondary);
|
|
--fc-border-color: var(--border);
|
|
--fc-today-bg-color: rgba(255, 220, 40, 0.08);
|
|
--fc-list-event-hover-bg-color: var(--entry);
|
|
--fc-button-text-color: var(--primary);
|
|
--fc-button-bg-color: var(--entry);
|
|
--fc-button-border-color: var(--border);
|
|
--fc-button-hover-bg-color: var(--tertiary);
|
|
--fc-button-hover-border-color: var(--border);
|
|
--fc-button-active-bg-color: var(--tertiary);
|
|
--fc-button-active-border-color: var(--border);
|
|
color: var(--primary);
|
|
}
|
|
</style>
|
|
{{- end }}
|