main.scss 2.1 KB

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