Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
That's better!
But as of active state it doesn't look natural enough. I'd try to use transform: scale(0.9) instead of all those shadow/size/font-size changes.
Also, you shouldn't use hardcoded width/height with rem's, as they are not flexible enough. I'd go with relation to content, with line-height and padding/margin/border: transparent positioning.
For basic size flexibility you should use em instead of rem, therefore you'll be able to change size of a certain button with setting font-size to main element of that button.
Got some time to play with buttons. Here is what I meant:
https://codepen.io/extempl/pen/wvarvdO?editors=1100
3D Keyboard Key on CSS | Now It is Reality