_chessboard.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #board-moves-wrapper {
  2. width: 100%;
  3. max-width: 800px;
  4. min-height: 600px;
  5. margin: 0 auto;
  6. }
  7. table#moves {
  8. overflow-x: hidden;
  9. overflow-y: auto;
  10. width: 270px;
  11. height: 518px;
  12. background: lighten($grey, 5%);
  13. box-shadow: inset 0 -4px $grey;
  14. margin-left: 10px;
  15. border-radius: 2px;
  16. border-bottom: 4px solid $grey;
  17. display: block;
  18. float: left;
  19. }
  20. #moves thead {
  21. font-family: 'Cherry Swash';
  22. width: 270px;
  23. height: 3em;
  24. line-height: 3em;
  25. font-size: 1.225rem;
  26. color: $dark-purple;
  27. float: left;
  28. text-align: center;
  29. }
  30. #moves thead th, #moves thead tr {
  31. width: 100%;
  32. text-align: center;
  33. float: left;
  34. }
  35. #moves tbody tr {
  36. width: 270px;
  37. float: left;
  38. }
  39. #moves tbody tr td {
  40. width: 105px;
  41. text-align: left;
  42. line-height: 20px;
  43. margin: 0 15px;
  44. float: left;
  45. }
  46. #board-wrapper {
  47. float: left;
  48. }
  49. .chessboard {
  50. border: 8px solid lighten($dark-purple, 10%);
  51. border-radius: 2px;
  52. width: 500px;
  53. height: 500px;
  54. float: left;
  55. tr {
  56. width: 500px;
  57. height: 62.5px;
  58. float: left;
  59. display: block;
  60. td {
  61. width: 62.5px;
  62. height: 62.5px;
  63. line-height: 62.5px;
  64. text-align: center;
  65. background: #fefefe;
  66. display: block;
  67. float: left;
  68. &.moving { background: lighten($red, 30%) !important; }
  69. &.selected { background: lighten($red, 30%) !important; }
  70. &.from { background: lighten($blue, 25%) !important; }
  71. &.to { background: lighten($blue, 20%) !important; }
  72. a {
  73. width: 6ch2.5px;
  74. height: 62.5px;
  75. font-size: 3.5rem;
  76. color: #424242;
  77. text-decoration: none;
  78. display: block;
  79. cursor: pointer;
  80. }
  81. }
  82. }
  83. }
  84. .chessboard tr:nth-child(odd) td:nth-child(even),
  85. .chessboard tr:nth-child(even) td:nth-child(odd) {
  86. background: $grey;
  87. }
  88. span.feedback {
  89. color: #424242;
  90. line-height: 28px;
  91. text-indent: 28px;
  92. margin-top: 1em;
  93. display: block;
  94. clear: left;
  95. float: left;
  96. }
  97. .feedback-status {
  98. font-weight: bold;
  99. }
  100. span.whitefeedback {
  101. background: url('../img/whiteking.png') 0% 50% no-repeat;
  102. }
  103. span.blackfeedback {
  104. background: url('../img/blackking.png') 0% 50% no-repeat;
  105. }
  106. span.promotion {
  107. line-height: 28px;
  108. text-indent: 28px;
  109. margin-top: 1em;
  110. display: block;
  111. float: right;
  112. }