@hackersheet/react-document-content-styles 0.1.0-alpha.10 → 0.1.0-alpha.12

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.
Files changed (2) hide show
  1. package/dist/basic.module.css +144 -84
  2. package/package.json +1 -1
@@ -84,7 +84,7 @@
84
84
  .main ol ul ul {
85
85
  list-style-type: square;
86
86
  }
87
- .main table:not(:global .gist-block table) {
87
+ .main table:not(:global(.gist-block) table) {
88
88
  margin: 1.5rem 0;
89
89
  width: 100%;
90
90
  table-layout: fixed;
@@ -94,31 +94,31 @@
94
94
  border: 1px solid hsl(var(--hsdc-border));
95
95
  overflow: hidden;
96
96
  }
97
- .main table:not(:global .gist-block table) thead {
97
+ .main table:not(:global(.gist-block) table) thead {
98
98
  background-color: hsl(var(--hsdc-muted));
99
99
  }
100
- .main table:not(:global .gist-block table) tbody td {
100
+ .main table:not(:global(.gist-block) table) tbody td {
101
101
  border-top: 1px solid hsl(var(--hsdc-border));
102
102
  }
103
- .main table:not(:global .gist-block table) tbody tr:hover {
103
+ .main table:not(:global(.gist-block) table) tbody tr:hover {
104
104
  background-color: hsl(var(--hsdc-muted)/0.5);
105
105
  }
106
- .main table:not(:global .gist-block table) th,
107
- .main table:not(:global .gist-block table) td {
106
+ .main table:not(:global(.gist-block) table) th,
107
+ .main table:not(:global(.gist-block) table) td {
108
108
  padding: 0.5rem;
109
109
  font-size: 0.875rem;
110
110
  text-align: left;
111
111
  }
112
- .main table:not(:global .gist-block table) th :global(&.left),
113
- .main table:not(:global .gist-block table) td :global(&.left) {
112
+ .main table:not(:global(.gist-block) table) th:global(.left),
113
+ .main table:not(:global(.gist-block) table) td:global(.left) {
114
114
  text-align: left;
115
115
  }
116
- .main table:not(:global .gist-block table) th :global(&.center),
117
- .main table:not(:global .gist-block table) td :global(&.center) {
116
+ .main table:not(:global(.gist-block) table) th:global(.center),
117
+ .main table:not(:global(.gist-block) table) td:global(.center) {
118
118
  text-align: center;
119
119
  }
120
- .main table:not(:global .gist-block table) th :global(&.right),
121
- .main table:not(:global .gist-block table) td :global(&.right) {
120
+ .main table:not(:global(.gist-block) table) th:global(.right),
121
+ .main table:not(:global(.gist-block) table) td:global(.right) {
122
122
  text-align: right;
123
123
  }
124
124
  .main del {
@@ -162,15 +162,15 @@
162
162
  background-color: hsl(var(--hsdc-muted)/0.5);
163
163
  }
164
164
 
165
- .main :global .heading:has(a) {
165
+ .main :global(.heading):has(a) {
166
166
  padding: 0;
167
167
  }
168
- .main :global .heading a {
168
+ .main :global(.heading) a {
169
169
  display: block;
170
170
  padding: 0.5rem 0;
171
171
  color: inherit;
172
172
  }
173
- .main :global .heading a .heading-link-icon {
173
+ .main :global(.heading) a :global(.heading-link-icon) {
174
174
  margin-left: 0.5rem;
175
175
  display: none;
176
176
  line-height: 1.1;
@@ -179,19 +179,19 @@
179
179
  vertical-align: middle;
180
180
  color: hsl(var(--hsdc-muted-foreground));
181
181
  }
182
- .main :global .heading:hover .heading-link-icon {
182
+ .main :global(.heading):hover :global(.heading-link-icon) {
183
183
  display: inline-block;
184
184
  }
185
- .main :global .footnotes {
185
+ .main :global(.footnotes) {
186
186
  margin-top: 4rem;
187
187
  padding-top: 2rem;
188
188
  border-top: 1px solid hsl(var(--hsdc-border));
189
189
  color: hsl(var(--hsdc-muted-foreground));
190
190
  }
191
- .main :global .footnotes p {
191
+ .main :global(.footnotes) p {
192
192
  margin: 0;
193
193
  }
194
- .main :global .footnotes .sr-only {
194
+ .main :global(.footnotes) :global(.sr-only) {
195
195
  position: absolute;
196
196
  width: 1px;
197
197
  height: 1px;
@@ -202,39 +202,39 @@
202
202
  white-space: nowrap;
203
203
  border-width: 0;
204
204
  }
205
- .main :global .contains-task-list {
205
+ .main :global(.contains-task-list) {
206
206
  list-style-type: none;
207
207
  padding-left: 0;
208
208
  }
209
- .main :global .contains-task-list input {
209
+ .main :global(.contains-task-list) input {
210
210
  margin-right: 0.5rem;
211
211
  }
212
- .main :global .contains-task-list li:has(input:checked) {
212
+ .main :global(.contains-task-list) li:has(input:checked) {
213
213
  text-decoration: line-through;
214
214
  }
215
- .main :global .react-tweet-theme {
215
+ .main :global(.react-tweet-theme) {
216
216
  margin-left: auto;
217
217
  margin-right: auto;
218
218
  }
219
- .main :global .react-tweet-theme p {
219
+ .main :global(.react-tweet-theme) p {
220
220
  margin: 0;
221
221
  line-height: 1.5;
222
222
  font-size: 1rem;
223
223
  }
224
- .main :global .code-block {
224
+ .main :global(.code-block) {
225
225
  margin: 1.5rem 0;
226
226
  border: 1px solid hsl(var(--hsdc-border));
227
227
  border-radius: 0.25rem;
228
228
  overflow: hidden;
229
229
  }
230
- .main :global .code-block pre {
230
+ .main :global(.code-block) pre {
231
231
  font-family: var(--hsdc-font-code);
232
232
  font-size: 0.875rem;
233
233
  padding: 1rem;
234
234
  overflow: auto;
235
235
  background-color: hsl(var(--hsdc-code-block));
236
236
  }
237
- .main :global .code-block .code-block-header {
237
+ .main :global(.code-block) :global(.code-block-header) {
238
238
  display: flex;
239
239
  flex-direction: row;
240
240
  align-items: center;
@@ -245,20 +245,20 @@
245
245
  background-color: hsl(var(--hsdc-muted));
246
246
  border-bottom: 1px solid hsl(var(--hsdc-border));
247
247
  }
248
- .main :global .code-block .code-block-header > div {
248
+ .main :global(.code-block) :global(.code-block-header) > div {
249
249
  display: flex;
250
250
  align-items: center;
251
251
  justify-items: center;
252
252
  }
253
- .main :global .code-block .code-block-filename {
253
+ .main :global(.code-block) :global(.code-block-filename) {
254
254
  flex: 1 1 auto;
255
255
  }
256
- .main :global .shiki code {
256
+ .main :global(.shiki) code {
257
257
  display: block;
258
258
  width: fit-content;
259
259
  min-width: 100%;
260
260
  }
261
- .main :global .shiki span.line {
261
+ .main :global(.shiki) :global(span.line) {
262
262
  display: inline-block;
263
263
  position: relative;
264
264
  width: fit-content;
@@ -266,47 +266,47 @@
266
266
  margin: 0 -1rem;
267
267
  padding: 0 1rem;
268
268
  }
269
- .main :global .shiki span.line.highlighted {
269
+ .main :global(.shiki) :global(span.line.highlighted) {
270
270
  background-color: hsl(var(--hsdc-shiki-highlighted-word)/0.1) !important;
271
271
  }
272
- .main :global .shiki span.line.diff.add {
272
+ .main :global(.shiki) :global(span.line.diff.add) {
273
273
  background-color: hsl(var(--hsdc-shiki-diff-add)/0.1) !important;
274
274
  }
275
- .main :global .shiki span.line.diff.add::before {
275
+ .main :global(.shiki) :global(span.line.diff.add)::before {
276
276
  position: absolute;
277
277
  left: 2px;
278
278
  content: "+";
279
279
  color: hsl(var(--hsdc-shiki-diff-add));
280
280
  }
281
- .main :global .shiki span.line.diff.remove {
281
+ .main :global(.shiki) :global(span.line.diff.remove) {
282
282
  background-color: hsl(var(--hsdc-shiki-diff-remove)/0.1) !important;
283
283
  }
284
- .main :global .shiki span.line.diff.remove::before {
284
+ .main :global(.shiki) :global(span.line.diff.remove)::before {
285
285
  position: absolute;
286
286
  left: 2px;
287
287
  content: "-";
288
288
  color: hsl(var(--hsdc-shiki-diff-remove));
289
289
  }
290
- .main :global .shiki .highlighted-word {
290
+ .main :global(.shiki) :global(.highlighted-word) {
291
291
  background-color: hsl(var(--hsdc-shiki-highlighted-word)/0.2);
292
292
  padding: 0.125rem 0;
293
293
  margin: -0.125rem 0;
294
294
  }
295
- .main :global .shiki .tab,
296
- .main :global .shiki .space {
295
+ .main :global(.shiki) :global(.tab),
296
+ .main :global(.shiki) :global(.space) {
297
297
  position: relative;
298
298
  }
299
- .main :global .shiki .tab::before {
299
+ .main :global(.shiki) :global(.tab::before) {
300
300
  content: "⇥";
301
301
  position: absolute;
302
302
  opacity: 0.3;
303
303
  }
304
- .main :global .shiki .space::before {
304
+ .main :global(.shiki) :global(.space::before) {
305
305
  content: "·";
306
306
  position: absolute;
307
307
  opacity: 0.3;
308
308
  }
309
- .main :global .link-card {
309
+ .main :global(.link-card) {
310
310
  display: flex;
311
311
  flex-direction: row;
312
312
  border: 1px solid hsl(var(--hsdc-border));
@@ -317,11 +317,11 @@
317
317
  max-height: 144px;
318
318
  margin: 1.8rem 0;
319
319
  }
320
- .main :global .link-card:hover {
320
+ .main :global(.link-card):hover {
321
321
  text-decoration: none;
322
322
  background-color: hsl(var(--hsdc-muted)/0.5);
323
323
  }
324
- .main :global .link-card .link-card-main {
324
+ .main :global(.link-card) :global(.link-card-main) {
325
325
  flex: 1;
326
326
  display: flex;
327
327
  flex-direction: column;
@@ -329,41 +329,41 @@
329
329
  overflow: hidden;
330
330
  gap: 0.5rem;
331
331
  }
332
- .main :global .link-card .link-card-main .link-card-title,
333
- .main :global .link-card .link-card-main .link-card-description,
334
- .main :global .link-card .link-card-main .link-card-domain {
332
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-title),
333
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-description),
334
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-domain) {
335
335
  overflow: hidden;
336
336
  display: -webkit-box;
337
337
  -webkit-box-orient: vertical;
338
338
  -webkit-line-clamp: 2;
339
339
  line-clamp: 2;
340
340
  }
341
- .main :global .link-card .link-card-main .link-card-title-container {
341
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-title-container) {
342
342
  flex: 1 1 auto;
343
343
  }
344
- .main :global .link-card .link-card-main .link-card-title-container .link-card-title {
344
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-title-container) :global(.link-card-title) {
345
345
  font-size: 0.875rem;
346
346
  -webkit-line-clamp: 4;
347
347
  line-clamp: 4;
348
348
  }
349
349
  @media (min-width: 640px) {
350
- .main :global .link-card .link-card-main .link-card-title-container .link-card-title {
350
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-title-container) :global(.link-card-title) {
351
351
  font-size: 1rem;
352
352
  -webkit-line-clamp: 2;
353
353
  line-clamp: 2;
354
354
  }
355
355
  }
356
- .main :global .link-card .link-card-main .link-card-description {
356
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-description) {
357
357
  font-size: 0.75rem;
358
358
  display: none;
359
359
  color: hsl(var(--hsdc-muted-foreground));
360
360
  }
361
361
  @media (min-width: 640px) {
362
- .main :global .link-card .link-card-main .link-card-description {
362
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-description) {
363
363
  display: -webkit-box;
364
364
  }
365
365
  }
366
- .main :global .link-card .link-card-main .link-card-domain {
366
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-domain) {
367
367
  display: flex;
368
368
  flex-direction: row;
369
369
  align-items: center;
@@ -371,15 +371,15 @@
371
371
  font-size: 0.75rem;
372
372
  color: hsl(var(--hsdc-muted-foreground));
373
373
  }
374
- .main :global .link-card .link-card-main .link-card-domain > div {
374
+ .main :global(.link-card) :global(.link-card-main) :global(.link-card-domain) > div {
375
375
  text-wrap: nowrap;
376
376
  text-overflow: ellipsis;
377
377
  overflow: hidden;
378
378
  }
379
- .main :global .link-card .link-card-image {
379
+ .main :global(.link-card) :global(.link-card-image) {
380
380
  width: 35%;
381
381
  }
382
- .main :global .link-card .link-card-image img {
382
+ .main :global(.link-card) :global(.link-card-image) img {
383
383
  object-fit: contain;
384
384
  object-position: top;
385
385
  padding: 0.5rem;
@@ -387,104 +387,164 @@
387
387
  height: 100%;
388
388
  }
389
389
  @media (min-width: 640px) {
390
- .main :global .link-card .link-card-image img {
390
+ .main :global(.link-card) :global(.link-card-image) img {
391
391
  object-fit: cover;
392
392
  object-position: center;
393
393
  padding: 0;
394
394
  }
395
395
  }
396
- .main :global .markdown-alert {
396
+ .main :global(.markdown-alert) {
397
397
  padding: 0.5rem 1rem;
398
398
  margin-bottom: 1.8rem;
399
399
  border-left: 0.25em solid var(--github-alert-default-color);
400
400
  }
401
- .main :global .markdown-alert > :first-child {
401
+ .main :global(.markdown-alert) > :first-child {
402
402
  margin-top: 0;
403
403
  }
404
- .main :global .markdown-alert > :nth-child(2) {
404
+ .main :global(.markdown-alert) > :nth-child(2) {
405
405
  margin-top: 0.25rem;
406
406
  }
407
- .main :global .markdown-alert > :last-child {
407
+ .main :global(.markdown-alert) > :last-child {
408
408
  margin-bottom: 0;
409
409
  }
410
- .main :global .markdown-alert .markdown-alert-title {
410
+ .main :global(.markdown-alert) :global(.markdown-alert-title) {
411
411
  display: flex;
412
412
  margin-bottom: 0.25rem;
413
413
  align-items: center;
414
414
  }
415
- .main :global .markdown-alert .markdown-alert-title > svg {
415
+ .main :global(.markdown-alert) :global(.markdown-alert-title) > svg {
416
416
  margin-right: 0.5rem;
417
417
  }
418
- .main :global .markdown-alert.markdown-alert-note {
418
+ .main :global(.markdown-alert):global(.markdown-alert-note) {
419
419
  border-left-color: var(--github-alert-note-color);
420
420
  }
421
- .main :global .markdown-alert.markdown-alert-note .markdown-alert-title {
421
+ .main :global(.markdown-alert):global(.markdown-alert-note) :global(.markdown-alert-title) {
422
422
  color: var(--github-alert-note-color);
423
423
  }
424
- .main :global .markdown-alert.markdown-alert-tip {
424
+ .main :global(.markdown-alert):global(.markdown-alert-tip) {
425
425
  border-left-color: var(--github-alert-tip-color);
426
426
  }
427
- .main :global .markdown-alert.markdown-alert-tip .markdown-alert-title {
427
+ .main :global(.markdown-alert):global(.markdown-alert-tip) :global(.markdown-alert-title) {
428
428
  color: var(--github-alert-tip-color);
429
429
  }
430
- .main :global .markdown-alert.markdown-alert-important {
430
+ .main :global(.markdown-alert):global(.markdown-alert-important) {
431
431
  border-left-color: var(--github-alert-important-color);
432
432
  }
433
- .main :global .markdown-alert.markdown-alert-important .markdown-alert-title {
433
+ .main :global(.markdown-alert):global(.markdown-alert-important) :global(.markdown-alert-title) {
434
434
  color: var(--github-alert-important-color);
435
435
  }
436
- .main :global .markdown-alert.markdown-alert-warning {
436
+ .main :global(.markdown-alert):global(.markdown-alert-warning) {
437
437
  border-left-color: var(--github-alert-warning-color);
438
438
  }
439
- .main :global .markdown-alert.markdown-alert-warning .markdown-alert-title {
439
+ .main :global(.markdown-alert):global(.markdown-alert-warning) :global(.markdown-alert-title) {
440
440
  color: var(--github-alert-warning-color);
441
441
  }
442
- .main :global .markdown-alert.markdown-alert-caution {
442
+ .main :global(.markdown-alert):global(.markdown-alert-caution) {
443
443
  border-left-color: var(--github-alert-caution-color);
444
444
  }
445
- .main :global .markdown-alert.markdown-alert-caution .markdown-alert-title {
445
+ .main :global(.markdown-alert):global(.markdown-alert-caution) :global(.markdown-alert-title) {
446
446
  color: var(--github-alert-caution-color);
447
447
  }
448
- .main :global .mermaid-block {
448
+ .main :global(.mermaid-block) {
449
449
  margin: 1.5rem 0;
450
450
  }
451
- .main :global .mermaid-block svg {
451
+ .main :global(.mermaid-block) svg {
452
452
  margin-right: auto;
453
453
  margin-left: auto;
454
454
  }
455
- .main :global .mermaid-block.mermaid-loading {
455
+ .main :global(.mermaid-block):global(.mermaid-loading) {
456
456
  width: 100%;
457
457
  height: 8em;
458
458
  display: flex;
459
459
  justify-items: center;
460
460
  align-items: center;
461
461
  }
462
- .main :global .mermaid-block.mermaid-loading > div {
462
+ .main :global(.mermaid-block):global(.mermaid-loading) > div {
463
463
  margin-left: auto;
464
464
  margin-right: auto;
465
465
  }
466
- .main :global .youtube-block {
466
+ .main :global(.youtube-block) {
467
467
  margin: 1.5rem 0;
468
468
  }
469
- .main :global .youtube-block div > lite-youtube {
469
+ .main :global(.youtube-block) div > lite-youtube {
470
470
  margin-right: auto;
471
471
  margin-left: auto;
472
472
  }
473
- .main :global .kifu-block {
473
+ .main :global(.kifu-block) {
474
474
  margin: 1.5rem 0;
475
475
  }
476
- .main :global .kifu-block svg {
476
+ .main :global(.kifu-block) svg {
477
477
  margin-right: auto;
478
478
  margin-left: auto;
479
479
  }
480
- .main :global .gist-block {
480
+ .main :global(.gist-block) {
481
481
  margin: 1.5rem 0;
482
482
  }
483
- .main :global .gist-block .gist-file {
483
+ .main :global(.gist-block) :global(.gist-file) {
484
484
  border-radius: 0.25rem;
485
485
  overflow: hidden;
486
486
  border: 1px solid hsl(var(--hsdc-border));
487
487
  }
488
- .main :global .gist-block .gist-file:last-child {
488
+ .main :global(.gist-block) :global(.gist-file:last-child) {
489
489
  margin-bottom: 0;
490
490
  }
491
+ .main :global(.directory-tree) {
492
+ font-family: var(--hsdc-font-code);
493
+ position: relative;
494
+ margin: 0;
495
+ padding: 0.5rem 1rem;
496
+ font-size: 0.85rem;
497
+ font-weight: 400;
498
+ line-height: 1.5rem;
499
+ list-style: none;
500
+ }
501
+ .main :global(.directory-tree) :global(.directory-tree-node-content) {
502
+ display: flex;
503
+ flex-direction: row;
504
+ align-items: center;
505
+ gap: 0.5rem;
506
+ }
507
+ .main :global(.directory-tree) :global(.directory-tree-directory > .directory-tree-node-content) {
508
+ font-weight: 800;
509
+ color: hsl(var(--hsdc-muted-foreground));
510
+ }
511
+ .main :global(.directory-tree) ul {
512
+ padding-left: 5px;
513
+ list-style: none;
514
+ line-height: 1.5rem;
515
+ }
516
+ .main :global(.directory-tree) li {
517
+ line-height: 1.5rem;
518
+ }
519
+ .main :global(.directory-tree) ul li {
520
+ position: relative;
521
+ padding-top: 5px;
522
+ padding-bottom: 5px;
523
+ padding-left: 15px;
524
+ -webkit-box-sizing: border-box;
525
+ -moz-box-sizing: border-box;
526
+ box-sizing: border-box;
527
+ }
528
+ .main :global(.directory-tree) ul li:before {
529
+ position: absolute;
530
+ top: 15px;
531
+ left: 0;
532
+ width: 10px;
533
+ height: 1px;
534
+ margin: auto;
535
+ content: "";
536
+ background-color: #666;
537
+ }
538
+ .main :global(.directory-tree) ul li:after {
539
+ position: absolute;
540
+ top: 0;
541
+ bottom: 0;
542
+ left: 0;
543
+ width: 1px;
544
+ height: 100%;
545
+ content: "";
546
+ background-color: #666;
547
+ }
548
+ .main :global(.directory-tree) ul li:last-child:after {
549
+ height: 15px;
550
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackersheet/react-document-content-styles",
3
- "version": "0.1.0-alpha.10",
3
+ "version": "0.1.0-alpha.12",
4
4
  "description": "Hacker Sheet document content styles.",
5
5
  "keywords": [],
6
6
  "repository": {