#212121
1button { 2 background-color: #2d7f2f; 3 font-family: "Verdana", sans-serif; 4 padding: 5px 10px; 5 font-size: 18px; 6 color: #ececec; 7 cursor: pointer; 8 width: fit-content; 9 user-select: none; 10 display: flex; 11 justify-content: center; 12 align-items: center; 13 font-weight: 600; 14 border-radius: 5px; 15 touch-action: none; 16 position: relative; 17 border: none; 18 transition-property: box-shadow; 19 transition-duration: 300ms; 20 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 21 box-shadow: inset 0px 0px 0px 0px rgba(0, 0, 0, 0), inset 0px 0px 0px 0px rgba(230, 230, 230, 0); 22} 23 24button:focus, 25button:hover { 26 box-shadow: inset 0px -4px 0px 0px rgb(0 0 0 / 35%), inset 0px 2px 0px 0px rgb(230 230 230 / 7%); 27} 28 29button:active { 30 box-shadow: inset 0px 2px 0px 1px rgb(0 0 0 / 29%), inset 0px -1px 0px 0px rgb(230 230 230 / 7%); 31} 32 33button .inner { 34 user-select: none; 35 pointer-events: none; 36 transform: translateY(0px) scale(1) translate3d(0, 0, 0); 37 transition-property: transform; 38 transition-duration: 300ms; 39 transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); 40} 41 42button:active .inner { 43 transform: translateY(1px) scale(0.98) translate3d(0, 0, 0); 44} 45
694 views
694 views
Comments
MIT License