Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b7daa03

Browse files
committed
fix(client): fix table css
1 parent 5a955ee commit b7daa03

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
lines changed

packages/client/assets/style/tags.css

+32
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,35 @@ blockquote {
148148
padding-left: 12px;
149149
text-align: left;
150150
}
151+
152+
table {
153+
border-collapse: collapse;
154+
border-spacing: 0;
155+
}
156+
157+
thead {
158+
border-bottom: 1px var(--color-base) solid;
159+
160+
& th {
161+
font-weight: 500;
162+
padding: 0 4px 12px 4px;
163+
164+
&:not(:first-child) {
165+
padding-left: 12px;
166+
}
167+
}
168+
}
169+
170+
tbody {
171+
& tr:not(:last-child) {
172+
border-bottom: 1px var(--color-base) solid;
173+
}
174+
175+
& td {
176+
padding: 12px 4px 0 4px;
177+
178+
&:not(:first-child) {
179+
padding-left: 12px;
180+
}
181+
}
182+
}

packages/fusuma/src/server/dynamicRenderingServer.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ async function dynamicRenderingServer(outputDirPath, publicPath, spinner, isThum
6767

6868
const { issues } = await pa11y(url, {
6969
browser,
70-
ignore: [/* anchor in ToC*/ 'WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID'],
70+
ignore: [
71+
/* anchor in ToC*/ 'WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID',
72+
/* table */ 'WCAG2AA.Principle1.Guideline1_3.1_3_1.H49.AlignAttr',
73+
],
7174
});
7275

7376
if (issues.length) {

packages/playground/debug/slides/01-many-pages.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
# 1
1010

11+
| Left | Center | Right |
12+
| :----- | :----: | -----: |
13+
| TD | TD | TD |
14+
| TDTDTD | TD | TDTDTD |
15+
1116
---
1217

1318
# 2

packages/playground/debug/slides/08-mdx.mdx

-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@
55
import { Hello } from '../components/Hello';
66

77
<Hello />
8-
9-
---
10-
11-
<Hello />
12-
<Hello />
13-
<Hello />

0 commit comments

Comments
 (0)