5.3K views
1.button-name { 2 align-items: center; 3 appearance: none; 4 background-color: #FCFCFD; 5 border-radius: 4px; 6 border-width: 0; 7 box-shadow: rgba(45, 35, 66, 0.2) 0 2px 4px,rgba(45, 35, 66, 0.15) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; 8 box-sizing: border-box; 9 color: #36395A; 10 cursor: pointer; 11 display: inline-flex; 12 font-family: "JetBrains Mono",monospace; 13 height: 48px; 14 justify-content: center; 15 line-height: 1; 16 list-style: none; 17 overflow: hidden; 18 padding-left: 16px; 19 padding-right: 16px; 20 position: relative; 21 text-align: left; 22 text-decoration: none; 23 transition: box-shadow .15s,transform .15s; 24 user-select: none; 25 -webkit-user-select: none; 26 touch-action: manipulation; 27 white-space: nowrap; 28 will-change: box-shadow,transform; 29 font-size: 18px; 30} 31 32.button-name:focus { 33 box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; 34} 35 36.button-name:hover { 37 box-shadow: rgba(45, 35, 66, 0.3) 0 4px 8px, rgba(45, 35, 66, 0.2) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; 38 transform: translateY(-2px); 39} 40 41.button-name:active { 42 box-shadow: #D6D6E7 0 3px 7px inset; 43 transform: translateY(2px); 44}
Custyyyy
Custy
MIT License