_buttons.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // ==========================================================================
  2. // Buttony button buttons
  3. // ==========================================================================
  4. .button,
  5. .download-jetpack {
  6. transition: all .1s ease-in-out;
  7. }
  8. .jp-button {
  9. display: inline-block;
  10. position: relative;
  11. padding: em(10px, 13px) em(19px, 13px);
  12. color: #efefef;
  13. font-weight: bold;
  14. font-size: 0.9285714286em; // 13/14
  15. line-height: 1;
  16. text-shadow: 0 1px 1px rgba(0,0,0,.2);
  17. background: #6f7476;
  18. border-radius: 3px;
  19. &:visited {
  20. color: #efefef;
  21. }
  22. &:hover,
  23. &:focus {
  24. color: #fff;
  25. background: #57972d;
  26. }
  27. &:active {
  28. background: #57972d;
  29. opacity: 0.8;
  30. }
  31. }
  32. .jp-button--settings {
  33. @extend .jp-button;
  34. background: #93b45f;
  35. color: #e8eedf;
  36. &:visited {
  37. color: #e8eedf
  38. }
  39. &:hover,
  40. &:focus {
  41. background: #9fbd72;
  42. color: #fff;
  43. }
  44. &.current {
  45. background: #3c6621;
  46. color: #fff;
  47. box-shadow:
  48. inset 0 2px 0 #365A1F,
  49. inset 0 1px 3px #3c6621;
  50. }
  51. }
  52. .download-jetpack {
  53. display: inline-block;
  54. position: relative;
  55. padding: em(18px, 28px) em(50px, 46px) em(15px, 28px);
  56. color: #fff;
  57. font-weight: 400;
  58. font-size: 20px;
  59. line-height: 1;
  60. background: #518d2a;
  61. z-index: 3;
  62. border-radius: 6px;
  63. box-shadow:
  64. 0 6px 0 #3e6c20,
  65. 0 6px 3px rgba(0,0,0,.4);
  66. &:visited {
  67. color: #fff;
  68. }
  69. &:hover,
  70. &:focus {
  71. color: #fff;
  72. background: #57972d;
  73. box-shadow:
  74. 0 6px 0 #3e6c20,
  75. 0 6px 3px rgba(0,0,0,.4);
  76. }
  77. &:active {
  78. top: 6px;
  79. box-shadow:
  80. 0 0px 0 #3e6c20,
  81. 0 0 0 rgba(0,0,0,.4);
  82. &:after {
  83. // fixes buggy clicks
  84. top: -6px;
  85. }
  86. }
  87. &:before {
  88. content: '';
  89. display: inline-block;
  90. position: relative;
  91. top: -2px;
  92. margin-right: 13px;
  93. width: 30px;
  94. height: 30px;
  95. vertical-align: middle;
  96. background: url('../images/connect-plug.svg') center center no-repeat;
  97. background-size: 100%;
  98. }
  99. &:after {
  100. // fixes buggy clicks
  101. content: '';
  102. position: absolute;
  103. top: 0;
  104. left: 0;
  105. width: 100%;
  106. height: 100%;
  107. }
  108. @include breakpoint(large-desktop){
  109. font-size: em(18px);
  110. &:before {
  111. top: -1px;
  112. width: 23px;
  113. height: 23px;
  114. }
  115. };
  116. @include breakpoint(desktop){
  117. &:active {
  118. top: 0;
  119. }
  120. };
  121. @include breakpoint(large-phone){
  122. font-size: em(17px);
  123. font-weight: 600;
  124. &:before {
  125. width: 19px;
  126. height: 19px;
  127. margin-right: 9px;
  128. }
  129. };
  130. }