Created
August 17, 2014 19:07
-
-
Save akissu/57099359cefcbbb4c07f to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="post-card"> | |
| <template> | |
| <style> | |
| :host { | |
| display: block; | |
| position: relative; | |
| padding: 20px; | |
| width: 100%; | |
| font-size: 1.2rem; | |
| font-weight: 300; | |
| background-color: white; | |
| } | |
| .card-header { | |
| margin-bottom: 10px; | |
| } | |
| polyfill-next-selector { | |
| content: '.card-header h2'; | |
| } | |
| .card-header ::content h2 { | |
| margin: 0px; | |
| font-size: 1.8rem; | |
| font-weight: 300; | |
| } | |
| polyfill-next-selector { | |
| content: '.card-header img'; | |
| } | |
| .card-header ::content img { | |
| width: 70px; | |
| border-top-left-radius: 50%; | |
| border-top-right-radius: 50%; | |
| border-bottom-right-radius: 50%; | |
| border-bottom-left-radius: 50%; | |
| margin: 10px; | |
| } | |
| </style> | |
| <div class="card-header" layout horizontal center> | |
| <content select="img"></content> | |
| <content select="h2"></content> | |
| </div> | |
| <content></content> | |
| </template> | |
| <script> | |
| Polymer('post-card', { | |
| }); | |
| </script> | |
| </polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment