Skip to content

Commit aa5c840

Browse files
authored
docs: remove border from mdjs-preview demo (#110)
1 parent 870bb74 commit aa5c840

File tree

8 files changed

+105
-8
lines changed

8 files changed

+105
-8
lines changed

docs/assets/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ api-viewer[theme='custom'] {
22
background-color: #fff;
33
border: none;
44
border-radius: 6px;
5-
box-shadow: 0 0 0 5px #fff, 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
5+
box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
66
0 0 0 1px rgba(10, 10, 10, 0.16);
77
font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen,
88
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica,

docs/docs/examples/api-demo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import '../../../lib/fixtures/progress-bar.js';
5050
<style>
5151
api-demo {
5252
max-width: 100%;
53-
outline: solid 4px white;
5453
}
5554
</style>
5655
```

docs/docs/examples/api-docs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import '../../../lib/api-docs.js';
1010
<style>
1111
api-docs {
1212
max-width: 100%;
13-
outline: solid 4px white;
1413
}
1514
</style>
1615
```

docs/docs/examples/api-viewer.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import '../../../lib/fixtures/progress-bar.js';
5555
<style>
5656
api-viewer {
5757
max-width: 100%;
58-
outline: solid 4px white;
5958
}
6059
</style>
6160
```

docs/docs/examples/theming.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import '../../../lib/fixtures/progress-bar.js';
4747
<style>
4848
api-viewer {
4949
max-width: 100%;
50-
box-shadow: 0 0 0 4px white;
5150
}
5251
</style>
5352
```

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"lint:eslint": "eslint src --ext .ts",
4343
"lint:lit": "lit-analyzer src --strict",
4444
"lint": "npm-run-all --parallel lint:*",
45+
"postinstall": "patch-package",
4546
"prepublishOnly": "run-s build analyze",
4647
"serve": "web-dev-server --node-resolve",
4748
"size": "size-limit",
@@ -83,6 +84,7 @@
8384
"lint-staged": "^12.1.2",
8485
"lit-analyzer": "^1.2.1",
8586
"npm-run-all": "^4.1.5",
87+
"patch-package": "^6.4.7",
8688
"postcss-lit": "^0.1.2",
8789
"prettier": "^2.5.1",
8890
"rimraf": "^3.0.2",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/node_modules/@mdjs/mdjs-preview/src/MdJsPreview.js b/node_modules/@mdjs/mdjs-preview/src/MdJsPreview.js
2+
index 40eb0bd..7b74696 100644
3+
--- a/node_modules/@mdjs/mdjs-preview/src/MdJsPreview.js
4+
+++ b/node_modules/@mdjs/mdjs-preview/src/MdJsPreview.js
5+
@@ -685,10 +685,6 @@ export class MdJsPreview extends ScopedElementsMixin(LitElement) {
6+
display: none;
7+
}
8+
9+
- :host(:not([device-mode])) #wrapper {
10+
- border: 2px solid #4caf50;
11+
- }
12+
-
13+
iframe {
14+
border: 2px solid #4caf50;
15+
background: #fff;

yarn.lock

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,11 @@
20322032
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
20332033
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
20342034

2035+
"@yarnpkg/lockfile@^1.1.0":
2036+
version "1.1.0"
2037+
resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31"
2038+
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==
2039+
20352040
a-sync-waterfall@^1.0.0:
20362041
version "1.0.1"
20372042
resolved "https://registry.yarnpkg.com/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz#75b6b6aa72598b497a125e7a2770f14f4c8a1fa7"
@@ -2832,6 +2837,11 @@ chrome-trace-event@^1.0.2:
28322837
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
28332838
integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==
28342839

2840+
ci-info@^2.0.0:
2841+
version "2.0.0"
2842+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
2843+
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
2844+
28352845
ci-job-number@^1.2.2:
28362846
version "1.2.2"
28372847
resolved "https://registry.yarnpkg.com/ci-job-number/-/ci-job-number-1.2.2.tgz#f4e5918fcaeeda95b604f214be7d7d4a961fe0c0"
@@ -4234,6 +4244,13 @@ find-up@^4.1.0:
42344244
locate-path "^5.0.0"
42354245
path-exists "^4.0.0"
42364246

4247+
find-yarn-workspace-root@^2.0.0:
4248+
version "2.0.0"
4249+
resolved "https://registry.yarnpkg.com/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz#f47fb8d239c900eb78179aa81b66673eac88f7bd"
4250+
integrity sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==
4251+
dependencies:
4252+
micromatch "^4.0.2"
4253+
42374254
flat-cache@^3.0.4:
42384255
version "3.0.4"
42394256
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11"
@@ -4288,6 +4305,15 @@ fs-extra@3.0.1:
42884305
jsonfile "^3.0.0"
42894306
universalify "^0.1.0"
42904307

4308+
fs-extra@^7.0.1:
4309+
version "7.0.1"
4310+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
4311+
integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
4312+
dependencies:
4313+
graceful-fs "^4.1.2"
4314+
jsonfile "^4.0.0"
4315+
universalify "^0.1.0"
4316+
42914317
fs-extra@^8.1.0:
42924318
version "8.1.0"
42934319
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
@@ -4484,7 +4510,7 @@ globjoin@^0.1.4:
44844510
resolved "https://registry.yarnpkg.com/globjoin/-/globjoin-0.1.4.tgz#2f4494ac8919e3767c5cbb691e9f463324285d43"
44854511
integrity sha1-L0SUrIkZ43Z8XLtpHp9GMyQoXUM=
44864512

4487-
graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4:
4513+
graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4:
44884514
version "4.2.8"
44894515
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"
44904516
integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==
@@ -5048,6 +5074,13 @@ is-callable@^1.1.4, is-callable@^1.2.4:
50485074
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
50495075
integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==
50505076

5077+
is-ci@^2.0.0:
5078+
version "2.0.0"
5079+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c"
5080+
integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==
5081+
dependencies:
5082+
ci-info "^2.0.0"
5083+
50515084
is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.8.0:
50525085
version "2.8.0"
50535086
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548"
@@ -5342,7 +5375,7 @@ is-wsl@^1.1.0:
53425375
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
53435376
integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=
53445377

5345-
is-wsl@^2.2.0:
5378+
is-wsl@^2.1.1, is-wsl@^2.2.0:
53465379
version "2.2.0"
53475380
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
53485381
integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
@@ -5565,6 +5598,13 @@ kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3:
55655598
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
55665599
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
55675600

5601+
klaw-sync@^6.0.0:
5602+
version "6.0.0"
5603+
resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c"
5604+
integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==
5605+
dependencies:
5606+
graceful-fs "^4.1.11"
5607+
55685608
known-css-properties@^0.23.0:
55695609
version "0.23.0"
55705610
resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.23.0.tgz#e643e1bab2b1f8ba292eea9557121cc02e9846a0"
@@ -6586,6 +6626,14 @@ only@~0.0.2:
65866626
resolved "https://registry.yarnpkg.com/only/-/only-0.0.2.tgz#2afde84d03e50b9a8edc444e30610a70295edfb4"
65876627
integrity sha1-Kv3oTQPlC5qO3EROMGEKcCle37Q=
65886628

6629+
open@^7.4.2:
6630+
version "7.4.2"
6631+
resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321"
6632+
integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==
6633+
dependencies:
6634+
is-docker "^2.0.0"
6635+
is-wsl "^2.1.1"
6636+
65896637
open@^8.0.2, open@^8.2.1:
65906638
version "8.4.0"
65916639
resolved "https://registry.yarnpkg.com/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8"
@@ -6619,6 +6667,11 @@ optionator@^0.9.1:
66196667
type-check "^0.4.0"
66206668
word-wrap "^1.2.3"
66216669

6670+
os-tmpdir@~1.0.2:
6671+
version "1.0.2"
6672+
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
6673+
integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=
6674+
66226675
p-finally@^1.0.0:
66236676
version "1.0.0"
66246677
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
@@ -6800,6 +6853,25 @@ pascalcase@^0.1.1:
68006853
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
68016854
integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=
68026855

6856+
patch-package@^6.4.7:
6857+
version "6.4.7"
6858+
resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-6.4.7.tgz#2282d53c397909a0d9ef92dae3fdeb558382b148"
6859+
integrity sha512-S0vh/ZEafZ17hbhgqdnpunKDfzHQibQizx9g8yEf5dcVk3KOflOfdufRXQX8CSEkyOQwuM/bNz1GwKvFj54kaQ==
6860+
dependencies:
6861+
"@yarnpkg/lockfile" "^1.1.0"
6862+
chalk "^2.4.2"
6863+
cross-spawn "^6.0.5"
6864+
find-yarn-workspace-root "^2.0.0"
6865+
fs-extra "^7.0.1"
6866+
is-ci "^2.0.0"
6867+
klaw-sync "^6.0.0"
6868+
minimist "^1.2.0"
6869+
open "^7.4.2"
6870+
rimraf "^2.6.3"
6871+
semver "^5.6.0"
6872+
slash "^2.0.0"
6873+
tmp "^0.0.33"
6874+
68036875
path-exists@^3.0.0:
68046876
version "3.0.0"
68056877
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
@@ -7852,7 +7924,7 @@ rfdc@^1.3.0:
78527924
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b"
78537925
integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==
78547926

7855-
rimraf@^2.2.8:
7927+
rimraf@^2.2.8, rimraf@^2.6.3:
78567928
version "2.7.1"
78577929
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
78587930
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
@@ -8194,6 +8266,11 @@ slash@^1.0.0:
81948266
resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
81958267
integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=
81968268

8269+
slash@^2.0.0:
8270+
version "2.0.0"
8271+
resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44"
8272+
integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==
8273+
81978274
slash@^3.0.0:
81988275
version "3.0.0"
81998276
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
@@ -8847,6 +8924,13 @@ timsort@^0.3.0:
88478924
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
88488925
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
88498926

8927+
tmp@^0.0.33:
8928+
version "0.0.33"
8929+
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
8930+
integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==
8931+
dependencies:
8932+
os-tmpdir "~1.0.2"
8933+
88508934
to-array@0.1.4:
88518935
version "0.1.4"
88528936
resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890"

0 commit comments

Comments
 (0)