@traq-markdown-engine/sdk 0.1.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/LICENSE +22 -0
- package/README.md +193 -0
- package/THIRD_PARTY_NOTICES.md +51 -0
- package/dist/contract.json +18 -0
- package/dist/embedding.d.ts +5 -0
- package/dist/embedding.js +34 -0
- package/dist/generated/artifact.d.ts +2 -0
- package/dist/generated/artifact.js +3 -0
- package/dist/generated/nodes.d.ts +54 -0
- package/dist/generated/nodes.js +17 -0
- package/dist/generated/presets.d.ts +7 -0
- package/dist/generated/presets.js +4 -0
- package/dist/generated/processing.d.ts +48 -0
- package/dist/generated/processing.js +1 -0
- package/dist/index.css +965 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +95 -0
- package/dist/parser.wasm +0 -0
- package/dist/renderer/condensed.d.ts +4 -0
- package/dist/renderer/condensed.js +73 -0
- package/dist/renderer/embeddings.d.ts +23 -0
- package/dist/renderer/embeddings.js +145 -0
- package/dist/renderer/image-domains.d.ts +2 -0
- package/dist/renderer/image-domains.js +11 -0
- package/dist/renderer/index.d.ts +27 -0
- package/dist/renderer/index.js +93 -0
- package/dist/renderer/links.d.ts +8 -0
- package/dist/renderer/links.js +16 -0
- package/package.json +84 -0
- package/styles/animation/_ascension.sass +34 -0
- package/styles/animation/_atsumori.sass +19 -0
- package/styles/animation/_attract.sass +19 -0
- package/styles/animation/_conga.sass +11 -0
- package/styles/animation/_flashy.sass +7 -0
- package/styles/animation/_happa.sass +15 -0
- package/styles/animation/_index.sass +18 -0
- package/styles/animation/_invert.sass +5 -0
- package/styles/animation/_parrot.sass +5 -0
- package/styles/animation/_party.sass +11 -0
- package/styles/animation/_pull.sass +9 -0
- package/styles/animation/_pyon.sass +9 -0
- package/styles/animation/_rainbow.sass +5 -0
- package/styles/animation/_rotate.sass +11 -0
- package/styles/animation/_shake.sass +9 -0
- package/styles/animation/_stretch.sass +47 -0
- package/styles/animation/_turn.sass +11 -0
- package/styles/animation/_wiggle.sass +23 -0
- package/styles/animation/_zoom.sass +9 -0
- package/styles/index.scss +3 -0
- package/styles/markdown.scss +377 -0
- package/styles/stamp.scss +32 -0
- package/styles/stampEffect.scss +102 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@keyframes atsumori
|
|
2
|
+
0%
|
|
3
|
+
transform: scale(2)
|
|
4
|
+
filter: blur(0.3em) opacity(0) saturate(0.4) drop-shadow(0 0 0 rgba(136,136,136,0))
|
|
5
|
+
15%
|
|
6
|
+
transform: scale(1)
|
|
7
|
+
filter: blur(0) opacity(1) saturate(0.4) drop-shadow(0 0 0 rgba(136,136,136,0))
|
|
8
|
+
20%
|
|
9
|
+
transform: scale(1.3)
|
|
10
|
+
filter: blur(0) opacity(1) saturate(1) drop-shadow(0 0 0 rgba(136,136,136,0))
|
|
11
|
+
25%
|
|
12
|
+
transform: scale(1)
|
|
13
|
+
filter: blur(0) opacity(1) saturate(1.5) drop-shadow(-0.1em -0.1em 0.3em rgba(136,136,136,0.5))
|
|
14
|
+
35%
|
|
15
|
+
transform: scale(1)
|
|
16
|
+
filter: blur(0) opacity(1) saturate(1.5) drop-shadow(-0.5em -0.5em 0 rgba(136,136,136,0))
|
|
17
|
+
100%
|
|
18
|
+
transform: scale(1)
|
|
19
|
+
filter: blur(0) opacity(1) saturate(1.5) drop-shadow(0 0 0 rgba(136,136,136,0))
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use "sass:math"
|
|
2
|
+
|
|
3
|
+
@keyframes attract
|
|
4
|
+
@for $i from 0 to 5
|
|
5
|
+
#{$i * 20}%
|
|
6
|
+
// 赤
|
|
7
|
+
filter: invert(1 - math.abs(1 - 0.4 * $i)) grayscale(1) brightness(0.4) sepia(1) hue-rotate(310deg) saturate(6) contrast(0.8)
|
|
8
|
+
#{$i * 20 + 1.528*2}%
|
|
9
|
+
// 黄
|
|
10
|
+
filter: invert(1 - math.abs(1 - 0.4 * ($i + 0.1528*2))) grayscale(1) brightness(0.7) sepia(1) hue-rotate(5deg) saturate(5) contrast(0.7)
|
|
11
|
+
#{$i * 20 + 2.778*2}%
|
|
12
|
+
// 緑
|
|
13
|
+
filter: invert(1 - math.abs(1 - 0.4 * ($i + 0.2778*2))) grayscale(1) brightness(0.4) sepia(1) hue-rotate(50deg) saturate(10) contrast(0.8)
|
|
14
|
+
#{$i * 20 + 6.389*2}%
|
|
15
|
+
// 青
|
|
16
|
+
filter: invert(1 - math.abs(1 - 0.4 * ($i + 0.6389*2))) grayscale(1) brightness(0.3) sepia(1) hue-rotate(180deg) saturate(7) contrast(0.8)
|
|
17
|
+
100%
|
|
18
|
+
// 赤
|
|
19
|
+
filter: invert(0) grayscale(1) brightness(0.4) sepia(1) hue-rotate(310deg) saturate(6) contrast(0.8)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use "sass:math"
|
|
2
|
+
|
|
3
|
+
@keyframes happa
|
|
4
|
+
$len: 8
|
|
5
|
+
@for $i from 0 to $len
|
|
6
|
+
$y: 0
|
|
7
|
+
@if $i % 2 != 0
|
|
8
|
+
$y: -0.2em
|
|
9
|
+
|
|
10
|
+
$r: 0
|
|
11
|
+
@if $i >= math.div($len, 2)
|
|
12
|
+
$r: 0.5turn
|
|
13
|
+
|
|
14
|
+
#{math.percentage(math.div($i, $len))}
|
|
15
|
+
transform: translateY($y) rotateY($r)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@forward './ascension'
|
|
2
|
+
@forward './atsumori'
|
|
3
|
+
@forward './attract'
|
|
4
|
+
@forward './conga'
|
|
5
|
+
@forward './flashy'
|
|
6
|
+
@forward './happa'
|
|
7
|
+
@forward './invert'
|
|
8
|
+
@forward './parrot'
|
|
9
|
+
@forward './party'
|
|
10
|
+
@forward './pull'
|
|
11
|
+
@forward './pyon'
|
|
12
|
+
@forward './rainbow'
|
|
13
|
+
@forward './rotate'
|
|
14
|
+
@forward './shake'
|
|
15
|
+
@forward './stretch'
|
|
16
|
+
@forward './turn'
|
|
17
|
+
@forward './wiggle'
|
|
18
|
+
@forward './zoom'
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "sass:math"
|
|
2
|
+
|
|
3
|
+
@keyframes stretch
|
|
4
|
+
0%
|
|
5
|
+
transform: scaleX(1.0)
|
|
6
|
+
20%
|
|
7
|
+
transform: scaleX(1.75)
|
|
8
|
+
|
|
9
|
+
$start: 22
|
|
10
|
+
$end: 50
|
|
11
|
+
@for $i from 0 through math.div($end - $start, 2)
|
|
12
|
+
$s: 1.65
|
|
13
|
+
@if $i % 2 != 0
|
|
14
|
+
$s: 1.85
|
|
15
|
+
|
|
16
|
+
#{$start + $i*2}%
|
|
17
|
+
transform: scaleX($s)
|
|
18
|
+
|
|
19
|
+
52%
|
|
20
|
+
transform: scaleX(1.75)
|
|
21
|
+
62%
|
|
22
|
+
transform: scaleX(0.8)
|
|
23
|
+
68%
|
|
24
|
+
transform: scaleX(1.0)
|
|
25
|
+
|
|
26
|
+
@keyframes stretch-v
|
|
27
|
+
0%
|
|
28
|
+
transform: scaleY(1.0)
|
|
29
|
+
20%
|
|
30
|
+
transform: scaleY(1.75)
|
|
31
|
+
|
|
32
|
+
$start: 22
|
|
33
|
+
$end: 50
|
|
34
|
+
@for $i from 0 through math.div($end - $start, 2)
|
|
35
|
+
$s: 1.65
|
|
36
|
+
@if $i % 2 != 0
|
|
37
|
+
$s: 1.85
|
|
38
|
+
|
|
39
|
+
#{$start + $i*2}%
|
|
40
|
+
transform: scaleY($s)
|
|
41
|
+
|
|
42
|
+
52%
|
|
43
|
+
transform: scaleY(1.75)
|
|
44
|
+
62%
|
|
45
|
+
transform: scaleY(0.8)
|
|
46
|
+
68%
|
|
47
|
+
transform: scaleY(1.0)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@keyframes wiggle
|
|
2
|
+
0%
|
|
3
|
+
transform: translate(1px, 1px) rotate(0deg)
|
|
4
|
+
10%
|
|
5
|
+
transform: translate(-1px, -2px) rotate(-1deg)
|
|
6
|
+
20%
|
|
7
|
+
transform: translate(-3px, 0px) rotate(1deg)
|
|
8
|
+
30%
|
|
9
|
+
transform: translate(3px, 2px) rotate(0deg)
|
|
10
|
+
40%
|
|
11
|
+
transform: translate(1px, -1px) rotate(1deg)
|
|
12
|
+
50%
|
|
13
|
+
transform: translate(-1px, 2px) rotate(-1deg)
|
|
14
|
+
60%
|
|
15
|
+
transform: translate(-3px, 1px) rotate(0deg)
|
|
16
|
+
70%
|
|
17
|
+
transform: translate(3px, 1px) rotate(-1deg)
|
|
18
|
+
80%
|
|
19
|
+
transform: translate(-1px, -1px) rotate(1deg)
|
|
20
|
+
90%
|
|
21
|
+
transform: translate(1px, 2px) rotate(0deg)
|
|
22
|
+
100%
|
|
23
|
+
transform: translate(1px, -2px) rotate(-1deg)
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
$link-color: #0366d6 !default;
|
|
2
|
+
$hr-color: #e1e4e8 !default;
|
|
3
|
+
$h6-color: #6a737d !default;
|
|
4
|
+
$quote-text-color: #6a737d !default;
|
|
5
|
+
$quote-bar-color: #dfe2e5 !default;
|
|
6
|
+
$code-background-color: #243342 !default;
|
|
7
|
+
$code-file-name-background-color: rgba(0, 0, 0, 0.1) !default;
|
|
8
|
+
$table-td-border-color: #dfe2e5 !default;
|
|
9
|
+
$table-tr-border-color: #c6cbd1 !default;
|
|
10
|
+
$table-tr-background-color: #fff !default;
|
|
11
|
+
$table-tr-background-color2: #f6f8fa !default;
|
|
12
|
+
$img-background-color: #fff !default;
|
|
13
|
+
$mark-color: black !default;
|
|
14
|
+
$mark-background-color: yellow !default;
|
|
15
|
+
$spoiler-background-color: black !default;
|
|
16
|
+
$spoiler-shown-background-color: rgba(0, 0, 0, 0.1) !default;
|
|
17
|
+
$link-text-color: #005bac !default;
|
|
18
|
+
$link-background-color: transparent !default;
|
|
19
|
+
$link-highlight-text-color: #005bac !default;
|
|
20
|
+
$link-highlight-background-color: #faffad !default;
|
|
21
|
+
|
|
22
|
+
.markdown-body {
|
|
23
|
+
-ms-text-size-adjust: 100%;
|
|
24
|
+
-webkit-text-size-adjust: 100%;
|
|
25
|
+
line-height: 1.2;
|
|
26
|
+
word-wrap: break-word;
|
|
27
|
+
|
|
28
|
+
> :first-child {
|
|
29
|
+
margin-top: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
> :last-child {
|
|
32
|
+
margin-bottom: 0 !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
a {
|
|
36
|
+
color: $link-color;
|
|
37
|
+
background-color: initial;
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
&:active,
|
|
40
|
+
&:hover {
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
outline-width: 0;
|
|
43
|
+
}
|
|
44
|
+
&:not([href]) {
|
|
45
|
+
color: inherit;
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
strong {
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
hr {
|
|
55
|
+
height: 0.25em;
|
|
56
|
+
padding: 0;
|
|
57
|
+
margin: 12px 0;
|
|
58
|
+
border: 0;
|
|
59
|
+
background-color: $hr-color;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h1,
|
|
64
|
+
h2,
|
|
65
|
+
h3,
|
|
66
|
+
h4,
|
|
67
|
+
h5,
|
|
68
|
+
h6 {
|
|
69
|
+
margin-top: 12px;
|
|
70
|
+
margin-bottom: 8px;
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
line-height: 1.25;
|
|
73
|
+
}
|
|
74
|
+
h1,
|
|
75
|
+
h2 {
|
|
76
|
+
padding-bottom: 0.3em;
|
|
77
|
+
}
|
|
78
|
+
h1 {
|
|
79
|
+
font-size: 2em;
|
|
80
|
+
}
|
|
81
|
+
h2 {
|
|
82
|
+
font-size: 1.5em;
|
|
83
|
+
}
|
|
84
|
+
h3 {
|
|
85
|
+
font-size: 1.25em;
|
|
86
|
+
}
|
|
87
|
+
h4 {
|
|
88
|
+
font-size: 1em;
|
|
89
|
+
}
|
|
90
|
+
h5 {
|
|
91
|
+
font-size: 0.875em;
|
|
92
|
+
transform: rotate(0.03deg);
|
|
93
|
+
}
|
|
94
|
+
h6 {
|
|
95
|
+
font-size: 0.85em;
|
|
96
|
+
transform: rotate(0.03deg);
|
|
97
|
+
color: $h6-color;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
p {
|
|
101
|
+
margin-top: 0;
|
|
102
|
+
margin-bottom: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
blockquote {
|
|
106
|
+
position: relative;
|
|
107
|
+
margin-top: 0;
|
|
108
|
+
margin-bottom: 8px;
|
|
109
|
+
padding: 0 12px;
|
|
110
|
+
color: $quote-text-color;
|
|
111
|
+
> :first-child {
|
|
112
|
+
margin-top: 0;
|
|
113
|
+
}
|
|
114
|
+
> :last-child {
|
|
115
|
+
margin-bottom: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::before {
|
|
119
|
+
content: '';
|
|
120
|
+
position: absolute;
|
|
121
|
+
display: block;
|
|
122
|
+
top: 0;
|
|
123
|
+
left: 0;
|
|
124
|
+
width: 0.25em;
|
|
125
|
+
height: 100%;
|
|
126
|
+
background: $quote-bar-color;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
> blockquote,
|
|
130
|
+
:not(blockquote) > blockquote {
|
|
131
|
+
$bottom-padding: 4px;
|
|
132
|
+
padding-bottom: $bottom-padding;
|
|
133
|
+
overflow-x: auto;
|
|
134
|
+
&::before {
|
|
135
|
+
height: calc(100% - #{$bottom-padding});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
ol {
|
|
140
|
+
list-style: decimal;
|
|
141
|
+
}
|
|
142
|
+
ul {
|
|
143
|
+
list-style: disc;
|
|
144
|
+
}
|
|
145
|
+
ol,
|
|
146
|
+
ul {
|
|
147
|
+
padding-left: 2em;
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
margin-bottom: 8px;
|
|
150
|
+
word-break: break-all;
|
|
151
|
+
ol {
|
|
152
|
+
list-style-type: lower-roman;
|
|
153
|
+
}
|
|
154
|
+
ol,
|
|
155
|
+
ul {
|
|
156
|
+
margin-top: 0;
|
|
157
|
+
margin-bottom: 0;
|
|
158
|
+
ol {
|
|
159
|
+
list-style-type: lower-alpha;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
li {
|
|
164
|
+
> p {
|
|
165
|
+
margin-top: 8px;
|
|
166
|
+
}
|
|
167
|
+
+ li {
|
|
168
|
+
margin-top: 4px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
> ul,
|
|
172
|
+
> ol,
|
|
173
|
+
:not(li) > ul,
|
|
174
|
+
:not(li) > ol {
|
|
175
|
+
padding-bottom: 4px;
|
|
176
|
+
overflow: auto;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
code,
|
|
180
|
+
pre {
|
|
181
|
+
font-family:
|
|
182
|
+
SFMono-Regular,
|
|
183
|
+
Consolas,
|
|
184
|
+
Liberation Mono,
|
|
185
|
+
Menlo,
|
|
186
|
+
monospace;
|
|
187
|
+
font-size: 0.85em;
|
|
188
|
+
border-radius: 4px;
|
|
189
|
+
background-color: $code-background-color;
|
|
190
|
+
}
|
|
191
|
+
code {
|
|
192
|
+
display: inline-block;
|
|
193
|
+
padding: 2px 6px;
|
|
194
|
+
margin: 2px 0;
|
|
195
|
+
}
|
|
196
|
+
s > code {
|
|
197
|
+
text-decoration: line-through;
|
|
198
|
+
}
|
|
199
|
+
pre {
|
|
200
|
+
position: relative;
|
|
201
|
+
margin-top: 0;
|
|
202
|
+
margin-bottom: 16px;
|
|
203
|
+
overflow-wrap: normal;
|
|
204
|
+
line-height: 1.45;
|
|
205
|
+
cite {
|
|
206
|
+
position: absolute;
|
|
207
|
+
top: 0;
|
|
208
|
+
right: 0;
|
|
209
|
+
padding: 0 4px;
|
|
210
|
+
border-bottom-left-radius: 4px;
|
|
211
|
+
background-color: $code-file-name-background-color;
|
|
212
|
+
}
|
|
213
|
+
code {
|
|
214
|
+
display: block;
|
|
215
|
+
padding: 16px;
|
|
216
|
+
margin: 0;
|
|
217
|
+
border: 0;
|
|
218
|
+
font-size: 1em;
|
|
219
|
+
overflow: auto;
|
|
220
|
+
word-break: normal;
|
|
221
|
+
overflow-wrap: normal;
|
|
222
|
+
white-space: pre;
|
|
223
|
+
line-height: inherit;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
table {
|
|
228
|
+
display: block;
|
|
229
|
+
width: 100%;
|
|
230
|
+
margin-top: 0;
|
|
231
|
+
margin-bottom: 16px;
|
|
232
|
+
padding-bottom: 4px;
|
|
233
|
+
overflow: auto;
|
|
234
|
+
border-spacing: 0;
|
|
235
|
+
border-collapse: collapse;
|
|
236
|
+
}
|
|
237
|
+
td,
|
|
238
|
+
th {
|
|
239
|
+
padding: 4px 12px;
|
|
240
|
+
border: 1px solid $table-td-border-color;
|
|
241
|
+
}
|
|
242
|
+
th {
|
|
243
|
+
font-weight: bold;
|
|
244
|
+
}
|
|
245
|
+
tr {
|
|
246
|
+
border-top: 1px solid $table-tr-border-color;
|
|
247
|
+
background-color: $table-tr-background-color;
|
|
248
|
+
&:nth-child(2n) {
|
|
249
|
+
background-color: $table-tr-background-color2;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
mark {
|
|
254
|
+
color: $mark-color;
|
|
255
|
+
background-color: $mark-background-color;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
img {
|
|
259
|
+
max-width: 100%;
|
|
260
|
+
border-style: none;
|
|
261
|
+
box-sizing: initial;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.katex-block {
|
|
265
|
+
overflow: auto;
|
|
266
|
+
margin-bottom: 4px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.spoiler {
|
|
270
|
+
color: transparent;
|
|
271
|
+
background-color: $spoiler-background-color;
|
|
272
|
+
user-select: none;
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
|
|
275
|
+
&:not([shown]) {
|
|
276
|
+
* {
|
|
277
|
+
visibility: hidden;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&[shown] {
|
|
282
|
+
color: inherit;
|
|
283
|
+
background-color: $spoiler-shown-background-color;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.message-user-link,
|
|
288
|
+
.message-channel-link,
|
|
289
|
+
.message-group-link {
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
color: $link-text-color;
|
|
292
|
+
background-color: $link-background-color;
|
|
293
|
+
font-weight: bold;
|
|
294
|
+
}
|
|
295
|
+
.message-user-link-highlight,
|
|
296
|
+
.message-group-link-highlight {
|
|
297
|
+
color: $link-highlight-text-color;
|
|
298
|
+
background-color: $link-highlight-background-color;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.markdown-inline-body {
|
|
303
|
+
a {
|
|
304
|
+
color: $link-color;
|
|
305
|
+
background-color: initial;
|
|
306
|
+
text-decoration: none;
|
|
307
|
+
&:active,
|
|
308
|
+
&:hover {
|
|
309
|
+
text-decoration: underline;
|
|
310
|
+
outline-width: 0;
|
|
311
|
+
}
|
|
312
|
+
&:not([href]) {
|
|
313
|
+
color: inherit;
|
|
314
|
+
text-decoration: none;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
code {
|
|
318
|
+
display: inline;
|
|
319
|
+
padding: 2px 6px;
|
|
320
|
+
font-family:
|
|
321
|
+
SFMono-Regular,
|
|
322
|
+
Consolas,
|
|
323
|
+
Liberation Mono,
|
|
324
|
+
Menlo,
|
|
325
|
+
monospace;
|
|
326
|
+
font-size: 0.85em;
|
|
327
|
+
border-radius: 4px;
|
|
328
|
+
background-color: $code-background-color;
|
|
329
|
+
}
|
|
330
|
+
s > code {
|
|
331
|
+
text-decoration: line-through;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
mark {
|
|
335
|
+
color: $mark-color;
|
|
336
|
+
background-color: $mark-background-color;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.spoiler {
|
|
340
|
+
color: transparent;
|
|
341
|
+
background-color: $spoiler-background-color;
|
|
342
|
+
user-select: none;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
|
|
345
|
+
&:not([shown]) {
|
|
346
|
+
* {
|
|
347
|
+
visibility: hidden;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&[shown] {
|
|
352
|
+
color: inherit;
|
|
353
|
+
background-color: $spoiler-shown-background-color;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.message-user-link,
|
|
358
|
+
.message-channel-link,
|
|
359
|
+
.message-group-link {
|
|
360
|
+
cursor: pointer;
|
|
361
|
+
color: $link-text-color;
|
|
362
|
+
background-color: $link-background-color;
|
|
363
|
+
font-weight: bold;
|
|
364
|
+
}
|
|
365
|
+
.message-user-link-highlight,
|
|
366
|
+
.message-group-link-highlight {
|
|
367
|
+
color: $link-highlight-text-color;
|
|
368
|
+
background-color: $link-highlight-background-color;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.message-emoji {
|
|
372
|
+
&.large,
|
|
373
|
+
&.ex-large {
|
|
374
|
+
font-size: 24px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.emoji {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
text-indent: 999%;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
color: transparent;
|
|
7
|
+
background-size: contain;
|
|
8
|
+
background-repeat: no-repeat;
|
|
9
|
+
background-position: center center;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.emoji-effect {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.emoji {
|
|
19
|
+
width: 1em;
|
|
20
|
+
height: 1em;
|
|
21
|
+
font-size: 24px;
|
|
22
|
+
|
|
23
|
+
&.ex-large {
|
|
24
|
+
font-size: 48px;
|
|
25
|
+
}
|
|
26
|
+
&.large {
|
|
27
|
+
font-size: 32px;
|
|
28
|
+
}
|
|
29
|
+
&.small {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
}
|
|
32
|
+
}
|