Button by Kabak
#212121
1button { 2 height: 50px; 3 margin: 5px; 4 width: 120px; 5 background: #333; 6 -webkit-box-pack: center; 7 -ms-flex-pack: center; 8 justify-content: center; 9 cursor: pointer; 10 -webkit-box-align: center; 11 -ms-flex-align: center; 12 align-items: center; 13 font-family: Consolas, Courier New, monospace; 14 border: solid #404c5d 1px; 15 font-size: 16px; 16 color: rgb(161, 161, 161); 17 -webkit-transition: 500ms; 18 transition: 500ms; 19 border-radius: 5px; 20 background: linear-gradient(145deg, #2e2d2d, #212121); 21 -webkit-box-shadow: -1px -5px 15px #41465b, 5px 5px 15px #41465b, 22 inset 5px 5px 10px #212121, inset -5px -5px 10px #212121; 23 box-shadow: -1px -5px 15px #41465b, 5px 5px 15px #41465b, 24 inset 5px 5px 10px #212121, inset -5px -5px 10px #212121; 25} 26 27button:hover { 28 -webkit-box-shadow: 1px 1px 13px #20232e, -1px -1px 13px #545b78; 29 box-shadow: 1px 1px 13px #20232e, -1px -1px 13px #545b78; 30 color: #d6d6d6; 31 -webkit-transition: 500ms; 32 transition: 500ms; 33} 34 35button:active { 36 -webkit-box-shadow: 1px 1px 13px #20232e, -1px -1px 33px #545b78; 37 box-shadow: 1px 1px 13px #20232e, -1px -1px 33px #545b78; 38 color: #d6d6d6; 39 -webkit-transition: 100ms; 40 transition: 100ms; 41} 42
11K views
11K views
Variations
1 MIT License