garage_door_opener.css 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. body {
  2. text-align: center;
  3. }
  4. .button {
  5. display: inline-block;
  6. margin: 10px;
  7. -webkit-border-radius: 8px;
  8. -moz-border-radius: 8px;
  9. border-radius: 8px;
  10. -webkit-box-shadow: 0 8px 0 #c5376d, 0 15px 20px rgba(0, 0, 0, .35);
  11. -moz-box-shadow: 0 8px 0 #c5376d, 0 15px 20px rgba(0, 0, 0, .35);
  12. box-shadow: 0 8px 0 #c5376d, 0 15px 20px rgba(0, 0, 0, .35);
  13. -webkit-transition: -webkit-box-shadow .1s ease-in-out;
  14. -moz-transition: -moz-box-shadow .1s ease-in-out;
  15. -o-transition: -o-box-shadow .1s ease-in-out;
  16. transition: box-shadow .1s ease-in-out;
  17. font-size: 50px;
  18. color: #fff;
  19. }
  20. .button span {
  21. display: inline-block;
  22. padding: 20px 30px;
  23. background-color: #ec528d;
  24. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(hsla(338, 90%, 80%, .8)), to(hsla(338, 90%, 70%, .2)));
  25. background-image: -webkit-linear-gradient(hsla(338, 90%, 80%, .8), hsla(338, 90%, 70%, .2));
  26. background-image: -moz-linear-gradient(hsla(338, 90%, 80%, .8), hsla(338, 90%, 70%, .2));
  27. background-image: -o-linear-gradient(hsla(338, 90%, 80%, .8), hsla(338, 90%, 70%, .2));
  28. -webkit-border-radius: 8px;
  29. -moz-border-radius: 8px;
  30. border-radius: 8px;
  31. -webkit-box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .15);
  32. -moz-box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .15);
  33. box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .15);
  34. font-family: 'Khand', sans-serif;
  35. line-height: 1;
  36. text-shadow: 0 -1px 1px rgba(175, 49, 95, .7);
  37. -webkit-transition: background-color .2s ease-in-out, -webkit-transform .1s ease-in-out;
  38. -moz-transition: background-color .2s ease-in-out, -moz-transform .1s ease-in-out;
  39. -o-transition: background-color .2s ease-in-out, -o-transform .1s ease-in-out;
  40. transition: background-color .2s ease-in-out, transform .1s ease-in-out;
  41. }
  42. .button:hover span {
  43. background-color: #ec6a9c;
  44. text-shadow: 0 -1px 1px rgba(175, 49, 95, .9), 0 0 5px rgba(255, 255, 255, .8);
  45. }
  46. .button:active, .button:focus {
  47. -webkit-box-shadow: 0 8px 0 #c5376d, 0 12px 10px rgba(0, 0, 0, .3);
  48. -moz-box-shadow: 0 8px 0 #c5376d, 0 12px 10px rgba(0, 0, 0, .3);
  49. box-shadow: 0 8px 0 #c5376d, 0 12px 10px rgba(0, 0, 0, .3);
  50. }
  51. .button:active span {
  52. -webkit-transform: translate(0, 4px);
  53. -moz-transform: translate(0, 4px);
  54. -o-transform: translate(0, 4px);
  55. transform: translate(0, 4px);
  56. }