Skip to content

Commit

Permalink
new calendar views
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Dec 8, 2023
1 parent fed30f9 commit abcea4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
8 changes: 1 addition & 7 deletions content/events-month.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
---
title: "Calendar of Events"
menu:
main:
name: Events
weight: -80
params:
icon: calendar-event
title: "Monthly Calendar"
---

<div class="article-category float-butt">
Expand Down
2 changes: 2 additions & 0 deletions src/cal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function load_calendar(view) {
url: 'https://faas-sfo3-7872a1dd.doserverless.co/api/v1/web/fn-67f34cf4-c3ed-479c-839e-2f7206029fcb/wildweb/calcache',
format: 'ics' // important!
},
contentHeight: 'auto',
height: 'auto',
headerToolbar: header,
visibleRange: function(currentDate) {
var startDate = new Date(currentDate.valueOf());
Expand Down
11 changes: 6 additions & 5 deletions static/cal.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ a.fc-list-day-text {
background-color: rgba(55, 136, 216, 0.5);
}

.article-content tr:nth-child(even) {
background-color: transparent;
}

dialog[open] {
opacity: 1;
transform: scaleY(1);
Expand Down Expand Up @@ -75,11 +79,8 @@ because the nesting selector cannot represent pseudo-elements. */
}
}

@media (max-width: 440px) {
#calendar-js {
min-height: calc(100vh - 100px);
max-height: calc(100vh - 100px);
}
.fc-dayGridMonth-view th {
background-color: transparent !important;
}

.float-butt {
Expand Down

0 comments on commit abcea4f

Please sign in to comment.