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.

173 lines
2.7 KiB

  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. #controlBar{
  27. position: fixed;
  28. top: 0;
  29. width: 100%;
  30. margin: 0 auto;
  31. text-align: center;
  32. z-index: 999;
  33. display: none;
  34. &.visible{
  35. display: block;
  36. }
  37. }
  38. #renderedHoneyComb{
  39. canvas{
  40. height: 700px;
  41. position: absolute;
  42. display: none;
  43. }
  44. canvas.visible{
  45. display: block;
  46. }
  47. }
  48. #leaderBoard:extend(.transition) {
  49. position: fixed;
  50. top: 0px;
  51. right: 0;
  52. width: 500px;
  53. height: 100%;
  54. overflow: hidden;
  55. background-color: rgba(255,255,255,1);
  56. right: -400px;
  57. color: #333;
  58. opacity: .2;
  59. h1, h2, p{
  60. padding-left: 10px;
  61. }
  62. &:hover{
  63. opacity: 1;
  64. }
  65. button{
  66. height: 100%;
  67. background-color: rgba(0,0,0,0.5);
  68. color: white;
  69. border-color: transparent;
  70. float: left;
  71. width: 100px;
  72. opacity: .4;
  73. }
  74. #listBoard{
  75. float: left;
  76. overflow: auto;
  77. height: 100%;
  78. width: 400px;
  79. table, tr{
  80. width: 100%;
  81. td{
  82. width: 50%;
  83. text-align: center;
  84. }
  85. }
  86. }
  87. &.open:extend(.transition){
  88. right: 0;
  89. opacity: 1;
  90. }
  91. }
  92. .honeycombIndex{
  93. position: fixed;
  94. top: 0;
  95. left: 0;
  96. background-color: rgba(185, 5, 198, 0.29);
  97. padding: 20px;
  98. z-index: 999;
  99. }
  100. .hex {
  101. float: left;
  102. margin-left: @border;
  103. margin-bottom: -@sizeWidth/4;
  104. .top {
  105. width: 0;
  106. border-bottom: @sizeHeight/2 solid @color;
  107. border-left: @sizeWidth/2 solid transparent;
  108. border-right: @sizeWidth/2 solid transparent;
  109. }
  110. .middle {
  111. width: @sizeWidth;
  112. height: @sizeHeight;
  113. background: @color;
  114. }
  115. .bottom {
  116. width: 0;
  117. border-top: @sizeHeight/2 solid @color;
  118. border-left: @sizeWidth/2 solid transparent;
  119. border-right: @sizeWidth/2 solid transparent;
  120. }
  121. &.active{
  122. .top:extend(.hex .top){
  123. border-bottom-color: @activeColor;
  124. }
  125. .middle:extend(.hex .middle){
  126. background: @activeColor;
  127. }
  128. .bottom:extend(.hex .bottom){
  129. border-top-color: @activeColor;
  130. }
  131. }
  132. &.touched{
  133. .top:extend(.hex .top){
  134. border-bottom-color: @touchColor;
  135. }
  136. .middle:extend(.hex .middle){
  137. background: @touchColor;
  138. }
  139. .bottom:extend(.hex .bottom){
  140. border-top-color: @touchColor;
  141. }
  142. }
  143. &.unitMember{
  144. .middle:extend(.hex .middle){
  145. background-color: @unitColor;
  146. // background-image:
  147. }
  148. }
  149. &-row{
  150. clear: left;
  151. &.even {
  152. margin-left: (@sizeWidth/2);
  153. }
  154. }
  155. }