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.

66 lines
1.0 KiB

  1. @disabledColor: #efefef;
  2. @sizeWidth: 100px;
  3. @border: 1px;
  4. @sizeHeight: @sizeWidth/sqrt(3);
  5. html, body{
  6. margin: 0;
  7. padding: 0;
  8. height: 100%;
  9. width: 100%;
  10. }
  11. body{
  12. background-color: #333;
  13. }
  14. #control{
  15. position: fixed;
  16. top: 0px;
  17. right: 0;
  18. width: 100px;
  19. height: 100px;
  20. }
  21. .hex {
  22. float: left;
  23. margin-left: @border;
  24. margin-bottom: -@sizeWidth/4;
  25. .top {
  26. width: 0;
  27. border-bottom: @sizeHeight/2 solid #6C6;
  28. border-left: @sizeWidth/2 solid transparent;
  29. border-right: @sizeWidth/2 solid transparent;
  30. }
  31. .middle {
  32. width: @sizeWidth;
  33. height: @sizeHeight;
  34. background: #6C6;
  35. }
  36. .bottom {
  37. width: 0;
  38. border-top: @sizeHeight/2 solid #6C6;
  39. border-left: @sizeWidth/2 solid transparent;
  40. border-right: @sizeWidth/2 solid transparent;
  41. }
  42. &.disabled{
  43. .top:extend(.top){
  44. border-bottom-color: @disabledColor;
  45. }
  46. .middle:extend(.middle){
  47. background: @disabledColor;
  48. }
  49. .bottom:extend(.bottom){
  50. border-top-color: @disabledColor;
  51. }
  52. }
  53. &-row{
  54. clear: left;
  55. &.even {
  56. margin-left: (@sizeWidth/2);
  57. }
  58. }
  59. }