summaryrefslogtreecommitdiff
path: root/ext/data/structured-content-style.json
blob: cae7ff9f70744e3264c480182ebb28ceb9560443 (plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
[
    {
        "selectors": [".gloss-image-container"],
        "styles": [
            ["display", "inline-block"],
            ["white-space", "nowrap"],
            ["max-width", "100%"],
            ["max-height", "100vh"],
            ["position", "relative"],
            ["vertical-align", "top"],
            ["line-height", "0"],
            ["overflow", "hidden"],
            ["font-size", "1px"]
        ]
    },
    {
        "selectors": [".gloss-image-link"],
        "styles": [
            ["cursor", "inherit"],
            ["color", "inherit"],
            ["display", "inline-block"],
            ["position", "relative"],
            ["line-height", "1"],
            ["max-width", "100%"]
        ]
    },
    {
        "selectors": [".gloss-image-link[href]:hover"],
        "styles": [
            ["cursor", "pointer"]
        ]
    },
    {
        "selectors": [".gloss-image-container-overlay"],
        "styles": [
            ["position", "absolute"],
            ["left", "0"],
            ["top", "0"],
            ["width", "100%"],
            ["height", "100%"],
            ["display", "table"],
            ["table-layout", "fixed"],
            ["white-space", "normal"],
            ["font-size", "initial"],
            ["line-height", "initial"],
            ["color", "initial"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-has-image=true][data-image-load-state=load-error] .gloss-image-container-overlay::after"],
        "styles": [
            ["content", "'Image failed to load'"],
            ["display", "table-cell"],
            ["width", "100%"],
            ["height", "100%"],
            ["vertical-align", "middle"],
            ["text-align", "center"],
            ["padding", "0.25em"]
        ]
    },
    {
        "selectors": [".gloss-image-background"],
        "styles": [
            ["--image", "none"],
            ["position", "absolute"],
            ["left", "0"],
            ["top", "0"],
            ["width", "100%"],
            ["height", "100%"],
            ["-webkit-mask-repeat", "no-repeat"],
            ["-webkit-mask-position", "center center"],
            ["-webkit-mask-mode", "alpha"],
            ["-webkit-mask-size", "contain"],
            ["-webkit-mask-image", "var(--image)"],
            ["mask-repeat", "no-repeat"],
            ["mask-position", "center center"],
            ["mask-mode", "alpha"],
            ["mask-size", "contain"],
            ["mask-image", "var(--image)"],
            ["background-color", "currentColor"]
        ]
    },
    {
        "selectors": [".gloss-image"],
        "styles": [
            ["display", "inline-block"],
            ["vertical-align", "top"],
            ["object-fit", "contain"],
            ["border", "none"],
            ["outline", "none"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-has-aspect-ratio=true] .gloss-image"],
        "styles": [
            ["position", "absolute"],
            ["left", "0"],
            ["top", "0"],
            ["width", "100%"],
            ["height", "100%"]
        ]
    },
    {
        "selectors": [".gloss-image:not([src])"],
        "styles": [
            ["display", "none"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-image-rendering=pixelated] .gloss-image",
            ".gloss-image-link[data-image-rendering=pixelated] .gloss-image-background"
        ],
        "styles": [
            ["image-rendering", "auto"],
            ["image-rendering", "-moz-crisp-edges"],
            ["image-rendering", "-webkit-optimize-contrast"],
            ["image-rendering", "pixelated"],
            ["image-rendering", "crisp-edges"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-image-rendering=crisp-edges] .gloss-image",
            ".gloss-image-link[data-image-rendering=crisp-edges] .gloss-image-background"
        ],
        "styles": [
            ["image-rendering", "auto"],
            ["image-rendering", "-moz-crisp-edges"],
            ["image-rendering", "-webkit-optimize-contrast"],
            ["image-rendering", "crisp-edges"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-has-aspect-ratio=true] .gloss-image-sizer"],
        "styles": [
            ["display", "inline-block"],
            ["width", "0"],
            ["vertical-align", "top"],
            ["font-size", "0"]
        ]
    },
    {
        "selectors": [".gloss-image-link-text"],
        "styles": [
            ["display", "none"],
            ["line-height", "initial"]
        ]
    },
    {
        "selectors": [".gloss-image-link-text::before"],
        "styles": [
            ["content", "'['"]
        ]
    },
    {
        "selectors": [".gloss-image-link-text::after"],
        "styles": [
            ["content", "']'"]
        ]
    },
    {
        "selectors": [".gloss-image-description"],
        "styles": [
            ["display", "block"],
            ["white-space", "pre-line"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-appearance=monochrome] .gloss-image"],
        "styles": [
            ["visibility", "hidden"]
        ]
    },
    {
        "selectors": [".gloss-image-link:not([data-appearance=monochrome]) .gloss-image-background"],
        "styles": [
            ["display", "none"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-size-units=em] .gloss-image-container"],
        "styles": [
            ["font-size", "1em"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=baseline]"],
        "styles": [
            ["vertical-align", "baseline"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=sub]"],
        "styles": [
            ["vertical-align", "sub"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=super]"],
        "styles": [
            ["vertical-align", "super"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=text-top]"],
        "styles": [
            ["vertical-align", "top"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=text-bottom]"],
        "styles": [
            ["vertical-align", "bottom"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=middle]"],
        "styles": [
            ["vertical-align", "middle"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=top]"],
        "styles": [
            ["vertical-align", "top"]
        ]
    },
    {
        "selectors": [".gloss-image-link[data-vertical-align=bottom]"],
        "styles": [
            ["vertical-align", "bottom"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-collapsed=true]",
            ":root[data-glossary-layout-mode=compact] .gloss-image-link[data-collapsible=true]"
        ],
        "styles": [
            ["vertical-align", "baseline"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-collapsed=true] .gloss-image-container",
            ":root[data-glossary-layout-mode=compact] .gloss-image-link[data-collapsible=true] .gloss-image-container"
        ],
        "styles": [
            ["display", "none"],
            ["position", "absolute"],
            ["left", "0"],
            ["top", "100%"],
            ["z-index", "1"]
        ]
    },
    {
        "selectors": [
            ".entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsed=true] .gloss-image-container",
            ":root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container"
        ],
        "styles": [
            ["bottom", "100%"],
            ["top", "auto"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-collapsed=true]:hover .gloss-image-container",
            ".gloss-image-link[data-collapsed=true]:focus .gloss-image-container",
            ":root[data-glossary-layout-mode=compact] .gloss-image-link[data-collapsible=true]:hover .gloss-image-container",
            ":root[data-glossary-layout-mode=compact] .gloss-image-link[data-collapsible=true]:focus .gloss-image-container"
        ],
        "styles": [
            ["display", "block"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-collapsed=true] .gloss-image-link-text",
            ":root[data-glossary-layout-mode=compact] .gloss-image-link[data-collapsible=true] .gloss-image-link-text"
        ],
        "styles": [
            ["display", "inline"]
        ]
    },
    {
        "selectors": [
            ".gloss-image-link[data-collapsed=true]~.gloss-image-description",
            ":root[data-glossary-layout-mode=compact] .gloss-image-description"
        ],
        "styles": [
            ["display", "inline"]
        ]
    },
    {
        "selectors": [".gloss-sc-table-container"],
        "styles": [
            ["display", "block"]
        ]
    },
    {
        "selectors": [".gloss-sc-table"],
        "styles": [
            ["table-layout", "auto"],
            ["border-collapse", "collapse"]
        ]
    },
    {
        "selectors": [
            ".gloss-sc-thead",
            ".gloss-sc-tfoot",
            ".gloss-sc-th"
        ],
        "styles": [
            ["font-weight", "bold"]
        ]
    },
    {
        "selectors": [
            ".gloss-sc-th",
            ".gloss-sc-td"
        ],
        "styles": [
            ["border-style", "solid"],
            ["padding", "0.25em"],
            ["vertical-align", "top"],
            ["border-width", "1px"],
            ["border-color", "currentColor"]
        ]
    }
]