main.scss 2.2 KB

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