main.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import "base";
  2. @import "layout";
  3. @import "index";
  4. @import "game";
  5. .alpha { font-size: 1.125rem; }
  6. .center { text-align: center !important; }
  7. @media only screen and (min-width: 760px) and (max-width: 900px) {
  8. header, #board-moves-wrapper, #sounds-label {
  9. max-width: 760px;
  10. }
  11. #container-wrapper {
  12. max-width: 900px;
  13. padding: 1em 10px;
  14. }
  15. #moves {
  16. margin-left: 0;
  17. float: right;
  18. height: 516px;
  19. }
  20. #moves, #moves thead, #moves tbody tr {
  21. width: 200px;
  22. }
  23. #moves tbody tr td {
  24. width: 70px;
  25. margin: 0 5px;
  26. &:first-child {
  27. width: 30px;
  28. margin-right: 5px;
  29. }
  30. }
  31. }
  32. @media only screen and (max-width: 999px) {
  33. #captured-pieces {
  34. display: none;
  35. }
  36. }
  37. @media only screen and (min-width: 530px) and (max-width: 759px) {
  38. header, #board-moves-wrapper, #sounds-label {
  39. max-width: 530px;
  40. }
  41. }
  42. @media only screen and (max-width: 759px){
  43. html {
  44. font-size: 14px;
  45. }
  46. #create-game > form {
  47. fieldset {
  48. width: 100%;
  49. text-align: center;
  50. label {
  51. display: block;
  52. line-height: 45px;
  53. padding-left: 0;
  54. &::before {
  55. margin-left: -7em;
  56. margin-top: 0;
  57. right: auto;
  58. }
  59. }
  60. }
  61. }
  62. #game-type{
  63. display: none;
  64. }
  65. #container-wrapper {
  66. max-width: 759px;
  67. padding: 1em 5px;
  68. }
  69. span.feedback {
  70. float: right;
  71. clear: none;
  72. }
  73. #moves {
  74. margin-left: 0;
  75. margin-top: 0.5em;
  76. height: 258px;
  77. }
  78. }
  79. @media only screen and (max-width: 529px) {
  80. header, #board-moves-wrapper, #sounds-label {
  81. max-width: 470px;
  82. }
  83. #game-link {
  84. font-size: 1rem;
  85. }
  86. ul#clock {
  87. width: 118px;
  88. li {
  89. width: 55px;
  90. }
  91. }
  92. #container-wrapper {
  93. max-width: 529px;
  94. padding: 1em 5px;
  95. }
  96. .chessboard {
  97. border: 4px solid lighten($dark-purple, 10%);
  98. width: 456px;
  99. height: 456px;
  100. tr {
  101. width: 456px;
  102. height: 57px;
  103. td {
  104. width: 57px;
  105. height: 57px;
  106. line-height: 57px;
  107. a {
  108. width: 57px;
  109. height: 57px;
  110. font-size: 3.5rem;
  111. }
  112. }
  113. }
  114. }
  115. }