You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
3.1 KiB

9 years ago
  1. @activeColor: #FFDDA0;
  2. @touchColor: #F7D7D7;
  3. @unitColor: #C2F19D;
  4. @sizeWidth: 100px;
  5. @border: 1px;
  6. @sizeHeight: @sizeWidth/sqrt(3);
  7. @color: #efefef;
  8. html, body{
  9. margin: 0;
  10. padding: 0;
  11. height: auto;
  12. width: 100%;
  13. }
  14. body{
  15. background-color: #333;
  16. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  17. font-weight: 300;
  18. }
  19. audio{
  20. display: none;
  21. }
  22. .transition{
  23. -webkit-transition: all .5s ease-in-out; /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6 */
  24. transition: all .5s ease-in-out;
  25. }
  26. .bottomRight{
  27. position: fixed;
  28. right: 0;
  29. bottom: 0;
  30. z-index: 9999;
  31. background: #666;
  32. padding: 10px;
  33. button{
  34. margin-left: 10px;
  35. margin-right: 10px;
  36. }
  37. input{
  38. min-width: 200px;
  39. }
  40. }
  41. #controlBar{
  42. position: fixed;
  43. top: 0;
  44. width: 100%;
  45. margin: 0 auto;
  46. text-align: center;
  47. z-index: 999;
  48. display: none;
  49. &.visible{
  50. display: block;
  51. }
  52. }
  53. #renderedHoneyComb{
  54. canvas{
  55. height: 700px;
  56. position: absolute;
  57. display: none;
  58. }
  59. canvas.visible{
  60. display: block;
  61. }
  62. }
  63. #leaderBoard:extend(.transition) {
  64. position: fixed;
  65. top: 0px;
  66. right: 0;
  67. width: 500px;
  68. height: 100%;
  69. overflow: hidden;
  70. background-color: rgba(255,255,255,1);
  71. right: -400px;
  72. color: #333;
  73. opacity: .2;
  74. z-index: 999;
  75. h1, h2, p{
  76. padding-left: 10px;
  77. }
  78. &:hover{
  79. opacity: 1;
  80. }
  81. button{
  82. height: 100%;
  83. background-color: rgba(0,0,0,0.5);
  84. color: white;
  85. border-color: transparent;
  86. float: left;
  87. width: 100px;
  88. opacity: .4;
  89. }
  90. #listBoard{
  91. float: left;
  92. overflow: auto;
  93. height: 100%;
  94. width: 400px;
  95. table, tr{
  96. width: 100%;
  97. td{
  98. width: 50%;
  99. text-align: center;
  100. }
  101. }
  102. }
  103. &.open:extend(.transition){
  104. right: 0;
  105. opacity: 1;
  106. }
  107. }
  108. .honeycombIndex{
  109. position: fixed;
  110. top: 0;
  111. left: 0;
  112. background-color: rgba(185, 5, 198, 0.29);
  113. padding: 20px;
  114. z-index: 999;
  115. font-size: 50px;
  116. }
  117. .honeycombScore:extend(.honeycombIndex){
  118. top: 120px;
  119. background-color: rgba(175, 0, 198, 0.29);
  120. }
  121. .hex {
  122. float: left;
  123. margin-left: @border;
  124. margin-bottom: -@sizeWidth/4;
  125. .top {
  126. width: 0;
  127. border-bottom: @sizeHeight/2 solid @color;
  128. border-left: @sizeWidth/2 solid transparent;
  129. border-right: @sizeWidth/2 solid transparent;
  130. }
  131. .middle {
  132. width: @sizeWidth;
  133. height: @sizeHeight;
  134. background: @color;
  135. }
  136. .bottom {
  137. width: 0;
  138. border-top: @sizeHeight/2 solid @color;
  139. border-left: @sizeWidth/2 solid transparent;
  140. border-right: @sizeWidth/2 solid transparent;
  141. }
  142. &.active{
  143. .top:extend(.hex .top){
  144. border-bottom-color: @activeColor;
  145. }
  146. .middle:extend(.hex .middle){
  147. background: @activeColor;
  148. }
  149. .bottom:extend(.hex .bottom){
  150. border-top-color: @activeColor;
  151. }
  152. }
  153. &.touched{
  154. .top:extend(.hex .top){
  155. border-bottom-color: @touchColor;
  156. }
  157. .middle:extend(.hex .middle){
  158. background: @touchColor;
  159. }
  160. .bottom:extend(.hex .bottom){
  161. border-top-color: @touchColor;
  162. }
  163. }
  164. &.unitMember{
  165. .middle:extend(.hex .middle){
  166. background-color: @unitColor;
  167. // background-image:
  168. }
  169. }
  170. &-row{
  171. clear: left;
  172. &.even {
  173. margin-left: (@sizeWidth/2);
  174. }
  175. }
  176. }