No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

card-bullet.html 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template id="card-bullet">
  2. <style>
  3. :host {
  4. }
  5. ul {
  6. color: black;
  7. font-size: inherit;
  8. color: black;
  9. padding: 0;
  10. padding-left: 0px;
  11. margin: 0;
  12. }
  13. li {
  14. margin-bottom: 0;
  15. margin-top: 0;
  16. font-size: inherit;
  17. list-style-position: inside;
  18. }
  19. ::content {
  20. }
  21. </style>
  22. <ul>
  23. <li>
  24. <content></content>
  25. </li>
  26. </ul>
  27. </template>
  28. <script>
  29. (function (window, document) {
  30. var elemName = 'card-bullet';
  31. var mainDoc = document;
  32. var importDoc = document.currentScript.ownerDocument;
  33. var proto = Object.create(HTMLUListElement.prototype);
  34. proto.createdCallback = function () {
  35. var template = importDoc.getElementById(elemName);
  36. var clone = mainDoc.importNode(template.content, true);
  37. var root = this.createShadowRoot();
  38. root.appendChild(clone);
  39. }
  40. mainDoc.registerElement(elemName, { prototype: proto });
  41. })(window, document);
  42. </script>