Skip to content

Commit 4f47ee6

Browse files
feat: Tables?
1 parent dda62d1 commit 4f47ee6

3 files changed

Lines changed: 134 additions & 65 deletions

File tree

static/app.css

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ html {
8383

8484
p {
8585
@apply leading-6;
86+
> * {
87+
@apply my-4;
88+
}
8689
}
8790

8891
a {
@@ -131,7 +134,7 @@ html {
131134
}
132135

133136
details {
134-
@apply bg-mf-bg rounded-md;
137+
@apply bg-mf-bg rounded-md mb-2;
135138
summary {
136139
@apply text-mf-heading font-bold cursor-pointer p-2 hover:bg-slate-950
137140
rounded-md px-4 transition select-none;
@@ -143,6 +146,29 @@ html {
143146
@apply pb-4;
144147
}
145148
}
149+
150+
table {
151+
@apply border-[1px] border-mf-unknown border-separate border-spacing-0
152+
max-w-full w-max rounded-xl overflow-auto block;
153+
td {
154+
@apply px-2 py-1 border-mf-unknown border-b-[1px];
155+
}
156+
tr {
157+
@apply bg-mf-bg;
158+
}
159+
tr:nth-child(2n) {
160+
@apply bg-mf-card;
161+
}
162+
tr:not(:last-of-type) td {
163+
@apply border-solid;
164+
}
165+
tr:last-of-type td {
166+
@apply border-b-0;
167+
}
168+
td:not(:last-of-type) {
169+
@apply border-mf-unknown border-r-[1px];
170+
}
171+
}
146172
}
147173
[open] {
148174
summary {

static/assets/pages/md.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Markdown Format
2+
3+
---
4+
5+
## Headings
6+
7+
<hr>
8+
9+
# Heading 1 (\#)
10+
11+
## Heading 2 (\#\#)
12+
13+
### Heading 3 (\#\#\#)
14+
15+
#### Heading 4 (\#\#\#\#)
16+
17+
---
18+
19+
## Lists
20+
21+
<hr>
22+
23+
Some text above
24+
25+
- Main point
26+
- Subpoint
27+
- Sub Subpoint
28+
- Sub Subpoint
29+
- Sub Sub Subpoint
30+
- Five Dollar Sub Sub Sub Subpoint
31+
- Subpoint 2
32+
- Sub Subpoint
33+
- Yet another main point
34+
35+
---
36+
37+
## Block Quotes, Collapsibles & Centre Tags
38+
39+
### Block Quotes
40+
41+
> I'm blocking you.
42+
43+
> Not really :3
44+
45+
### Collapsibles
46+
47+
<details>
48+
<summary>A secret??</summary>
49+
50+
## Secret secrets
51+
52+
Now I can tell you all of my deepest and darkest secrets!
53+
54+
First of all, I ⡟❹ⵄ⦨♕⎂ ⛩⓯ⶵ⬏ⴹ.
55+
56+
</details>
57+
58+
### Centre tags
59+
60+
<center>
61+
<h2>I like being in the centre of things.</h2>
62+
Seemingly does not support MD syntax in <code>center</code> tags.
63+
</center>
64+
65+
---
66+
67+
## Tables
68+
69+
<table>
70+
<tr>
71+
<th>Company</th>
72+
<th>Contact</th>
73+
<th>Country</th>
74+
</tr>
75+
<tr>
76+
<td>Alfreds Futterkiste</td>
77+
<td>Maria Anders</td>
78+
<td>Germany</td>
79+
</tr>
80+
<tr>
81+
<td>Centro comercial Moctezuma</td>
82+
<td>Francisco Chang</td>
83+
<td>Mexico</td>
84+
</tr>
85+
<tr>
86+
<td>Ernst Handel</td>
87+
<td>Roland Mendel</td>
88+
<td>Austria</td>
89+
</tr>
90+
<tr>
91+
<td>Island Trading</td>
92+
<td>Helen Bennett</td>
93+
<td>UK</td>
94+
</tr>
95+
<tr>
96+
<td>Laughing Bacchus Winecellars</td>
97+
<td>Yoshi Tannamuri</td>
98+
<td>Canada</td>
99+
</tr>
100+
<tr>
101+
<td>Magazzini Alimentari Riuniti</td>
102+
<td>Giovanni Rovelli</td>
103+
<td>Italy</td>
104+
</tr>
105+
</table>
106+
107+
WorldWidePixel put this here and now it shall remain forever!

static/assets/pages/mdtester.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)