Guest User

Untitled

a guest
Jan 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <button class="buttonclass"><i class="iconclass plus-icon"></i></button>
  2.  
  3. .buttonclass {
  4. width: 30px;
  5. height: 30px;
  6. text-align: center;
  7. position: relative;
  8. border-radius: 20px;
  9. background-color: #1DBE60
  10. }
  11.  
  12. .iconclass {
  13. width: 20px;
  14. height: 20px;
  15. margin: 7.5px;
  16. }
  17.  
  18. .buttonclass .iconclass {
  19. margin: 0;
  20. position: absolute;
  21. top: 50%;
  22. left: 50%;
  23. transform: translate(-50%, -50%);
  24. }
  25.  
  26. .plus-icon {
  27. content: url(http://uxrepo.com/static/icon-sets/mfg-labs/svg/plus.svg);
  28. }
  29.  
  30. .plus-icon {
  31. -webkit-mask: url('../images/plus.svg') no-repeat 50% 50%;
  32. mask: url('../images/plus.svg') no-repeat 50% 50%;
  33. -webkit-mask-size: cover;
  34. mask-size: cover;
  35. }
  36.  
  37. .white {
  38. background-color: rgb(255,255,255);
  39. }
Add Comment
Please, Sign In to add comment