main.scss 2.3 KB

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