Commit 36f13d09897f3f8bd29dfc9be33cd955003010ee

Authored by Luigi Serra
1 parent e71c3328

selection controllet and card update

controllets/paper-card-controllet/paper-card-controllet.html
@@ -18,6 +18,9 @@ @@ -18,6 +18,9 @@
18 --paper-fab-background: var(--accent-color); 18 --paper-fab-background: var(--accent-color);
19 font-family: 'Roboto', sans-serif; 19 font-family: 'Roboto', sans-serif;
20 padding-bottom: 30px; 20 padding-bottom: 30px;
  21 +
  22 + /*Test*/
  23 +
21 } 24 }
22 25
23 paper-material { 26 paper-material {
@@ -27,7 +30,7 @@ @@ -27,7 +30,7 @@
27 30
28 .footer { 31 .footer {
29 position: relative; 32 position: relative;
30 - /*margin-bottom: 24px;*/ 33 + height: 21px;
31 } 34 }
32 35
33 .legend { 36 .legend {
@@ -77,11 +80,24 @@ @@ -77,11 +80,24 @@
77 color: rgba(0,0,0,0.4); 80 color: rgba(0,0,0,0.4);
78 font-family: 'Roboto', sans-serif; 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 </style> 94 </style>
81 95
82 96
83 <paper-material animated elevation="{{elevation}}" flex> 97 <paper-material animated elevation="{{elevation}}" flex>
84 98
  99 + <paper-fab id="delete" mini icon="delete" on-click="_handleDeleteClick"></paper-fab>
  100 +
85 <div class="vertical layout"> 101 <div class="vertical layout">
86 <div id="content"> 102 <div id="content">
87 <content></content> 103 <content></content>
@@ -186,7 +202,11 @@ @@ -186,7 +202,11 @@
186 202
187 _handleDetailsClick: function(e){ 203 _handleDetailsClick: function(e){
188 this.fire('paper-card-controllet_details-clicked', {data : this}); 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 </script> 211 </script>
192 212