2
0

_button.scss 628 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // fill button style
  2. .btn-fill {
  3. position: relative;
  4. overflow: hidden;
  5. color: white;
  6. text-align: center;
  7. cursor: pointer;
  8. background-color: rgba(lighten(black, 20%), 0.4);
  9. border: none;
  10. .btn-label {
  11. position: relative;
  12. z-index: 1;
  13. color: white;
  14. text-decoration: none;
  15. }
  16. .btn-label-text {
  17. position: relative;
  18. z-index: 1;
  19. color: white;
  20. text-decoration: none;
  21. }
  22. // effect
  23. .eff {
  24. position: absolute;
  25. top: -50px;
  26. left: 0px;
  27. z-index: 0;
  28. width: 100%;
  29. height: 100%;
  30. transition: all 0.5s ease;
  31. }
  32. &:hover {
  33. .eff {
  34. top: 0;
  35. }
  36. }
  37. }