Commit 4a3b13b6b2ff06c48511ef29994027de20759cbb

Authored by Victor Costa
1 parent 11c05398

Improve results button

images/result-dislike.png 0 → 100644

275 Bytes

images/result-like.png 0 → 100644

267 Bytes

@@ -173,7 +173,7 @@ @@ -173,7 +173,7 @@
173 <a href="#" class="like dislike" data-vote-value="-1"></a> 173 <a href="#" class="like dislike" data-vote-value="-1"></a>
174 <a href="#" class="like" data-vote-value="1"></a> 174 <a href="#" class="like" data-vote-value="1"></a>
175 <a href="#" class="skip">Pular</a> 175 <a href="#" class="skip">Pular</a>
176 - <a href="#" class="vote-result">Resultado</a> 176 + <a href="#" class="vote-result">Resultados</a>
177 </div> 177 </div>
178 </script> 178 </script>
179 179
@@ -183,8 +183,8 @@ @@ -183,8 +183,8 @@
183 <table> 183 <table>
184 <tr class="header"> 184 <tr class="header">
185 <td class="abstract-text">Texto da Alternativa</td> 185 <td class="abstract-text">Texto da Alternativa</td>
186 - <td class="votes-for">Gostei</td>  
187 - <td class="votes-against">Não Gostei</td> 186 + <td class="votes-for"></td>
  187 + <td class="votes-against"></td>
188 <td class="score">Pontuação</td> 188 <td class="score">Pontuação</td>
189 </tr> 189 </tr>
190 {{#each articles}} 190 {{#each articles}}
sass/_proposal_detail.scss
@@ -99,9 +99,7 @@ @@ -99,9 +99,7 @@
99 font-weight: bolder; 99 font-weight: bolder;
100 font-size: 12px; 100 font-size: 12px;
101 text-transform: uppercase; 101 text-transform: uppercase;
102 - background-color: gray;  
103 - color: white;  
104 - width: 4%; 102 + color: gray;
105 border: none; 103 border: none;
106 margin: 10px; 104 margin: 10px;
107 border-radius: 6px; 105 border-radius: 6px;
@@ -137,6 +135,18 @@ @@ -137,6 +135,18 @@
137 font-weight: bold; 135 font-weight: bold;
138 text-align: center; 136 text-align: center;
139 color: rgb(68, 68, 68); 137 color: rgb(68, 68, 68);
  138 + .votes-for {
  139 + background-image: url(./images/result-like.png);
  140 + background-repeat: no-repeat;
  141 + display: inline-block;
  142 + background-position: center;
  143 + }
  144 + .votes-against {
  145 + background-image: url(./images/result-dislike.png);
  146 + }
  147 + .score {
  148 + background-image: none;
  149 + }
140 } 150 }
141 151
142 .truncate { 152 .truncate {
@@ -324,7 +334,8 @@ @@ -324,7 +334,8 @@
324 display: block; 334 display: block;
325 } 335 }
326 .vote-result { 336 .vote-result {
327 - @extend .skip 337 + text-decoration: none;
  338 + color: $color;
328 } 339 }
329 } 340 }
330 } 341 }