@diplodoc/transform 4.63.8 → 4.64.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 +16 -16
- 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 +37 -76
- 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 +57 -96
- 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/dist/scss/_anchor.scss +76 -0
- package/dist/scss/_code.scss +57 -0
- package/dist/scss/_common.scss +433 -0
- package/dist/scss/_highlight.scss +80 -0
- package/dist/scss/_inline-code.scss +64 -0
- package/dist/scss/_katex.scss +6 -0
- package/dist/scss/_lists.scss +77 -0
- package/dist/scss/_modal.scss +127 -0
- package/dist/scss/_note.scss +75 -0
- package/dist/scss/_table.scss +81 -0
- package/dist/scss/_term.scss +84 -0
- package/dist/scss/_yfm-only.scss +13 -0
- package/dist/scss/base.scss +4 -0
- package/dist/scss/print/code.scss +9 -0
- package/dist/scss/print/common.scss +13 -0
- package/dist/scss/print/cut.scss +19 -0
- package/dist/scss/print/iframe.scss +5 -0
- package/dist/scss/print/note.scss +7 -0
- package/dist/scss/print/table.scss +24 -0
- package/dist/scss/print/tabs.scss +26 -0
- package/dist/scss/print/term.scss +10 -0
- package/dist/scss/print.scss +8 -0
- package/dist/scss/private.scss +51 -0
- package/dist/scss/yfm-base.scss +3 -0
- package/dist/scss/yfm.scss +5 -0
- package/package.json +1 -1
- package/src/scss/_anchor.scss +2 -2
- package/src/scss/_code.scss +4 -1
- package/src/scss/_common.scss +29 -19
- package/src/scss/_highlight.scss +10 -10
- package/src/scss/_inline-code.scss +8 -3
- package/src/scss/_modal.scss +10 -4
- package/src/scss/_note.scss +14 -4
- package/src/scss/_table.scss +5 -2
- package/src/scss/_term.scss +13 -5
- package/src/scss/private.scss +8 -3
- package/src/scss/yfm-base.scss +3 -0
- package/src/scss/yfm.scss +1 -3
- package/src/scss/brand.scss +0 -56
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
@function get-counter-ident($depth) {
|
|
5
|
+
$ident: hier-list-item;
|
|
6
|
+
|
|
7
|
+
@for $i from 0 to $depth {
|
|
8
|
+
$ident: sub-#{$ident};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@return $ident;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@function get-selector($depth) {
|
|
15
|
+
$selector: ol;
|
|
16
|
+
|
|
17
|
+
@for $i from 0 to $depth {
|
|
18
|
+
$selector: '#{$selector} > li > ol';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@return $selector;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@function get-marker-content($idents) {
|
|
25
|
+
$length: list.length($idents);
|
|
26
|
+
$content: '';
|
|
27
|
+
|
|
28
|
+
@for $i from 1 through $length {
|
|
29
|
+
@if $i > 1 {
|
|
30
|
+
$content: '#{$content} "."';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
$content: '#{$content} counter(#{list.nth($idents, $i)})';
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@return #{$content} '. ';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin hier-list($max-depth) {
|
|
40
|
+
$ident-path: ();
|
|
41
|
+
|
|
42
|
+
@for $i from 0 through $max-depth {
|
|
43
|
+
$ident: get-counter-ident($i);
|
|
44
|
+
$ident-path: list.append($ident-path, $ident);
|
|
45
|
+
|
|
46
|
+
& #{get-selector($i)} {
|
|
47
|
+
--hier-list-start: 0;
|
|
48
|
+
counter-reset: #{$ident} var(--hier-list-start);
|
|
49
|
+
|
|
50
|
+
& > li {
|
|
51
|
+
counter-increment: $ident;
|
|
52
|
+
|
|
53
|
+
&::marker {
|
|
54
|
+
content: get-marker-content($ident-path);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.yfm {
|
|
62
|
+
@include hier-list(5);
|
|
63
|
+
|
|
64
|
+
&.yfm_no-list-reset ol,
|
|
65
|
+
ol.yfm_no-list-reset,
|
|
66
|
+
.yfm_no-list-reset ol {
|
|
67
|
+
counter-reset: list-item;
|
|
68
|
+
|
|
69
|
+
& li {
|
|
70
|
+
counter-increment: unset;
|
|
71
|
+
|
|
72
|
+
&::marker {
|
|
73
|
+
content: unset;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* stylelint-disable declaration-no-important */
|
|
2
|
+
|
|
3
|
+
.wide-container {
|
|
4
|
+
position: fixed;
|
|
5
|
+
width: 100vw;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
top: 0px;
|
|
11
|
+
left: 0px;
|
|
12
|
+
z-index: 200;
|
|
13
|
+
|
|
14
|
+
&.dc-doc-page {
|
|
15
|
+
max-width: 100% !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wide-content-viewer {
|
|
19
|
+
visibility: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wide-content-wrapper {
|
|
23
|
+
z-index: 200;
|
|
24
|
+
background-color: var(--yfm-color-modal-content, var(--yfm-color-modal-content-private));
|
|
25
|
+
height: 90vh;
|
|
26
|
+
width: 70vw;
|
|
27
|
+
border-radius: 10px;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
|
|
31
|
+
.wide-content {
|
|
32
|
+
height: 95%;
|
|
33
|
+
width: 100%;
|
|
34
|
+
|
|
35
|
+
.wide-inner-element {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
table {
|
|
42
|
+
border-radius: 0px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.wide-thead-content {
|
|
46
|
+
display: table;
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.wide-toolbar {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
width: 100%;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding: 10px 12px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.wide-entity-name {
|
|
61
|
+
margin: 0;
|
|
62
|
+
font-size: 18px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.wide-actions {
|
|
66
|
+
align-self: flex-end;
|
|
67
|
+
|
|
68
|
+
.close-action {
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
border-radius: 3px;
|
|
71
|
+
|
|
72
|
+
transition: background 300ms;
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
background: var(
|
|
76
|
+
--yfm-color-modal-actions-hover,
|
|
77
|
+
var(--yfm-color-modal-actions-hover-private)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.wide-element-wrapper {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: 30px;
|
|
88
|
+
position: relative;
|
|
89
|
+
|
|
90
|
+
&:hover > .wide-content-viewer {
|
|
91
|
+
visibility: visible;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.wide-inner-element {
|
|
95
|
+
max-width: 700px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wide-content-viewer {
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
width: 30px;
|
|
102
|
+
height: 30px;
|
|
103
|
+
z-index: 100;
|
|
104
|
+
padding: 6px;
|
|
105
|
+
box-sizing: content-box;
|
|
106
|
+
color: var(--yfm-color-modal-wide-content, var(--yfm-color-modal-wide-content-private));
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
|
|
109
|
+
& > svg {
|
|
110
|
+
width: 20px;
|
|
111
|
+
height: 20px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wide-content-overlay {
|
|
116
|
+
z-index: 100;
|
|
117
|
+
width: 100vw;
|
|
118
|
+
height: 100vh;
|
|
119
|
+
position: fixed;
|
|
120
|
+
top: 0;
|
|
121
|
+
left: 0;
|
|
122
|
+
background-color: var(
|
|
123
|
+
--yfm-color-modal-wide-content-overlay,
|
|
124
|
+
var(--yfm-color-modal-wide-content-overlay-private)
|
|
125
|
+
);
|
|
126
|
+
opacity: 0.6;
|
|
127
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
3
|
+
.yfm .yfm-note {
|
|
4
|
+
max-width: 1296px;
|
|
5
|
+
margin: 20px 0;
|
|
6
|
+
padding: 20px 20px 20px 64px;
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
|
|
9
|
+
.yfm-note-title {
|
|
10
|
+
font-weight: 700;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
& > * {
|
|
14
|
+
margin: 0 0 10px;
|
|
15
|
+
|
|
16
|
+
&:first-child {
|
|
17
|
+
&::before {
|
|
18
|
+
box-sizing: content-box;
|
|
19
|
+
display: block;
|
|
20
|
+
width: 24px;
|
|
21
|
+
height: 24px;
|
|
22
|
+
margin-top: -2px;
|
|
23
|
+
margin-left: -44px;
|
|
24
|
+
padding-right: 20px;
|
|
25
|
+
float: left;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// @todo replace with variables
|
|
35
|
+
|
|
36
|
+
$colors: (
|
|
37
|
+
yfm-accent-info: #027bf3,
|
|
38
|
+
yfm-accent-tip: #56bd67,
|
|
39
|
+
yfm-accent-warning: #f19518,
|
|
40
|
+
yfm-accent-alert: #ff4645,
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
@each $type, $color in $colors {
|
|
44
|
+
&.#{$type} > :first-child::before {
|
|
45
|
+
$r: color.channel($color, 'red', $space: rgb);
|
|
46
|
+
$g: color.channel($color, 'green', $space: rgb);
|
|
47
|
+
$b: color.channel($color, 'blue', $space: rgb);
|
|
48
|
+
$rgbColor: 'rgb(' + $r + ',' + $g + ',' + $b + ')';
|
|
49
|
+
content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"%3E%3Ccircle cx="8" cy="8" r="8" fill="' + $rgbColor + '"/%3E%3Crect width="1" height="5" x="7.5" y="6.5" stroke="%23fff" rx=".5"/%3E%3Ccircle cx="8" cy="4" r="1" fill="%23fff"/%3E%3C/svg%3E');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
$backgroundColors: (
|
|
54
|
+
yfm-accent-info:
|
|
55
|
+
var(--yfm-color-note-info-background, var(--yfm-color-note-info-background-private)),
|
|
56
|
+
yfm-accent-tip:
|
|
57
|
+
var(--yfm-color-note-tip-background, var(--yfm-color-note-tip-background-private)),
|
|
58
|
+
yfm-accent-alert:
|
|
59
|
+
var(
|
|
60
|
+
--yfm-color-note-important-background,
|
|
61
|
+
var(--yfm-color-note-important-background-private)
|
|
62
|
+
),
|
|
63
|
+
yfm-accent-warning:
|
|
64
|
+
var(
|
|
65
|
+
--yfm-color-note-warning-background,
|
|
66
|
+
var(--yfm-color-note-warning-background-private)
|
|
67
|
+
),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
@each $type, $color in $backgroundColors {
|
|
71
|
+
&.#{$type} {
|
|
72
|
+
background: $color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.yfm table td {
|
|
2
|
+
&.cell-align-top-left,
|
|
3
|
+
&.cell-align-bottom-left {
|
|
4
|
+
text-align: start;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&.cell-align-top-center,
|
|
8
|
+
&.cell-align-center {
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.cell-align-top-right,
|
|
13
|
+
&.cell-align-bottom-right {
|
|
14
|
+
text-align: end;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.cell-align-top-left,
|
|
18
|
+
&.cell-align-top-center,
|
|
19
|
+
&.cell-align-top-right {
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.cell-align-center {
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.cell-align-bottom-left,
|
|
28
|
+
&.cell-align-bottom-right {
|
|
29
|
+
vertical-align: bottom;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
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-table-background, var(--yfm-color-table-background-private));
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
z-index: -2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
td::after,
|
|
54
|
+
th::after {
|
|
55
|
+
content: '';
|
|
56
|
+
background: var(
|
|
57
|
+
--yfm-color-table-head-background,
|
|
58
|
+
var(--yfm-color-table-head-background-private)
|
|
59
|
+
);
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset: 0;
|
|
62
|
+
z-index: -1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.yfm table[sticky-header] {
|
|
67
|
+
position: relative;
|
|
68
|
+
|
|
69
|
+
thead {
|
|
70
|
+
@include yfm-sticky-header-row;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:not(:has(thead)) {
|
|
74
|
+
tbody > tr:first-child,
|
|
75
|
+
> tr:first-child {
|
|
76
|
+
@include yfm-sticky-header-row;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
max-height: 70vh;
|
|
81
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.yfm-term {
|
|
2
|
+
&_title {
|
|
3
|
+
color: var(--yfm-color-term-title, var(--yfm-color-term-title-private));
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
|
|
6
|
+
border-bottom: 1px dotted;
|
|
7
|
+
|
|
8
|
+
font-size: inherit;
|
|
9
|
+
line-height: inherit;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
color: var(--yfm-color-term-title-hover, var(--yfm-color-term-title-hover-private));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&_dfn {
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: 100;
|
|
20
|
+
|
|
21
|
+
visibility: hidden;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
|
|
24
|
+
padding: 10px;
|
|
25
|
+
|
|
26
|
+
background-color: var(
|
|
27
|
+
--yfm-color-term-dfn-background,
|
|
28
|
+
var(--yfm-color-term-dfn-background-private)
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
font-size: inherit;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
font-style: normal;
|
|
34
|
+
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
|
|
37
|
+
box-shadow: 0 8px 20px
|
|
38
|
+
var(--yfm-color-term-dfn-shadow, var(--yfm-color-term-dfn-shadow-private));
|
|
39
|
+
outline: none;
|
|
40
|
+
|
|
41
|
+
width: fit-content;
|
|
42
|
+
max-width: 450px;
|
|
43
|
+
|
|
44
|
+
@media screen and (max-width: 600px) {
|
|
45
|
+
& {
|
|
46
|
+
max-width: 80%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
z-index: -1;
|
|
54
|
+
inset: 0;
|
|
55
|
+
|
|
56
|
+
border-radius: inherit;
|
|
57
|
+
box-shadow: 0 0 0 1px
|
|
58
|
+
var(
|
|
59
|
+
--yfm-color-term-dfn-pseudo-shadow,
|
|
60
|
+
var(--yfm-color-term-dfn-pseudo-shadow-private)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.open {
|
|
65
|
+
visibility: visible;
|
|
66
|
+
|
|
67
|
+
animation-name: popup;
|
|
68
|
+
animation-duration: 0.1s;
|
|
69
|
+
animation-timing-function: ease-out;
|
|
70
|
+
animation-fill-mode: forwards;
|
|
71
|
+
|
|
72
|
+
@keyframes popup {
|
|
73
|
+
0% {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
transform: translateY(10px);
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
transform: translateY(0);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Note: This file excludes "cut", "file" and "tabs" as they are handled separately
|
|
3
|
+
in dedicated extensions (packages). In the future, "note", "term", "katex"
|
|
4
|
+
and "table" will also be excluded from this file and moved to yfm.scss,
|
|
5
|
+
once they are moved to separate packages. Direct usage is not recommended,
|
|
6
|
+
as the file is subject to changes without prior notice.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@use 'note';
|
|
10
|
+
@use 'katex';
|
|
11
|
+
@use 'table';
|
|
12
|
+
@use 'term';
|
|
13
|
+
@use 'inline-code';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.yfm {
|
|
2
|
+
.yfm-table-container {
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
& > table {
|
|
6
|
+
overflow: initial;
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
max-width: initial;
|
|
11
|
+
transform-origin: top left;
|
|
12
|
+
|
|
13
|
+
thead {
|
|
14
|
+
display: table-row-group;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
th, td {
|
|
18
|
+
page-break-inside: avoid;
|
|
19
|
+
white-space: pre-wrap;
|
|
20
|
+
text-overflow: initial;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@media print {
|
|
2
|
+
.yfm {
|
|
3
|
+
.yfm-tab {
|
|
4
|
+
&-list {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-panel {
|
|
9
|
+
visibility: visible;
|
|
10
|
+
height: auto;
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-panel:before {
|
|
15
|
+
content: attr(data-title);
|
|
16
|
+
margin-bottom: -1px;
|
|
17
|
+
margin-right: 20px;
|
|
18
|
+
border-bottom: 2px solid transparent;
|
|
19
|
+
line-height: 33px;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
outline: 0;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@mixin private-brand {
|
|
2
|
+
--yfm-color-text-private: rgba(0, 0, 0, 0.7);
|
|
3
|
+
--yfm-color-link-private: #027bf3;
|
|
4
|
+
--yfm-color-link-hover-private: #004080;
|
|
5
|
+
--yfm-color-base-private: #ffffff;
|
|
6
|
+
--yfm-color-border-private: rgba(0, 0, 0, 0.07);
|
|
7
|
+
--yfm-color-accent-private: #027bf3;
|
|
8
|
+
|
|
9
|
+
--yfm-color-inline-code-private: rgba(59, 96, 128, 1);
|
|
10
|
+
--yfm-color-inline-code-background-private: rgba(107, 132, 153, 0.12);
|
|
11
|
+
--yfm-color-code-background-private: rgba(107, 132, 153, 0.12);
|
|
12
|
+
--yfm-color-code-background-hovered-private: rgba(107, 132, 153, 0.2);
|
|
13
|
+
|
|
14
|
+
--yfm-color-hljs-background-private: rgba(107, 132, 153, 0.12);
|
|
15
|
+
--yfm-color-hljs-subst-private: #444;
|
|
16
|
+
--yfm-color-hljs-comment-private: #888888;
|
|
17
|
+
--yfm-color-hljs-deletion-private: #880000;
|
|
18
|
+
--yfm-color-hljs-section-private: #880000;
|
|
19
|
+
--yfm-color-hljs-pseudo-private: #bc6060;
|
|
20
|
+
--yfm-color-hljs-literal-private: #78a960;
|
|
21
|
+
--yfm-color-hljs-addition-private: #397300;
|
|
22
|
+
--yfm-color-hljs-meta-private: #1f7199;
|
|
23
|
+
--yfm-color-hljs-meta-string-private: #4d99bf;
|
|
24
|
+
|
|
25
|
+
--yfm-color-note-tip-private: #56bd67;
|
|
26
|
+
--yfm-color-note-tip-background-private: rgba(63, 201, 46, 0.1);
|
|
27
|
+
--yfm-color-note-warning-private: #f19518;
|
|
28
|
+
--yfm-color-note-warning-background-private: rgba(255, 136, 0, 0.15);
|
|
29
|
+
--yfm-color-note-important-private: #ff4645;
|
|
30
|
+
--yfm-color-note-important-background-private: rgba(235, 50, 38, 0.08);
|
|
31
|
+
--yfm-color-note-info-private: #027bf3;
|
|
32
|
+
--yfm-color-note-info-background-private: rgba(2, 123, 243, 0.08);
|
|
33
|
+
|
|
34
|
+
--yfm-color-term-title-private: #027bf3;
|
|
35
|
+
--yfm-color-term-title-hover-private: #004080;
|
|
36
|
+
--yfm-color-term-dfn-background-private: rgb(255, 255, 255);
|
|
37
|
+
--yfm-color-term-dfn-shadow-private: rgba(0, 0, 0, 0.15);
|
|
38
|
+
--yfm-color-term-dfn-pseudo-shadow-private: rgb(229, 229, 229);
|
|
39
|
+
|
|
40
|
+
--yfm-color-modal-content-private: rgb(255, 255, 255);
|
|
41
|
+
--yfm-color-modal-actions-hover-private: rgba(0, 0, 0, 0.05);
|
|
42
|
+
--yfm-color-modal-wide-content-private: rgba(0, 0, 0, 0.85);
|
|
43
|
+
--yfm-color-modal-wide-content-overlay-private: rgb(0, 0, 0);
|
|
44
|
+
|
|
45
|
+
--yfm-color-table-private: #333;
|
|
46
|
+
--yfm-color-table-row-background-private: rgba(0, 0, 0, 0.02);
|
|
47
|
+
--yfm-color-table-border-private: rgba(0, 0, 0, 0.07);
|
|
48
|
+
--yfm-color-table-background-private: #ffffff;
|
|
49
|
+
--yfm-color-table-head-background-private: rgba(0, 0, 0, 0.02);
|
|
50
|
+
--yfm-color-table-stripe-row-background-private: rgba(0, 0, 0, 0.02);
|
|
51
|
+
}
|
package/package.json
CHANGED
package/src/scss/_anchor.scss
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
.yfm-clipboard-anchor {
|
|
9
9
|
//reset default button style
|
|
10
10
|
background: none;
|
|
11
|
-
color: var(--yfm-color-link);
|
|
11
|
+
color: var(--yfm-color-link, var(--yfm-color-link-private));
|
|
12
12
|
border: none;
|
|
13
13
|
padding: 0;
|
|
14
14
|
font: inherit;
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
|
|
17
17
|
&:hover {
|
|
18
|
-
color: var(--yfm-color-link-hover);
|
|
18
|
+
color: var(--yfm-color-link-hover, var(--yfm-color-link-hover-private));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|