설명 없음
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-property.html 1.2KB

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