_chessboard.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 {
  69. background: lighten($red, 30%) !important;
  70. }
  71. a {
  72. width: 6ch2.5px;
  73. height: 62.5px;
  74. font-size: 3.5rem;
  75. color: #424242;
  76. text-decoration: none;
  77. display: block;
  78. cursor: pointer;
  79. }
  80. }
  81. }
  82. }
  83. .chessboard tr:nth-child(odd) td:nth-child(even),
  84. .chessboard tr:nth-child(even) td:nth-child(odd) {
  85. background: $grey;
  86. }
  87. span.feedback {
  88. color: #424242;
  89. line-height: 28px;
  90. text-indent: 28px;
  91. margin-top: 1em;
  92. display: block;
  93. clear: left;
  94. float: left;
  95. }
  96. .feedback-status {
  97. font-weight: bold;
  98. }
  99. span.whitefeedback {
  100. background: url('../img/whiteking.png') 0% 50% no-repeat;
  101. }
  102. span.blackfeedback {
  103. background: url('../img/blackking.png') 0% 50% no-repeat;
  104. }
  105. span.promotion {
  106. line-height: 28px;
  107. text-indent: 28px;
  108. margin-top: 1em;
  109. display: block;
  110. float: right;
  111. }
  112. .chessboard td.selected {
  113. background: lighten($red, 30%) !important;
  114. }