Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

card-description.html 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template id="card-description">
  2. <style>
  3. :host {
  4. margin-top: 2px;
  5. margin-bottom: 0;
  6. font-size: inherit;
  7. }
  8. ::content > * {
  9. display: inline;
  10. font-size: inherit;
  11. color: black;
  12. }
  13. ::content > h4 {
  14. font-weight: bold;
  15. font-size: inherit;
  16. font-style: italic;
  17. }
  18. ::content > h4:after {
  19. content: ".";
  20. }
  21. ::content > h4 + p {
  22. margin-left: 0.0em;
  23. }
  24. </style>
  25. <content></content>
  26. </template>
  27. <script>
  28. (function (window, document) {
  29. var elemName = 'card-description';
  30. var mainDoc = document;
  31. var importDoc = document.currentScript.ownerDocument;
  32. var proto = Object.create(HTMLDivElement.prototype);
  33. proto.createdCallback = function () {
  34. var template = importDoc.getElementById(elemName);
  35. var clone = mainDoc.importNode(template.content, true);
  36. var root = this.createShadowRoot();
  37. root.appendChild(clone);
  38. }
  39. mainDoc.registerElement(elemName, { prototype: proto });
  40. })(window, document);
  41. </script>