2.4K views
CSSAdd prefixes
1button { 2 display: flex; 3 align-items: center; 4 justify-content: center; 5 gap: 10px; 6 background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%); 7 border: solid 3px transparent; 8 background-clip: padding-box; 9 box-shadow: 0px 0px 0px 3px #ffffff00; 10 color: white; 11 min-height: 43px; 12 padding: 0 13px 0 13px; 13 border-radius: 50px; 14 text-transform: uppercase; 15 letter-spacing: 2px; 16 transition: all .5s ease; 17} 18 19button:active { 20 transform: scale(.9); 21 transition: all 100ms ease; 22} 23 24button:hover { 25 box-shadow: 0px 0px 0px 3px #30a1b8; 26} 27 28button svg { 29 width: 16px; 30}
HTML
1<button> 2 <svg class="css-i6dzq1" stroke-linejoin="round" stroke-linecap="round" fill="none" stroke-width="2" stroke="#FFFFFF" height="24" width="24" viewBox="0 0 24 24"> 3 <path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path> 4 </svg> 5 Edit 6</button>