Advertisement
helgatheviki

Love versus Loved States Love it Pro

Jan 9th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.62 KB | None | 0 0
  1. <!-- Needs love -->
  2. <div class="love-it-wrapper">
  3. <a href="#" class="love-it" data-post-id="202" data-user-id="1">Recommend</a>
  4. <span class="love-count">0</span>
  5. </div>
  6.  
  7. <!-- has love -->
  8. <div class="love-it-wrapper">
  9. <span class="loved">Recommended <span class="love-count">2</span></span>
  10. </div>
  11.  
  12. So in the first case the Recommend text is a link you can style individually.  In the loved case, the text has no element to itself and can't get the same button styling.
  13.  
  14. Suggestion:
  15.  
  16. <!-- has love -->
  17. <div class="love-it-wrapper">
  18. <span class="loved">Recommended </span>
  19. <span class="love-count">2</span>
  20. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement