Advertisement
borlabs

Borlabs Button

Mar 21st, 2019
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.33 KB | None | 0 0
  1. .btn {
  2.     background: #fff;
  3.     border-radius: 4px;
  4.     border-width: 0;
  5.     color: #222;
  6.     display: inline-block;
  7.     font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
  8.     font-weight: bold;
  9.     line-height: 18px;
  10.     padding: 16px 32px;
  11.     text-decoration: none
  12. }
  13.  
  14. .btn.btn-shadow {
  15.     box-shadow: 0 10px 30px rgba(0,0,0,0.2)
  16. }
  17.  
  18. .btn.btn-gradient {
  19.     background-size: 100%;
  20.     position: relative;
  21.     z-index: 100
  22. }
  23.  
  24. .btn.btn-gradient::before {
  25.     border-radius: inherit;
  26.     content: "";
  27.     display: block;
  28.     height: 100%;
  29.     left: 0;
  30.     position: absolute;
  31.     opacity: 0;
  32.     -webkit-transition: opacity 0.6s;
  33.     transition: opacity 0.6s;
  34.     top: 0;
  35.     width: 100%;
  36.     z-index: -100
  37. }
  38.  
  39. .btn.btn-gradient:hover::before {
  40.     opacity: 1
  41. }
  42.  
  43. .btn.btn-cb {
  44.     background: transparent;
  45.     background-image: -webkit-linear-gradient(315deg, #00dbe8 0%, #3b39b9 100%);
  46.     background-image: linear-gradient(135deg, #00dbe8 0%, #3b39b9 100%);
  47.     color: #fff
  48. }
  49.  
  50. .btn.btn-cb::before {
  51.     background-image: -webkit-linear-gradient(315deg, #3b39b9 0%, #00dbe8 100%);
  52.     background-image: linear-gradient(135deg, #3b39b9 0%, #00dbe8 100%)
  53. }
  54.  
  55. /* <a href="#" class="btn btn-gradient btn-shadow btn-cb">Button</a> */
  56. /* <button class="btn btn-gradient btn-shadow btn-cb">Button</button> */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement