@diplodoc/transform 4.59.1 → 4.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/_yfm-only.css +41 -0
- package/dist/css/_yfm-only.css.map +3 -3
- package/dist/css/_yfm-only.min.css +1 -1
- package/dist/css/_yfm-only.min.css.map +3 -3
- package/dist/css/base.css +0 -4
- package/dist/css/base.css.map +3 -3
- package/dist/css/base.min.css +1 -1
- package/dist/css/base.min.css.map +3 -3
- package/dist/css/print.css.map +1 -1
- package/dist/css/yfm.css +41 -4
- package/dist/css/yfm.css.map +3 -3
- package/dist/css/yfm.min.css +1 -1
- package/dist/css/yfm.min.css.map +3 -3
- package/package.json +1 -1
- package/src/scss/_common.scss +0 -4
- package/src/scss/_katex.scss +6 -0
- package/src/scss/_table.scss +36 -21
- package/src/scss/_yfm-only.scss +2 -1
package/package.json
CHANGED
package/src/scss/_common.scss
CHANGED
package/src/scss/_table.scss
CHANGED
|
@@ -30,32 +30,47 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
@mixin yfm-sticky-header-row {
|
|
34
|
+
position: sticky;
|
|
35
|
+
top: 0;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
|
|
38
|
+
td,
|
|
39
|
+
th {
|
|
40
|
+
position: relative;
|
|
41
|
+
z-index: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
td::before,
|
|
45
|
+
th::before {
|
|
46
|
+
content: '';
|
|
47
|
+
background: var(--yfm-color-base);
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
z-index: -2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
td::after,
|
|
54
|
+
th::after {
|
|
55
|
+
content: '';
|
|
56
|
+
background: var(--yfm-color-table-row-background);
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset: 0;
|
|
59
|
+
z-index: -1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
33
63
|
.yfm table[sticky-header] {
|
|
34
64
|
position: relative;
|
|
35
65
|
|
|
36
66
|
thead {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
& th {
|
|
41
|
-
position: relative;
|
|
42
|
-
z-index: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
& th::before {
|
|
46
|
-
content: '';
|
|
47
|
-
background: var(--yfm-color-base);
|
|
48
|
-
position: absolute;
|
|
49
|
-
inset: 0;
|
|
50
|
-
z-index: -2;
|
|
51
|
-
}
|
|
67
|
+
@include yfm-sticky-header-row;
|
|
68
|
+
}
|
|
52
69
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
inset: 0;
|
|
58
|
-
z-index: -1;
|
|
70
|
+
&:not(:has(thead)) {
|
|
71
|
+
tbody > tr:first-child,
|
|
72
|
+
> tr:first-child {
|
|
73
|
+
@include yfm-sticky-header-row;
|
|
59
74
|
}
|
|
60
75
|
}
|
|
61
76
|
|
package/src/scss/_yfm-only.scss
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
Note: This file excludes "cut", "file" and "tabs" as they are handled separately
|
|
3
|
-
in dedicated extensions (packages). In the future, "note", "term"
|
|
3
|
+
in dedicated extensions (packages). In the future, "note", "term", "katex"
|
|
4
4
|
and "table" will also be excluded from this file and moved to yfm.scss,
|
|
5
5
|
once they are moved to separate packages. Direct usage is not recommended,
|
|
6
6
|
as the file is subject to changes without prior notice.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@import 'note';
|
|
10
|
+
@import 'katex';
|
|
10
11
|
@import 'table';
|
|
11
12
|
@import 'term';
|
|
12
13
|
@import 'inline-code';
|