Skip to content

Commit

Permalink
Schedule: fix display on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
picnoir committed Oct 10, 2024
1 parent e303af5 commit 2fb3c8b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/schedule.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
---
{{< box >}}
# Schedule

{{< table-scroll >}}
| Title | Speakers | Type |
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|-----------------------------------------------------------------------------------------|
| Speed Dating | lassulus | Workshop/Training |
Expand Down Expand Up @@ -51,4 +51,4 @@
| Python Packaging with AI | Nitin Passa | Lightning talk |
| Infecting Your Server with NixOS | João Thallis | Workshop/Training |

{{< /box >}}
{{< /table-scroll >}}
9 changes: 9 additions & 0 deletions themes/nixcon-2024/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ footer > p {
text-align: center;
}

#schedule {
margin-bottom: 0;
padding-left: .5rem;
}

.table-scroll {
overflow-x: auto;
}

table, th, td {
border: 2px solid black;
border-collapse: collapse;
Expand Down
3 changes: 3 additions & 0 deletions themes/nixcon-2024/layouts/shortcodes/table-scroll.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="table-scroll box">
{{ transform.Markdownify .Inner }}
</div>

0 comments on commit 2fb3c8b

Please sign in to comment.