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.

67 lines
1.1 KiB

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