@riebeckite/theme-rerurate 0.0.18 → 0.0.19

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/package.json +2 -2
  2. package/styles/theme.css +44 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-rerurate",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -16,7 +16,7 @@
16
16
  "./styles/theme.css": "./styles/theme.css"
17
17
  },
18
18
  "dependencies": {
19
- "@riebeckite/core": "0.0.18"
19
+ "@riebeckite/core": "0.0.19"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -160,7 +160,7 @@
160
160
  :root,
161
161
  .rb-theme-root
162
162
  )[data-theme-name="rerurate"][data-rerurate-initial="on"]
163
- .rb-article-body
163
+ .rb-article-content
164
164
  p:first-of-type::first-letter {
165
165
  float: left;
166
166
  margin: 0.02em 0.12em 0 0;
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  /* ---- Body rhythm: readable body, kept off the display treatment. ---- */
236
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body {
236
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content {
237
237
  font-family: var(--rb-font-body);
238
238
  line-height: 1.75;
239
239
  }
@@ -242,22 +242,22 @@
242
242
  border-bottom: 0;
243
243
  }
244
244
 
245
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body p {
245
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content p {
246
246
  margin: 1.1em 0;
247
247
  }
248
248
 
249
249
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
250
- .rb-article-body
250
+ .rb-article-content
251
251
  :is(ul, ol) {
252
252
  margin: 1.1em 0;
253
253
  }
254
254
 
255
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body li {
255
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content li {
256
256
  margin: 0.35em 0;
257
257
  }
258
258
 
259
259
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
260
- .rb-article-body
260
+ .rb-article-content
261
261
  li::marker {
262
262
  color: var(--rb-color-accent);
263
263
  }
@@ -334,7 +334,7 @@
334
334
  }
335
335
 
336
336
  /* ---- Headings: hierarchy from size, weight and whitespace. ---- */
337
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body h2 {
337
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h2 {
338
338
  margin: 2.75rem 0 0.9rem;
339
339
  padding-top: calc(3px + 0.6rem);
340
340
  font-family: var(--rb-font-heading);
@@ -350,7 +350,7 @@
350
350
  background-size: 2.75rem 3px;
351
351
  }
352
352
 
353
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body h3 {
353
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h3 {
354
354
  margin: 2rem 0 0.6rem;
355
355
  font-family: var(--rb-font-heading);
356
356
  font-size: 1.05rem;
@@ -358,7 +358,7 @@
358
358
  line-height: 1.3;
359
359
  }
360
360
 
361
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body h4 {
361
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content h4 {
362
362
  margin: 1.5rem 0 0.5rem;
363
363
  font-family: var(--rb-font-heading);
364
364
  font-size: 0.9rem;
@@ -367,7 +367,7 @@
367
367
  }
368
368
 
369
369
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
370
- .rb-article-body
370
+ .rb-article-content
371
371
  :is(h5, h6) {
372
372
  margin: 1.25rem 0 0.4rem;
373
373
  font-size: 0.85rem;
@@ -385,10 +385,10 @@
385
385
  )
386
386
  :is(
387
387
  .rb-article-header h1,
388
- .rb-article-body h2,
389
- .rb-article-body h3,
390
- .rb-article-body h4,
391
- .rb-article-body h5
388
+ .rb-article-content h2,
389
+ .rb-article-content h3,
390
+ .rb-article-content h4,
391
+ .rb-article-content h5
392
392
  )::before {
393
393
  display: inline;
394
394
  margin-right: 0.4em;
@@ -408,7 +408,7 @@
408
408
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
409
409
  [data-rerurate-heading-marks="off"]
410
410
  )
411
- .rb-article-body
411
+ .rb-article-content
412
412
  h2::before {
413
413
  content: "##";
414
414
  }
@@ -416,7 +416,7 @@
416
416
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
417
417
  [data-rerurate-heading-marks="off"]
418
418
  )
419
- .rb-article-body
419
+ .rb-article-content
420
420
  h3::before {
421
421
  content: "###";
422
422
  }
@@ -424,7 +424,7 @@
424
424
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
425
425
  [data-rerurate-heading-marks="off"]
426
426
  )
427
- .rb-article-body
427
+ .rb-article-content
428
428
  h4::before {
429
429
  content: "####";
430
430
  }
@@ -432,7 +432,7 @@
432
432
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not(
433
433
  [data-rerurate-heading-marks="off"]
434
434
  )
435
- .rb-article-body
435
+ .rb-article-content
436
436
  h5::before {
437
437
  content: "#####";
438
438
  }
@@ -451,7 +451,7 @@
451
451
  :root,
452
452
  .rb-theme-root
453
453
  )[data-theme-name="rerurate"][data-rerurate-headings="large"]
454
- .rb-article-body
454
+ .rb-article-content
455
455
  h2 {
456
456
  font-size: 1.35rem;
457
457
  }
@@ -460,7 +460,7 @@
460
460
  :root,
461
461
  .rb-theme-root
462
462
  )[data-theme-name="rerurate"][data-rerurate-headings="large"]
463
- .rb-article-body
463
+ .rb-article-content
464
464
  h3 {
465
465
  font-size: 1.1rem;
466
466
  }
@@ -469,7 +469,7 @@
469
469
  :root,
470
470
  .rb-theme-root
471
471
  )[data-theme-name="rerurate"][data-rerurate-headings="large"]
