File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
theme-coreui/src/client/styles Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default defineUserConfig<DefaultThemeOptions>({
26
26
extendsMarkdown : ( md ) => {
27
27
md . use ( require ( 'markdown-it-include' ) ) ,
28
28
( md . renderer . rules . table_open = function ( tokens , idx ) {
29
- return '<table class="table table-striped">'
29
+ return '<table class="table table-striped table-api ">'
30
30
} )
31
31
} ,
32
32
markdown : {
Original file line number Diff line number Diff line change
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 (1 n ),
8
+ th :nth-child (1 n ) {
9
+ width : 15% ;
10
+ padding-left : 1rem ;
11
+ }
12
+ td :nth-child (2 n ) {
13
+ width : 55% ;
14
+ }
15
+ td :nth-child (3 n ) {
16
+ width : 10% ;
17
+ }
18
+ td :nth-child (4 n ) {
19
+ width : 10% ;
20
+ }
21
+ td :nth-child (5 n ) {
22
+ width : 10% ;
23
+ }
24
+ }
25
+
26
+ .markdown + h3 {
27
+ margin-top : 3rem ;
28
+ }
Original file line number Diff line number Diff line change 5
5
@import ' footer' ;
6
6
@import ' layout' ;
7
7
@import ' sidebar' ;
8
+ @import ' table-api' ;
8
9
@import ' toc' ;
9
10
10
11
@import ' vars' ;
You can’t perform that action at this time.
0 commit comments