-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathmatrix.css
More file actions
104 lines (96 loc) · 2.36 KB
/
Copy pathmatrix.css
File metadata and controls
104 lines (96 loc) · 2.36 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* Based on the stylesheet used by matrepr (https://github.com/alugowski/matrepr) and modified for sphinx */
table.matrix {
border-collapse: collapse;
border: 0px;
}
/* Disable a horizintal line from the default stylesheet */
.table.matrix > :not(caption) > * > * {
border-bottom-width: 0px;
}
/* row indices */
table.matrix > tbody tr th {
font-size: smaller;
font-weight: bolder;
vertical-align: middle;
text-align: right;
}
/* row indices are often made bold in the source data; here make them match the boldness of the th column label style*/
table.matrix strong {
font-weight: bold;
}
/* column indices */
table.matrix > thead tr th {
font-size: smaller;
font-weight: bolder;
vertical-align: middle;
text-align: center;
}
/* cells */
table.matrix > tbody tr td {
vertical-align: middle;
text-align: center;
position: relative;
}
/* left border */
table.matrix > tbody tr td:first-of-type {
border-left: solid 2px var(--pst-color-text-base);
}
/* right border */
table.matrix > tbody tr td:last-of-type {
border-right: solid 2px var(--pst-color-text-base);
}
/* prevents empty cells from collapsing, especially empty rows */
table.matrix > tbody tr td:empty::before {
/* basicaly fills empty cells with */
content: "\00a0\00a0\00a0";
visibility: hidden;
}
table.matrix > tbody tr td:empty::after {
content: "\00a0\00a0\00a0";
visibility: hidden;
}
/* matrix bracket ticks */
table.matrix > tbody > tr:first-child > td:first-of-type::before {
content: "";
width: 4px;
position: absolute;
top: 0;
bottom: 0;
visibility: visible;
left: 0;
right: auto;
border-top: solid 2px var(--pst-color-text-base);
}
table.matrix > tbody > tr:last-child > td:first-of-type::before {
content: "";
width: 4px;
position: absolute;
top: 0;
bottom: 0;
visibility: visible;
left: 0;
right: auto;
border-bottom: solid 2px var(--pst-color-text-base);
}
table.matrix > tbody > tr:first-child > td:last-of-type::after {
content: "";
width: 4px;
position: absolute;
top: 0;
bottom: 0;
visibility: visible;
left: auto;
right: 0;
border-top: solid 2px var(--pst-color-text-base);
}
table.matrix > tbody > tr:last-child > td:last-of-type::after {
content: "";
width: 4px;
position: absolute;
top: 0;
bottom: 0;
visibility: visible;
left: auto;
right: 0;
border-bottom: solid 2px var(--pst-color-text-base);
}