Commit 36f13d09897f3f8bd29dfc9be33cd955003010ee
1 parent
e71c3328
selection controllet and card update
Showing
1 changed file
with
22 additions
and
2 deletions
controllets/paper-card-controllet/paper-card-controllet.html
... | ... | @@ -18,6 +18,9 @@ |
18 | 18 | --paper-fab-background: var(--accent-color); |
19 | 19 | font-family: 'Roboto', sans-serif; |
20 | 20 | padding-bottom: 30px; |
21 | + | |
22 | + /*Test*/ | |
23 | + | |
21 | 24 | } |
22 | 25 | |
23 | 26 | paper-material { |
... | ... | @@ -27,7 +30,7 @@ |
27 | 30 | |
28 | 31 | .footer { |
29 | 32 | position: relative; |
30 | - /*margin-bottom: 24px;*/ | |
33 | + height: 21px; | |
31 | 34 | } |
32 | 35 | |
33 | 36 | .legend { |
... | ... | @@ -77,11 +80,24 @@ |
77 | 80 | color: rgba(0,0,0,0.4); |
78 | 81 | font-family: 'Roboto', sans-serif; |
79 | 82 | } |
83 | + | |
84 | + #delete{ | |
85 | + position: absolute; | |
86 | + top: -12px; | |
87 | + left: -12px; | |
88 | + --iron-icon-height: 18px; | |
89 | + --iron-icon-width: 18px; | |
90 | + width: 24px; | |
91 | + height: 24px; | |
92 | + --paper-fab-background:#cccccc; | |
93 | + } | |
80 | 94 | </style> |
81 | 95 | |
82 | 96 | |
83 | 97 | <paper-material animated elevation="{{elevation}}" flex> |
84 | 98 | |
99 | + <paper-fab id="delete" mini icon="delete" on-click="_handleDeleteClick"></paper-fab> | |
100 | + | |
85 | 101 | <div class="vertical layout"> |
86 | 102 | <div id="content"> |
87 | 103 | <content></content> |
... | ... | @@ -186,7 +202,11 @@ |
186 | 202 | |
187 | 203 | _handleDetailsClick: function(e){ |
188 | 204 | this.fire('paper-card-controllet_details-clicked', {data : this}); |
189 | - } | |
205 | + }, | |
206 | + | |
207 | + _handleDeleteClick: function(e){ | |
208 | + this.fire('paper-card-controllet_delete-clicked', {data : this}); | |
209 | + } | |
190 | 210 | }) |
191 | 211 | </script> |
192 | 212 | ... | ... |