2.1K views
CSSAdd prefixes
1button { 2 font-size: 17px; 3 font-family: inherit; 4 font-weight: 700; 5 padding: 4px; 6 border-radius: 20px; 7 border: none; 8 color: black; 9 box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px; 10 background: linear-gradient(0deg, rgba(255,213,0,1) 0%, rgba(255,213,0,1) 47%, rgba(0,91,187,1) 47%, rgba(0,91,187,1) 100%); 11} 12 13button .button-content { 14 display: flex; 15 align-items: center; 16 background: white; 17 padding: 0.7em 1.5em; 18 padding-left: 1.2em; 19 border-radius: 16px; 20} 21 22button svg { 23 width: 22px; 24 height: 22px; 25 margin-right: 6px; 26 color: #ff0000; 27 transition: transform 0.3s; 28} 29 30button:hover svg { 31 transform: scale(1.2); 32} 33 34
HTML
1<button> 2 <span class="button-content"> 3 <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H24V24H0z" fill="none"></path><path d="M12.001 4.529c2.349-2.109 5.979-2.039 8.242.228 2.262 2.268 2.34 5.88.236 8.236l-8.48 8.492-8.478-8.492c-2.104-2.356-2.025-5.974.236-8.236 2.265-2.264 5.888-2.34 8.244-.228z" fill="currentColor"></path></svg> Ukraine 4 </span> 5</button>