controllers.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. div.rounded_button
  2. {
  3. display: block;
  4. background-color: #f7f7f7;
  5. background-image: -webkit-gradient(linear, left top, left bottom, to(#d7d7d7), from(#e7e7e7));
  6. background-image: -webkit-linear-gradient(top, #d7d7d7, #e7e7e7);
  7. background-image: -moz-linear-gradient(top, #d7d7d7, #e7e7e7);
  8. background-image: -ms-linear-gradient(top, #d7d7d7, #e7e7e7);
  9. background-image: -o-linear-gradient(top, #d7d7d7, #e7e7e7);
  10. color: gray;
  11. margin-left: auto;
  12. margin-right: auto;
  13. margin-top: 4px;
  14. margin-bottom:4px;
  15. width: 100px;
  16. height: 100px;
  17. position: relative;
  18. text-align: center;
  19. line-height: 100px;
  20. border-radius: 50%;
  21. box-shadow: 0px 5px 10px #588, inset 0px 2px 3px #fff;
  22. text-shadow:0 1px 0 white;
  23. }
  24. div.rounded_button:hover
  25. {
  26. cursor:pointer;
  27. }
  28. div.rounded_button.pressed,
  29. div.rounded_button:active
  30. {
  31. box-shadow: 0px 1px 4px #588, inset 0px 2px 3px #fff;
  32. background-image: -webkit-gradient(linear, left top, left bottom, to(#d0d0d0), from(#f0f0f0));
  33. background-image: -webkit-linear-gradient(top, #d0d0d0, #f0f0f0);
  34. background-image: -moz-linear-gradient(top, #d0d0d0, #f0f0f0);
  35. background-image: -ms-linear-gradient(top, #d0d0d0, #f0f0f0);
  36. background-image: -o-linear-gradient(top, #d0d0d0, #f0f0f0);
  37. }
  38. span.toggle_button {
  39. position:relative;
  40. display:inline-block;
  41. width:80px;
  42. height:100px;
  43. background-color:#bbb;
  44. -webkit-border-radius:4px;
  45. -moz-border-radius:4px;
  46. border-radius:4px;
  47. text-align:center;
  48. }
  49. span.toggle_button input {
  50. width:100%;
  51. height:100%;
  52. margin:0 0;
  53. padding:0 0;
  54. position:absolute;
  55. top:0;
  56. right:0;
  57. bottom:0;
  58. left:0;
  59. z-index:2;
  60. cursor:pointer;
  61. opacity:0;
  62. filter:alpha(opacity=0);
  63. }
  64. span.toggle_button label {
  65. display:block;
  66. position:absolute;
  67. top:1px;
  68. right:1px;
  69. bottom:1px;
  70. left:1px;
  71. background-image:-webkit-linear-gradient(top,#fff 0%,#ddd 50%,#fff 50%,#eee 100%);
  72. background-image:-moz-linear-gradient(top,#fff 0%,#ddd 50%,#fff 50%,#eee 100%);
  73. background-image:-ms-linear-gradient(top,#fff 0%,#ddd 50%,#fff 50%,#eee 100%);
  74. background-image:-o-linear-gradient(top,#fff 0%,#ddd 50%,#fff 50%,#eee 100%);
  75. background-image:linear-gradient(top,#fff 0%,#ddd 50%,#fff 50%,#eee 100%);
  76. -webkit-box-shadow:0 2px 3px rgba(0,0,0,0.4),
  77. inset 0 -1px 1px #888,
  78. inset 0 -5px 1px #bbb,
  79. inset 0 -6px 0 white;
  80. -moz-box-shadow:0 2px 3px rgba(0,0,0,0.4),
  81. inset 0 -1px 1px #888,
  82. inset 0 -5px 1px #bbb,
  83. inset 0 -6px 0 white;
  84. box-shadow:0 2px 3px rgba(0,0,0,0.4),
  85. inset 0 -1px 1px #888,
  86. inset 0 -5px 1px #bbb,
  87. inset 0 -6px 0 white;
  88. -webkit-border-radius:3px;
  89. -moz-border-radius:3px;
  90. border-radius:3px;
  91. font:normal 11px Arial,Sans-Serif;
  92. color:#666;
  93. text-shadow:0 1px 0 white;
  94. cursor:text;
  95. }
  96. span.toggle_button label:before {
  97. content:attr(data-off);
  98. position:absolute;
  99. top:14px;
  100. right:0;
  101. left:0;
  102. z-index:4;
  103. }
  104. span.toggle_button label:after {
  105. content:attr(data-on);
  106. position:absolute;
  107. right:0;
  108. bottom:17px;
  109. left:0;
  110. text-shadow:0 -1px 0 #eee;
  111. }
  112. span.toggle_button input:checked + label {
  113. background-image:-webkit-linear-gradient(top,#eee 0%,#ccc 50%,#fff 50%,#eee 100%);
  114. background-image:-moz-linear-gradient(top,#eee 0%,#ccc 50%,#fff 50%,#eee 100%);
  115. background-image:-ms-linear-gradient(top,#eee 0%,#ccc 50%,#fff 50%,#eee 100%);
  116. background-image:-o-linear-gradient(top,#eee 0%,#ccc 50%,#fff 50%,#eee 100%);
  117. background-image:linear-gradient(top,#eee 0%,#ccc 50%,#fff 50%,#eee 100%);
  118. -webkit-box-shadow:0 0 1px rgba(0,0,0,0.4),
  119. inset 0 1px 7px -1px #ccc,
  120. inset 0 5px 1px #fafafa,
  121. inset 0 6px 0 white;
  122. -moz-box-shadow:0 0 1px rgba(0,0,0,0.4),
  123. inset 0 1px 7px -1px #ccc,
  124. inset 0 5px 1px #fafafa,
  125. inset 0 6px 0 white;
  126. box-shadow:0 0 1px rgba(0,0,0,0.4),
  127. inset 0 1px 7px -1px #ccc,
  128. inset 0 5px 1px #fafafa,
  129. inset 0 6px 0 white;
  130. }
  131. span.toggle_button input:checked:hover + label {
  132. -webkit-box-shadow:0 1px 3px rgba(0,0,0,0.4),
  133. inset 0 1px 7px -1px #ccc,
  134. inset 0 5px 1px #fafafa,
  135. inset 0 6px 0 white;
  136. -moz-box-shadow:0 1px 3px rgba(0,0,0,0.4),
  137. inset 0 1px 7px -1px #ccc,
  138. inset 0 5px 1px #fafafa,
  139. inset 0 6px 0 white;
  140. box-shadow:0 1px 3px rgba(0,0,0,0.4),
  141. inset 0 1px 7px -1px #ccc,
  142. inset 0 5px 1px #fafafa,
  143. inset 0 6px 0 white;
  144. }
  145. span.toggle_button input:checked + label:before {
  146. z-index:1;
  147. top:17px;
  148. }
  149. span.toggle_button input:checked + label:after {
  150. bottom:15px;
  151. z-index:4;
  152. }
  153. .panel div.display
  154. {
  155. font-size: 20px;
  156. }
  157. button.detail
  158. {
  159. position:absolute;
  160. right: 4px;
  161. font-size: 11px;
  162. }