472
- .rb-article-body
472
+ .rb-article-content
473
473
  h4 {
474
474
  font-size: 0.95rem;
475
475
  }
@@ -477,7 +477,7 @@
477
477
  /* ---- Links: Ink -> Orange, with the rule (underline) expanding. ---- */
478
478
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
479
479
  :is(
480
- .rb-article-body,
480
+ .rb-article-content,
481
481
  .rb-article-footer,
482
482
  .rb-article-meta,
483
483
  .rr-table-of-contents,
@@ -502,7 +502,7 @@
502
502
 
503
503
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
504
504
  :is(
505
- .rb-article-body,
505
+ .rb-article-content,
506
506
  .rb-article-footer,
507
507
  .rb-article-meta,
508
508
  .rr-table-of-contents,
@@ -517,7 +517,7 @@
517
517
 
518
518
  /* ---- Blockquote: flat, marked by Orange quote chevrons. ---- */
519
519
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
520
- .rb-article-body
520
+ .rb-article-content
521
521
  blockquote {
522
522
  position: relative;
523
523
  margin: 1.75rem 0 0;
@@ -529,7 +529,7 @@
529
529
  }
530
530
 
531
531
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
532
- .rb-article-body
532
+ .rb-article-content
533
533
  blockquote::before {
534
534
  content: "";
535
535
  position: absolute;
@@ -544,18 +544,18 @@
544
544
  }
545
545
 
546
546
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
547
- .rb-article-body
547
+ .rb-article-content
548
548
  blockquote
549
549
  p:first-of-type::before,
550
550
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
551
- .rb-article-body
551
+ .rb-article-content
552
552
  blockquote
553
553
  p:last-of-type::after {
554
554
  content: none;
555
555
  }
556
556
 
557
557
  /* ---- Rules: 1px Ink, Paper-safe, stopping at the text edge. ---- */
558
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-body hr {
558
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-content hr {
559
559
  width: 100%;
560
560
  height: 1px;
561
561
  margin: 3rem 0;
@@ -565,7 +565,7 @@
565
565
 
566
566
  /* ---- Inline code and bare pre (guarded against the code plugin). ---- */
567
567
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
568
- .rb-article-body
568
+ .rb-article-content
569
569
  :not(pre)
570
570
  > code {
571
571
  padding: 0.15em 0.4em;
@@ -577,7 +577,7 @@
577
577
  }
578
578
 
579
579
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
580
- .rb-article-body
580
+ .rb-article-content
581
581
  pre:not(:where(.rr-code *)) {
582
582
  margin: 1.75rem 0 0;
583
583
  padding: 0.85rem 1rem;
@@ -592,13 +592,13 @@
592
592
  }
593
593
 
594
594
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
595
- .rb-article-body
595
+ .rb-article-content
596
596
  pre:not(:where(.rr-code *)):has(+ :is(h1, h2)) {
597
597
  margin-bottom: 1.75rem;
598
598
  }
599
599
 
600
600
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
601
- .rb-article-body
601
+ .rb-article-content
602
602
  pre:not(:where(.rr-code *))
603
603
  code {
604
604
  padding: 0;
@@ -609,14 +609,14 @@
609
609
 
610
610
  /* ---- Tables: hairline rules, no card chrome. ---- */
611
611
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
612
- .rb-article-body
612
+ .rb-article-content
613
613
  table:not(:where(.rr-diff-history *)) {
614
614
  margin: 1.75rem 0;
615
615
  font-size: 0.92em;
616
616
  }
617
617
 
618
618
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
619
- .rb-article-body
619
+ .rb-article-content
620
620
  :is(th, td) {
621
621
  padding: 0.55rem 0.75rem;
622
622
  border-bottom: 1px solid var(--rb-color-border);
@@ -625,7 +625,7 @@
625
625
  }
626
626
 
627
627
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
628
- .rb-article-body
628
+ .rb-article-content
629
629
  thead
630
630
  th {
631
631
  border-bottom: 1px solid var(--rb-color-ink);
@@ -634,7 +634,7 @@
634
634
  }
635
635
 
636
636
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
637
- .rb-article-body
637
+ .rb-article-content
638
638
  tbody
639
639
  tr:last-child
640
640
  :is(th, td) {
@@ -656,7 +656,12 @@
656
656
  }
657
657
 
658
658
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
659
- :is(.rb-article-body img, .rb-article-body video, .rr-media, .rr-attachment) {
659
+ :is(
660
+ .rb-article-content img,
661
+ .rb-article-content video,
662
+ .rr-media,
663
+ .rr-attachment
664
+ ) {
660
665
  border-radius: 0;
661
666
  }
662
667
 
@@ -684,7 +689,7 @@
684
689
  }
685
690
 
686
691
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
687
- .rb-article-body
692
+ .rb-article-content
688
693
  pre:not(:where(.rr-code *)) {
689
694
  background: var(--rb-color-code-background);
690
695
  color: var(--rb-color-ink);
@@ -698,7 +703,7 @@
698
703
 
699
704
  @media (prefers-color-scheme: dark) {
700
705
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
701
- .rb-article-body
706
+ .rb-article-content
702
707
  pre:not(:where(.rr-code *)) {
703
708
  background: var(--rb-color-code-background);
704
709
  color: var(--rb-color-ink);