user-button.scss 889 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $breakpoint-mobile: 720px;
  2. $breakpoint-tablet: 1640px;
  3. .btn-three {
  4. margin: 5px;
  5. font-size: 16px;
  6. color: #FFF;
  7. transition: all 0.5s;
  8. position: relative;
  9. @media (max-width: $breakpoint-tablet) {
  10. margin: 3px;
  11. font-size: 12px;
  12. }
  13. }
  14. .btn-three::before {
  15. content: '';
  16. position: absolute;
  17. top: 0;
  18. left: 0;
  19. width: 100%;
  20. height: 100%;
  21. z-index: 1;
  22. background-color: rgba(255,255,255,0.1);
  23. transition: all 0.3s;
  24. }
  25. .btn-three:hover::before {
  26. opacity: 0 ;
  27. transform: scale(0.5,0.5);
  28. }
  29. .btn-three::after {
  30. content: '';
  31. position: absolute;
  32. top: 0;
  33. left: 0;
  34. width: 100%;
  35. height: 100%;
  36. z-index: 1;
  37. opacity: 0;
  38. transition: all 0.3s;
  39. border: 1px solid rgba(255,255,255,0.5);
  40. transform: scale(1.2,1.2);
  41. }
  42. .btn-three:hover::after {
  43. opacity: 1;
  44. transform: scale(1,1);
  45. }