main.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. font-size: 1rem;
  55. &::before {
  56. margin-left: -6em;
  57. margin-top: 0;
  58. right: auto;
  59. }
  60. }
  61. }
  62. }
  63. #game-type{
  64. display: none;
  65. }
  66. #container-wrapper {
  67. max-width: 759px;
  68. padding: 1em 5px;
  69. }
  70. span.feedback {
  71. float: right;
  72. clear: none;
  73. }
  74. #moves {
  75. margin-left: 0;
  76. margin-top: 0.5em;
  77. height: 258px;
  78. }
  79. }
  80. @media only screen and (max-width: 529px) {
  81. header, #board-moves-wrapper, #sounds-label {
  82. max-width: 470px;
  83. }
  84. #game-link, footer p, footer a {
  85. font-size: .75rem;
  86. }
  87. ul#clock {
  88. width: 118px;
  89. li {
  90. width: 55px;
  91. }
  92. }
  93. #container-wrapper {
  94. max-width: 529px;
  95. padding: 1em 5px;
  96. }
  97. .chessboard {
  98. border: 4px solid lighten($black, 10%);
  99. width: 456px;
  100. height: 456px;
  101. tr {
  102. width: 456px;
  103. height: 57px;
  104. td {
  105. width: 57px;
  106. height: 57px;
  107. line-height: 57px;
  108. a {
  109. width: 57px;
  110. height: 57px;
  111. font-size: 3.5rem;
  112. }
  113. }
  114. }
  115. }
  116. }