Checkerboard.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .checkerboard{
  2. position: relative;
  3. }
  4. @media screen and (max-width: 414px) {
  5. html {
  6. font-size: 10px;
  7. }
  8. }
  9. .black{
  10. background-image: url('/src/assets/point.png');
  11. background-position: 0.08rem -1.5rem;
  12. background-size: 200%;
  13. background-repeat: no-repeat;
  14. }
  15. .white{
  16. background-image: url('/src/assets/point.png');
  17. background-position: -1.9999rem -1.53rem;
  18. background-size: 200%;
  19. background-repeat: no-repeat;
  20. }
  21. .board-grid{
  22. display: grid;
  23. height: 2rem;
  24. grid-template-columns: repeat(14, 1fr);
  25. grid-template-rows: 2rem;
  26. }
  27. .bj-grid{
  28. display: grid;
  29. height: 2rem;
  30. grid-template-columns: repeat(15, 1fr);
  31. grid-template-rows: 1rem;
  32. }
  33. .board-item{
  34. border: 0.01rem solid rgba(0, 0, 0, 0);
  35. width: 2rem;
  36. height: 2rem;
  37. /* border: 1px solid red; */
  38. }
  39. .bj-item{
  40. border: 0.01rem solid black;
  41. border-bottom: none;
  42. border-right: none;
  43. width: 2rem;
  44. height: 2rem;
  45. }
  46. .bj-bottom{
  47. border-bottom: 0.01rem solid black;
  48. }
  49. .bj-right{
  50. border-right: 0.01rem solid black;
  51. }
  52. .bj{
  53. position: absolute;
  54. z-index: -1;
  55. }
  56. .board{
  57. position: absolute;
  58. left: 1rem;
  59. top: 1rem;
  60. }
  61. .xline{
  62. position: relative;
  63. top: -1.6rem;
  64. left: -0.3rem;
  65. }
  66. .yline{
  67. position: relative;
  68. top: -0.9rem;
  69. left: -2.3rem;
  70. width: 2rem;
  71. display: inline-block;
  72. text-align: right;
  73. }