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.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. margin-bottom: 4px;
  12. border-color: inherit;
  13. }
  14. </style>
  15. <content></content>
  16. </template>
  17. <script>
  18. (function(window, document) {
  19. var elemName = 'card-section';
  20. var mainDoc = document;
  21. var importDoc = document.currentScript.ownerDocument;
  22. var proto = Object.create(HTMLDivElement.prototype);
  23. proto.createdCallback = function () {
  24. var template = importDoc.getElementById(elemName);
  25. var clone = mainDoc.importNode(template.content, true);
  26. var root = this.createShadowRoot();
  27. root.appendChild(clone);
  28. }
  29. mainDoc.registerElement(elemName, { prototype: proto });
  30. })(window, document);
  31. </script>