Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

163 linhas
3.4 KiB

há 3 anos
  1. .hotbox {
  2. font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  3. position: absolute;
  4. left: 0;
  5. top: 0;
  6. overflow: visible;
  7. }
  8. .hotbox .state {
  9. position: absolute;
  10. overflow: visible;
  11. display: none;
  12. }
  13. .hotbox .state .center .button,
  14. .hotbox .state .ring .button {
  15. position: absolute;
  16. width: 70px;
  17. height: 70px;
  18. margin-left: -35px;
  19. margin-top: -35px;
  20. border-radius: 100%;
  21. box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  22. }
  23. .hotbox .state .center .label,
  24. .hotbox .state .ring .label,
  25. .hotbox .state .center .key,
  26. .hotbox .state .ring .key {
  27. display: block;
  28. text-align: center;
  29. line-height: 1.4em;
  30. vertical-align: middle;
  31. }
  32. .hotbox .state .center .label,
  33. .hotbox .state .ring .label {
  34. font-size: 16px;
  35. margin-top: 17px;
  36. color: black;
  37. font-weight: normal;
  38. line-height: 1em;
  39. }
  40. .hotbox .state .center .key,
  41. .hotbox .state .ring .key {
  42. font-size: 12px;
  43. color: #999;
  44. }
  45. .hotbox .state .ring-shape {
  46. position: absolute;
  47. left: -25px;
  48. top: -25px;
  49. border: 25px solid rgba(0, 0, 0, 0.3);
  50. border-radius: 100%;
  51. box-sizing: content-box;
  52. }
  53. .hotbox .state .top,
  54. .hotbox .state .bottom {
  55. position: absolute;
  56. white-space: nowrap;
  57. }
  58. .hotbox .state .top .button,
  59. .hotbox .state .bottom .button {
  60. display: inline-block;
  61. padding: 8px 15px;
  62. margin: 0 10px;
  63. border-radius: 15px;
  64. box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  65. position: relative;
  66. }
  67. .hotbox .state .top .button .label,
  68. .hotbox .state .bottom .button .label {
  69. font-size: 14px;
  70. line-height: 14px;
  71. vertical-align: middle;
  72. color: black;
  73. line-height: 1em;
  74. }
  75. .hotbox .state .top .button .key,
  76. .hotbox .state .bottom .button .key {
  77. font-size: 12px;
  78. line-height: 12px;
  79. vertical-align: middle;
  80. color: #999;
  81. margin-left: 3px;
  82. }
  83. .hotbox .state .top .button .key:before,
  84. .hotbox .state .bottom .button .key:before {
  85. content: '(';
  86. }
  87. .hotbox .state .top .button .key:after,
  88. .hotbox .state .bottom .button .key:after {
  89. content: ')';
  90. }
  91. .hotbox .state .button {
  92. background: #F9F9F9;
  93. overflow: hidden;
  94. cursor: default;
  95. }
  96. .hotbox .state .button .key,
  97. .hotbox .state .button .label {
  98. opacity: 0.3;
  99. }
  100. .hotbox .state .button.enabled {
  101. background: white;
  102. }
  103. .hotbox .state .button.enabled .key,
  104. .hotbox .state .button.enabled .label {
  105. opacity: 1;
  106. }
  107. .hotbox .state .button.enabled:hover {
  108. background: #e87372;
  109. }
  110. .hotbox .state .button.enabled:hover .label {
  111. color: white;
  112. }
  113. .hotbox .state .button.enabled:hover .key {
  114. color: #fadfdf;
  115. }
  116. .hotbox .state .button.enabled.selected {
  117. -webkit-animation: selected .1s ease;
  118. background: #e45d5c;
  119. }
  120. .hotbox .state .button.enabled.selected .label {
  121. color: white;
  122. }
  123. .hotbox .state .button.enabled.selected .key {
  124. color: #fadfdf;
  125. }
  126. .hotbox .state .button.enabled.pressed,
  127. .hotbox .state .button.enabled:active {
  128. background: #FF974D;
  129. }
  130. .hotbox .state .button.enabled.pressed .label,
  131. .hotbox .state .button.enabled:active .label {
  132. color: white;
  133. }
  134. .hotbox .state .button.enabled.pressed .key,
  135. .hotbox .state .button.enabled:active .key {
  136. color: #fff0e6;
  137. }
  138. .hotbox .state.active {
  139. display: block;
  140. }
  141. @-webkit-keyframes selected {
  142. 0% {
  143. -webkit-transform: scale(1);
  144. transform: scale(1);
  145. }
  146. 50% {
  147. -webkit-transform: scale(1.1);
  148. transform: scale(1.1);
  149. }
  150. 100% {
  151. -webkit-transform: scale(1);
  152. transform: scale(1);
  153. }
  154. }
  155. .hotbox-key-receiver {
  156. position: absolute;
  157. left: -999999px;
  158. top: -999999px;
  159. width: 20px;
  160. height: 20px;
  161. outline: none;
  162. margin: 0;
  163. }