Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32736b3

Browse filesBrowse files
committed
docs: update table styles
1 parent 818031a commit 32736b3
Copy full SHA for 32736b3

File tree

2 files changed

+13
-6
lines changed
Filter options

2 files changed

+13
-6
lines changed

‎packages/docs/src/styles/_table-api.scss

Copy file name to clipboardExpand all lines: packages/docs/src/styles/_table-api.scss
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.table-api {
1+
.table-api,
2+
.table-docs {
23
.table {
34
margin: 0;
45
}
@@ -10,10 +11,6 @@
1011

1112
tr th {
1213
padding: 0.75rem 1rem;
13-
14-
&:nth-child(3) {
15-
width: 50%;
16-
}
1714
}
1815

1916
tr td {
@@ -43,8 +40,13 @@
4340
border-radius: 0;
4441
border: 2px solid var(--cui-body-bg);
4542

46-
code[class*=language-], pre[class*=language-] {
43+
code[class*='language-'],
44+
pre[class*='language-'] {
4745
white-space: pre-wrap;
4846
}
4947
}
5048
}
49+
50+
.table-api tr th:nth-child(3) {
51+
width: 50%;
52+
}

‎packages/docs/src/templates/MdxLayout.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/templates/MdxLayout.tsx
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ const MdxLayout: FC<PageProps<DataProps>> = ({ children }) => {
6969
JSXDocs: (props: { code: string }) => <JSXDocs {...props} />,
7070
ScssDocs: (props: ScssDocsProps) => <ScssDocs {...props} />,
7171
pre: (props: CodeBlockProps) => <CodeBlock {...props} />,
72+
table: (props) => (
73+
<div className="table-responsive table-docs border rounded mb-3">
74+
<table className="table table-docs" {...props} />
75+
</div>
76+
),
7277
}}
7378
>
7479
{children}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.