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.

141 lines
2.3 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. #leaderBoard:extend(.transition) {
  27. position: fixed;
  28. top: 0px;
  29. right: 0;
  30. width: 500px;
  31. height: 100%;
  32. overflow: hidden;
  33. background-color: rgba(255,255,255,1);
  34. right: -400px;
  35. color: #333;
  36. opacity: .2;
  37. h1, h2, p{
  38. padding-left: 10px;
  39. }
  40. &:hover{
  41. opacity: 1;
  42. }
  43. button{
  44. height: 100%;
  45. background-color: rgba(0,0,0,0.5);
  46. color: white;
  47. border-color: transparent;
  48. float: left;
  49. width: 100px;
  50. opacity: .4;
  51. }
  52. #listBoard{
  53. float: left;
  54. overflow: auto;
  55. height: 100%;
  56. width: 400px;
  57. table, tr{
  58. width: 100%;
  59. td{
  60. width: 50%;
  61. text-align: center;
  62. }
  63. }
  64. }
  65. &.open:extend(.transition){
  66. right: 0;
  67. opacity: 1;
  68. }
  69. }
  70. .hex {
  71. float: left;
  72. margin-left: @border;
  73. margin-bottom: -@sizeWidth/4;
  74. .top {
  75. width: 0;
  76. border-bottom: @sizeHeight/2 solid @color;
  77. border-left: @sizeWidth/2 solid transparent;
  78. border-right: @sizeWidth/2 solid transparent;
  79. }
  80. .middle {
  81. width: @sizeWidth;
  82. height: @sizeHeight;
  83. background: @color;
  84. }
  85. .bottom {
  86. width: 0;
  87. border-top: @sizeHeight/2 solid @color;
  88. border-left: @sizeWidth/2 solid transparent;
  89. border-right: @sizeWidth/2 solid transparent;
  90. }
  91. &.active{
  92. .top:extend(.hex .top){
  93. border-bottom-color: @activeColor;
  94. }
  95. .middle:extend(.hex .middle){
  96. background: @activeColor;
  97. }
  98. .bottom:extend(.hex .bottom){
  99. border-top-color: @activeColor;
  100. }
  101. }
  102. &.touched{
  103. .top:extend(.hex .top){
  104. border-bottom-color: @touchColor;
  105. }
  106. .middle:extend(.hex .middle){
  107. background: @touchColor;
  108. }
  109. .bottom:extend(.hex .bottom){
  110. border-top-color: @touchColor;
  111. }
  112. }
  113. &.unitMember{
  114. .middle:extend(.hex .middle){
  115. background-color: @unitColor;
  116. // background-image:
  117. }
  118. }
  119. &-row{
  120. clear: left;
  121. &.even {
  122. margin-left: (@sizeWidth/2);
  123. }
  124. }
  125. }