5K views
1button { 2 font-size: 17px; 3 padding: 0.5em 2em; 4 border: transparent; 5 box-shadow: 2px 2px 4px rgba(0,0,0,0.4); 6 background: dodgerblue; 7 color: white; 8 border-radius: 4px; 9} 10 11button:hover { 12 background: rgb(2,0,36); 13 background: linear-gradient(90deg, rgba(30,144,255,1) 0%, rgba(0,212,255,1) 100%); 14} 15 16button:active { 17 transform: translate(0em, 0.2em); 18}
MIT License