style.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. -moz-box-sizing: border-box;
  5. -webkit-box-sizing: border-box;
  6. box-sizing: border-box; }
  7. html {
  8. font-size: 100%;
  9. overflow-y: auto;
  10. -webkit-overflow-scrolling: touch;
  11. -webkit-tap-highlight-color: transparent;
  12. -webkit-text-size-adjust: 100%;
  13. -ms-text-size-adjust: 100%; }
  14. ::-moz-selection {
  15. background: #261e26;
  16. color: #fefefe;
  17. text-shadow: none; }
  18. ::selection {
  19. background: #261e26;
  20. color: #fefefe;
  21. text-shadow: none; }
  22. .clearfix:before,
  23. .clearfix:after {
  24. content: " ";
  25. display: table; }
  26. .clearfix:after {
  27. clear: both; }
  28. .clearfix {
  29. zoom: 1; }
  30. footer, header, section {
  31. display: block; }
  32. body, html {
  33. color: #424242;
  34. font-family: 'Open Sans', sans-serif;
  35. background: #fefefe;
  36. font-size: 16px;
  37. line-height: 1.5;
  38. font-weight: 400; }
  39. a {
  40. font-size: 1rem;
  41. color: #299cad;
  42. text-decoration: underline; }
  43. a:hover {
  44. color: #2eafc2;
  45. text-decoration: none;
  46. -moz-transition: all 0.2s ease-in-out;
  47. -webkit-transition: all 0.2s ease-in-out;
  48. -o-transition: all 0.2s ease-in-out;
  49. -ms-transition: all 0.2s ease-in-out;
  50. transition: all 0.2s ease-in-out; }
  51. p {
  52. text-align: left;
  53. margin-bottom: 1em;
  54. font-size: 1rem; }
  55. h1.knight {
  56. height: 122px;
  57. width: 122px;
  58. background: url("../images/knight.png") no-repeat;
  59. margin: 2em auto 0.5em auto; }
  60. h2 {
  61. font-family: 'Cherry Swash';
  62. font-weight: 400;
  63. font-size: 2rem;
  64. text-align: center;
  65. color: #423443;
  66. margin-bottom: 0.5em; }
  67. h3 {
  68. font-weight: 600;
  69. font-size: 1.5rem;
  70. margin: 1em 0 0.5em 0;
  71. color: #503f51; }
  72. .alpha {
  73. font-size: 1.125rem; }
  74. .center {
  75. text-align: center !important; }
  76. .margin-fifty {
  77. margin: 50px 0; }
  78. .last-origin {
  79. background: #8cd8e4 !important; }
  80. .last-target {
  81. background: #77d1df !important; }
  82. .about-in-play {
  83. margin-right: 1em;
  84. line-height: 50px;
  85. float: right !important; }
  86. .fork {
  87. float: left;
  88. width: 149px;
  89. height: 149px;
  90. background: url("../images/forkme.png") no-repeat;
  91. position: absolute; }
  92. header {
  93. margin: 0 auto;
  94. max-width: 800px;
  95. width: 100%;
  96. height: 50px; }
  97. #container_wrapper {
  98. max-width: 960px;
  99. width: 100%;
  100. height: auto;
  101. padding: 1em 2em;
  102. margin: 0 auto;
  103. clear: both; }
  104. #container {
  105. width: 100%;
  106. min-height: 600px;
  107. margin: 0px 0px 20px 0px;
  108. float: left; }
  109. #form {
  110. width: 100%;
  111. height: 150px;
  112. margin: 0 auto; }
  113. input, button {
  114. font-family: 'Open Sans'; }
  115. input.game_link {
  116. width: 80%;
  117. height: 50px;
  118. line-height: 50px;
  119. font-size: 1.125rem;
  120. color: #fff;
  121. border: 0;
  122. border-bottom: 2px solid #2b222c;
  123. border-left: 4px solid #2eafc2;
  124. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  125. background: #423443;
  126. padding: 0 1em;
  127. float: left;
  128. border-radius: 2px;
  129. box-shadow: inset 0 -2px #2b222c; }
  130. .game_link:hover {
  131. background: #4a3b4c;
  132. border-bottom: 2px solid #3a2d3a;
  133. box-shadow: inset 0 -2px #3a2d3a;
  134. -moz-transition: all 0.2s ease-in-out;
  135. -webkit-transition: all 0.2s ease-in-out;
  136. -o-transition: all 0.2s ease-in-out;
  137. -ms-transition: all 0.2s ease-in-out;
  138. transition: all 0.2s ease-in-out; }
  139. .game_link:focus {
  140. color: #eee; }
  141. .button {
  142. width: 15%;
  143. height: 50px;
  144. display: block;
  145. font-size: 1.125rem;
  146. border-radius: 2px;
  147. border: 0;
  148. border-bottom: 2px solid #299cad;
  149. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  150. background: #2eafc2;
  151. color: white;
  152. cursor: pointer;
  153. float: right;
  154. box-shadow: inset 0 -2px #299cad;
  155. position: relative; }
  156. .button:hover {
  157. background: #39bdd0;
  158. border-bottom: 2px solid #2ca8ba;
  159. box-shadow: inset 0 -2px #2ca8ba;
  160. -moz-transition: all 0.2s ease-in-out;
  161. -webkit-transition: all 0.2s ease-in-out;
  162. -o-transition: all 0.2s ease-in-out;
  163. -ms-transition: all 0.2s ease-in-out;
  164. transition: all 0.2s ease-in-out; }
  165. .button:active {
  166. top: 1px; }
  167. a.button {
  168. width: 120px;
  169. line-height: 46px;
  170. text-align: center;
  171. text-decoration: none; }
  172. a.button:hover {
  173. color: white; }
  174. .resign {
  175. background: #d12521;
  176. border-color: #bb211e;
  177. box-shadow: inset 0 -2px #bb211e;
  178. margin-right: 10px; }
  179. .resign:hover {
  180. background: #de322e;
  181. border-bottom: 2px solid #c82320;
  182. box-shadow: inset 0 -2px #c82320;
  183. -moz-transition: all 0.2s ease-in-out;
  184. -webkit-transition: all 0.2s ease-in-out;
  185. -o-transition: all 0.2s ease-in-out;
  186. -ms-transition: all 0.2s ease-in-out;
  187. transition: all 0.2s ease-in-out; }
  188. p#waiting {
  189. font-family: 'Cherry Swash';
  190. font-size: 1.275rem;
  191. color: #bb211e;
  192. width: 100%;
  193. text-align: center;
  194. margin: 15px 0px 0px 0px;
  195. display: none;
  196. float: left; }
  197. footer {
  198. font-size: 1rem;
  199. width: 100%;
  200. line-height: 2em;
  201. text-align: center;
  202. background: #dad7d2;
  203. border-bottom: 4px solid #c3beb6;
  204. box-shadow: inset 0 -4px #c3beb6; }
  205. footer a {
  206. color: #6d665a; }
  207. footer a:hover {
  208. color: #7b7365; }
  209. #footer {
  210. margin: 0 auto;
  211. max-width: 960px;
  212. padding: 3em 2em 1em 2em; }
  213. #sounds_label {
  214. width: 800px;
  215. height: 30px;
  216. line-height: 30px;
  217. display: block;
  218. margin: 0px 0px 5px 0px;
  219. float: left; }
  220. /* Chessboard */
  221. #board_moves_wrapper {
  222. width: 100%;
  223. max-width: 800px;
  224. min-height: 600px;
  225. margin: 0 auto; }
  226. table#moves {
  227. overflow-x: hidden;
  228. overflow-y: auto;
  229. width: 270px;
  230. height: 518px;
  231. background: #e6e3e0;
  232. box-shadow: inset 0 -4px #dad7d2;
  233. margin-left: 10px;
  234. border-radius: 2px;
  235. border-bottom: 4px solid #dad7d2;
  236. display: block;
  237. float: left; }
  238. #moves thead {
  239. font-family: 'Cherry Swash';
  240. width: 270px;
  241. height: 3em;
  242. line-height: 3em;
  243. font-size: 1.225rem;
  244. color: #423443;
  245. float: left;
  246. text-align: center; }
  247. #moves thead th, #moves thead tr {
  248. width: 100%;
  249. text-align: center;
  250. float: left; }
  251. #moves tbody tr {
  252. width: 270px;
  253. float: left; }
  254. #moves tbody tr td {
  255. width: 105px;
  256. text-align: left;
  257. line-height: 20px;
  258. margin: 0 15px;
  259. float: left; }
  260. #board_wrapper {
  261. float: left; }
  262. .chess_board {
  263. border: 8px solid #5e4a60;
  264. border-radius: 2px;
  265. width: 500px;
  266. height: 500px;
  267. float: left; }
  268. .chess_board tr {
  269. width: 500px;
  270. height: 62.5px;
  271. float: left;
  272. display: block; }
  273. .chess_board tr td {
  274. width: 62.5px;
  275. height: 62.5px;
  276. line-height: 62.5px;
  277. text-align: center;
  278. background: #fefefe;
  279. display: block;
  280. float: left; }
  281. .chess_board tr td a {
  282. width: 62.5px;
  283. height: 62.5px;
  284. font-size: 3.5rem;
  285. color: #424242;
  286. text-decoration: none;
  287. display: block; }
  288. .chess_board tr:nth-child(odd) td:nth-child(even),
  289. .chess_board tr:nth-child(even) td:nth-child(odd) {
  290. background: #dad7d2; }
  291. span.feedback {
  292. color: #424242;
  293. line-height: 28px;
  294. text-indent: 28px;
  295. margin-top: 1em;
  296. display: block;
  297. clear: left;
  298. float: left; }
  299. .feedback-status {
  300. font-weight: bold; }
  301. span.whitefeedback {
  302. background: url("../images/whiteking.png") 0% 50% no-repeat; }
  303. span.blackfeedback {
  304. background: url("../images/blackking.png") 0% 50% no-repeat; }
  305. span.promotion {
  306. line-height: 28px;
  307. text-indent: 28px;
  308. margin-top: 1em;
  309. display: block;
  310. float: right; }
  311. .chess_board td.selected {
  312. background: #ef9e9c !important; }
  313. /* Media queries */
  314. @media only screen and (min-width: 760px) and (max-width: 900px) {
  315. header, #board_moves_wrapper {
  316. max-width: 760px; }
  317. #sounds_label {
  318. max-width: 530px; }
  319. #container_wrapper {
  320. max-width: 900px;
  321. padding: 1em 10px; }
  322. table#moves {
  323. margin-left: 0;
  324. float: right;
  325. height: 516px; }
  326. table#moves, #moves thead, #moves tbody tr {
  327. width: 200px; }
  328. #moves tbody tr td {
  329. width: 90px;
  330. margin: 0 5px; } }
  331. @media only screen and (min-width: 530px) and (max-width: 759px) {
  332. header, #board_moves_wrapper, #sounds_label {
  333. max-width: 530px; } }
  334. @media only screen and (max-width: 759px) {
  335. html {
  336. font-size: 14px; }
  337. #container_wrapper {
  338. max-width: 759px;
  339. padding: 1em 5px; }
  340. span.feedback {
  341. float: right;
  342. clear: none; }
  343. table#moves {
  344. margin-left: 0;
  345. margin-top: 0.5em;
  346. height: 258px; } }
  347. @media only screen and (max-width: 529px) {
  348. header, #board_moves_wrapper, #sounds_label {
  349. max-width: 470px; }
  350. input.game_link {
  351. font-size: 1rem; }
  352. #container_wrapper {
  353. max-width: 529px;
  354. padding: 1em 5px; }
  355. .chess_board {
  356. border: 4px solid #5e4a60;
  357. width: 456px;
  358. height: 456px; }
  359. .chess_board tr {
  360. width: 456px;
  361. height: 57px; }
  362. .chess_board tr td {
  363. width: 57px;
  364. height: 57px;
  365. line-height: 57px; }
  366. .chess_board tr td a {
  367. width: 57px;
  368. height: 57px;
  369. font-size: 3.5rem; } }