-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a19455f
commit 7f28fa6
Showing
5 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.block-calendar { | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
|
||
> div { | ||
display: grid; | ||
grid-column: start / end; | ||
row-gap: 2rem; | ||
column-gap: 4rem; | ||
} | ||
} | ||
|
||
.event summary { | ||
display: block; | ||
} | ||
.event-header { | ||
display: grid; | ||
grid-template-columns: 150px 1fr; | ||
grid-template-areas: "time title" ". subtitle"; | ||
cursor: pointer; | ||
} | ||
.event-time { | ||
grid-area: time; | ||
} | ||
.event-title { | ||
grid-area: title; | ||
} | ||
.event-subtitle { | ||
grid-area: subtitle; | ||
} | ||
.event-description { | ||
margin-left: 150px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<section id="{{ block.id }}" class="block-calendar theme {{ block.theme }}"> | ||
<div> | ||
<header> | ||
<h2 class="type-title">{{ block.title }}</h2> | ||
</header> | ||
|
||
{{ for day of block.days }} | ||
<h3>{{ day.title }}</h3> | ||
|
||
{{ for event of day.events }} | ||
<details class="event"> | ||
<summary> | ||
<div class="event-header"> | ||
<time class="event-time">{{ event.time }}</time> | ||
<strong class="event-title">{{ event.title }}</strong> | ||
|
||
{{ if event.subtitle }} | ||
<p class="event-subtitle"> | ||
{{ event.subtitle }} | ||
</p> | ||
{{ /if }} | ||
</div> | ||
</summary> | ||
|
||
<div class="event-description"> | ||
{{ event.description |> md }} | ||
</div> | ||
</details> | ||
{{ /for }} | ||
{{ /for }} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters