-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy path_tables.scss
57 lines (46 loc) · 945 Bytes
/
_tables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Tables
*/
// ensure table will fit in the article width and make them y-scrollable
table {
@include table-colors;
display: table;
overflow: auto;
// default to table-center
margin-left: auto;
margin-right: auto;
&.table-right {
margin-right: 0;
}
&.table-left {
margin-left: 0;
}
}
// customize table caption from bootstrap
// to display them on top and centered
table caption {
text-align: center;
caption-side: top;
color: var(--pst-color-text-muted);
}
// MyST Markdown tables use these classes to control alignment
th,
td {
&.text-align\:left {
text-align: left;
}
&.text-align\:right {
text-align: right;
}
&.text-align\:center {
text-align: center;
}
}
// override bootstrap table colors
.table {
@include table-colors;
--bs-table-bg: transparent; //background
--bs-table-color: var(
--pst-color-text-base
); // ensure text and bullets are visible
}