Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

card-description.html 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template id="card-description">
  2. <style>
  3. :host {
  4. margin-top: 0px;
  5. margin-bottom: 0;
  6. font-size: inherit;
  7. }
  8. ::content > * {
  9. display: inline;
  10. font-size: inherit;
  11. color: black;
  12. margin: 0;
  13. }
  14. ::content > h4 {
  15. font-weight: bold;
  16. font-size: inherit;
  17. font-style: italic;
  18. }
  19. ::content > h4:after {
  20. content: ".";
  21. }
  22. ::content > h4 + p {
  23. margin-left: 0.0em;
  24. }
  25. </style>
  26. <content></content>
  27. </template>
  28. <script>
  29. (function (window, document) {
  30. var elemName = 'card-description';
  31. var mainDoc = document;
  32. var importDoc = document.currentScript.ownerDocument;
  33. var proto = Object.create(HTMLDivElement.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>