- group into a single `.btn`
- add spaces for readability
This commit is contained in:
Reto Kromer 2017-03-05 06:43:51 +01:00 committed by GitHub
parent a5a49e1f28
commit 5869850d4b

View File

@ -38,9 +38,6 @@ div {
.btn { .btn {
margin: 8px; margin: 8px;
}
.btn {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
-webkit-transform: translateZ(0); -webkit-transform: translateZ(0);
@ -54,6 +51,7 @@ div {
-webkit-transition-duration: 0.3s; -webkit-transition-duration: 0.3s;
transition-duration: 0.3s; transition-duration: 0.3s;
} }
.btn:before { .btn:before {
content: "💫"; content: "💫";
position: absolute; position: absolute;
@ -68,6 +66,7 @@ div {
-webkit-transition-timing-function: ease-out; -webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out; transition-timing-function: ease-out;
} }
.btn:hover:before, .btn:focus:before, .btn:active:before { .btn:hover:before, .btn:focus:before, .btn:active:before {
-webkit-transform: scale(1.3) translateZ(0); -webkit-transform: scale(1.3) translateZ(0);
transform: scale(1.3) translateZ(0); transform: scale(1.3) translateZ(0);