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-section.html 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <link href='http://fonts.googleapis.com/css?family=Lora:700' rel='stylesheet' type='text/css'>
  2. <template id="card-section">
  3. <style>
  4. :host {
  5. border-bottom: 1px solid;
  6. font-size: 10pt;
  7. font-variant: small-caps;
  8. font-weight: normal;
  9. letter-spacing: 1px;
  10. margin: 0;
  11. border-color: inherit;
  12. }
  13. </style>
  14. <content></content>
  15. </template>
  16. <script>
  17. (function(window, document) {
  18. var elemName = 'card-section';
  19. var mainDoc = document;
  20. var importDoc = document.currentScript.ownerDocument;
  21. var proto = Object.create(HTMLDivElement.prototype);
  22. proto.createdCallback = function () {
  23. var template = importDoc.getElementById(elemName);
  24. var clone = mainDoc.importNode(template.content, true);
  25. var root = this.createShadowRoot();
  26. root.appendChild(clone);
  27. }
  28. mainDoc.registerElement(elemName, { prototype: proto });
  29. })(window, document);
  30. </script>