index.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title><my-element> ⌲ Examples ⌲ Basic</title>
  7. <link rel="stylesheet" href="../docs.css">
  8. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono">
  9. <link href="../prism-okaidia.css" rel="stylesheet" />
  10. <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
  11. <script src="/node_modules/lit/polyfill-support.js"></script>
  12. <script type="module" src="../my-element.bundled.js"></script>
  13. </head>
  14. <body>
  15. <header>
  16. <h1>&lt;my-element></h1>
  17. <h2>A web component just for me.</h2>
  18. </header>
  19. <nav>
  20. <a href="../">Home</a>
  21. <a href="">Examples</a>
  22. <a href="../api/">API</a>
  23. <a href="../install/">Install</a>
  24. </nav>
  25. <div id="main-wrapper">
  26. <main>
  27. <h1>Example: Basic</h1>
  28. <section class="examples">
  29. <nav class="collection">
  30. <ul>
  31. <li class=>
  32. <a href="name-property/">Setting the name property</a>
  33. </li>
  34. <li class=selected>
  35. <a href="">A basic example</a>
  36. </li>
  37. </ul>
  38. </nav>
  39. <div>
  40. <style>
  41. my-element p {
  42. border: solid 1px blue;
  43. padding: 8px;
  44. }
  45. </style>
  46. <my-element>
  47. <p>This is child content</p>
  48. </my-element>
  49. <h3>CSS</h3>
  50. <pre class="language-css"><code class="language-css"><span class="token selector">p</span> <span class="token punctuation">{</span><br> <span class="token property">border</span><span class="token punctuation">:</span> solid 1px blue<span class="token punctuation">;</span><br> <span class="token property">padding</span><span class="token punctuation">:</span> 8px<span class="token punctuation">;</span><br><span class="token punctuation">}</span></code></pre>
  51. <h3>HTML</h3>
  52. <pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>my-element</span><span class="token punctuation">></span></span><br> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>This is child content<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span><br><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>my-element</span><span class="token punctuation">></span></span></code></pre>
  53. </div>
  54. </section>
  55. </main>
  56. </div>
  57. <footer>
  58. <p>
  59. Made with
  60. <a href="https://github.com/PolymerLabs/lit-starter-ts">lit-starter-ts</a>
  61. </p>
  62. </footer>
  63. </body>
  64. </html>