Last active
August 29, 2015 14:17
-
-
Save AllanHasegawa/4c9330091af2386d9415 to your computer and use it in GitHub Desktop.
designer
This file contains 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="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#section { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
} | |
#core_card { | |
width: 800px; | |
border-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
margin: 10px; | |
background-color: rgb(255, 255, 255); | |
} | |
.post_link { | |
margin: 10px; | |
color: rgb(102, 153, 255); | |
} | |
.post_meta { | |
color: rgb(126, 126, 127); | |
margin: -15px 0px 0px 15px; | |
} | |
.post_excerpt { | |
margin: 10px; | |
} | |
</style> | |
<section id="section" center vertical layout> | |
<core-card id="core_card" layout vertical> | |
<h2> | |
<a class="post_link">{{ title }}</a> | |
</h2> | |
<div class="post_meta">10/10/2010 - Author Name - Tags: ha, ha, ha, he</div> | |
<div class="post_excerpt">{{ excerpt }}</div> | |
</core-card> | |
</section> | |
</template> | |
<script> | |
Polymer({ | |
title: 'A very very veeeeery long post title', | |
date: '10/10/2010', | |
author: 'Author Name', | |
tags: 'ha, ha, ha, he', | |
excerpt: 'Nam at diam tempus, tempus dui sed, rutrum nibh. Sed laoreet arcu ac mollis dignissim. Vivamus in lacus sagittis est ullamcorper vehicula. Donec bibendum ullamcorper est aliquet mollis. Donec egestas tempus turpis nec dapibus. Fusce quis odio gravida, vestibulum dolor eget, pulvinar ipsum. Curabitur imperdiet hendrerit metus nec dictum. Vivamus luctus erat congue justo gravida imperdiet. In at nisl lorem.' | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment