@apify/docs-theme 1.0.104 → 1.0.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -601,6 +601,10 @@ article .card h2 {
601
601
  user-select: none;
602
602
  }
603
603
 
604
+ .tsd-panel .tsd-flag {
605
+ color: #f2f3fb;
606
+ }
607
+
604
608
  .menu__caret:before,
605
609
  .menu__link--sublist:after {
606
610
  float: right;
@@ -1501,3 +1505,32 @@ html[data-theme='dark'] .runnable-code-block svg .apify-logo {
1501
1505
  padding-right: 8rem !important;
1502
1506
  padding-left: 8rem !important;
1503
1507
  }
1508
+
1509
+ /*
1510
+ * Reset the line-number counter for each .prism-code scope
1511
+ */
1512
+ .prism-code {
1513
+ counter-reset: line-number;
1514
+ }
1515
+
1516
+ /*
1517
+ * Notice the chained .language-ts class name to .prism-code
1518
+ * You can chain more languages in order to add line numbers
1519
+ */
1520
+ .prism-code.language-ts .token-line::before,
1521
+ .prism-code.language-typescript .token-line::before,
1522
+ .prism-code.language-javascript .token-line::before,
1523
+ .prism-code.language-json .token-line::before,
1524
+ .prism-code.language-json5 .token-line::before,
1525
+ .prism-code.language-XML .token-line::before,
1526
+ .prism-code.language-js .token-line::before {
1527
+ counter-increment: line-number;
1528
+ content: counter(line-number);
1529
+ margin-right: calc(var(--ifm-pre-padding) * 0.8);
1530
+ text-align: right;
1531
+ min-width: 1.5rem;
1532
+ display: inline-block;
1533
+ opacity: .3;
1534
+ position: sticky;
1535
+ left: var(--ifm-pre-padding);
1536
+ }