main.scss 2.3 KB

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