8000 docs: update theme · HelloLeoLyn/coreui-vue@31fe7ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 31fe7ce

Browse files
committed
docs: update theme
1 parent 9f7f1cc commit 31fe7ce

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

docs/.vuepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineUserConfig<DefaultThemeOptions>({
2626
extendsMarkdown: (md) => {
2727
md.use(require('markdown-it-include')),
2828
(md.renderer.rules.table_open = function (tokens, idx) {
29-
return '<table class="table table-striped">'
29+
return '<table class="table table-striped table-api">'
3030
})
3131
},
3232
markdown: {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.table-api {
2+
--cui-table-striped-bg: #{rgba(#f0f4f7, .25)} !important;
3+
tr td {
4+
padding-top: 1rem;
5+
padding-bottom: 1rem;
6+
}
7+
td:nth-child(1n),
8+
th:nth-child(1n) {
9+
width: 15%;
10+
padding-left: 1rem;
11+
}
12+
td:nth-child(2n) {
13+
width: 55%;
14+
}
15+
td:nth-child(3n) {
16+
width: 10%;
17+
}
18+
td:nth-child(4n) {
19+
width: 10%;
20+
}
21+
td:nth-child(5n) {
22+
width: 10%;
23+
}
24+
}
25+
26+
.markdown + h3 {
27+
margin-top: 3rem;
28+
}

docs/.vuepress/theme-coreui/src/client/styles/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@import 'footer';
66
@import 'layout';
77
@import 'sidebar';
8+
@import 'table-api';
89
@import 'toc';
910

1011
@import 'vars';

0 commit comments

Comments
 (0)
0