style.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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. .chat {
  83. text-decoration: none;
  84. color: #248a99;
  85. margin-right: 1em;
  86. line-height: 50px;
  87. float: right !important;
  88. cursor: pointer;
  89. font-weight: 600; }
  90. .chat:hover {
  91. color: #299cad; }
  92. .chat:hover .new-message {
  93. color: #d12521; }
  94. .chat img {
  95. vertical-align: middle; }
  96. .chat .new-message {
  97. color: #d12521; }
  98. .fork {
  99. float: left;
  100. width: 149px;
  101. height: 149px;
  102. background: url("../images/forkme.png") no-repeat;
  103. position: absolute; }
  104. header {
  105. margin: 0 auto;
  106. max-width: 800px;
  107. width: 100%;
  108. height: 50px; }
  109. #container_wrapper {
  110. max-width: 960px;
  111. width: 100%;
  112. height: auto;
  113. padding: 1em 2em;
  114. margin: 0 auto;
  115. clear: both; }
  116. #container {
  117. width: 100%;
  118. min-height: 600px;
  119. margin: 0px 0px 20px 0px;
  120. float: left; }
  121. #form {
  122. width: 100%;
  123. height: 150px;
  124. margin: 0 auto; }
  125. input, button {
  126. font-family: 'Open Sans'; }
  127. input.game_link {
  128. width: 80%;
  129. height: 50px;
  130. line-height: 50px;
  131. font-size: 1.125rem;
  132. color: #fff;
  133. border: 0;
  134. border-bottom: 2px solid #2b222c;
  135. border-left: 4px solid #2eafc2;
  136. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  137. background: #423443;
  138. padding: 0 1em;
  139. float: left;
  140. border-radius: 2px;
  141. box-shadow: inset 0 -2px #2b222c; }
  142. .game_link:hover {
  143. background: #4a3b4c;
  144. border-bottom: 2px solid #3a2d3a;
  145. box-shadow: inset 0 -2px #3a2d3a;
  146. -moz-transition: all 0.2s ease-in-out;
  147. -webkit-transition: all 0.2s ease-in-out;
  148. -o-transition: all 0.2s ease-in-out;
  149. -ms-transition: all 0.2s ease-in-out;
  150. transition: all 0.2s ease-in-out; }
  151. .game_link:focus {
  152. color: #eee; }
  153. .button {
  154. width: 15%;
  155. height: 50px;
  156. display: block;
  157. font-size: 1.125rem;
  158. border-radius: 2px;
  159. border: 0;
  160. border-bottom: 2px solid #299cad;
  161. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  162. background: #2eafc2;
  163. color: white;
  164. cursor: pointer;
  165. float: right;
  166. box-shadow: inset 0 -2px #299cad;
  167. position: relative; }
  168. .button:hover {
  169. background: #39bdd0;
  170. border-bottom: 2px solid #2ca8ba;
  171. box-shadow: inset 0 -2px #2ca8ba;
  172. -moz-transition: all 0.2s ease-in-out;
  173. -webkit-transition: all 0.2s ease-in-out;
  174. -o-transition: all 0.2s ease-in-out;
  175. -ms-transition: all 0.2s ease-in-out;
  176. transition: all 0.2s ease-in-out; }
  177. .button:active {
  178. top: 1px; }
  179. a.button {
  180. width: 120px;
  181. line-height: 46px;
  182. text-align: center;
  183. text-decoration: none; }
  184. a.button:hover {
  185. color: white; }
  186. .resign {
  187. background: #d12521;
  188. border-color: #bb211e;
  189. box-shadow: inset 0 -2px #bb211e;
  190. margin-right: 10px; }
  191. .resign:hover {
  192. background: #de322e;
  193. border-bottom: 2px solid #c82320;
  194. box-shadow: inset 0 -2px #c82320;
  195. -moz-transition: all 0.2s ease-in-out;
  196. -webkit-transition: all 0.2s ease-in-out;
  197. -o-transition: all 0.2s ease-in-out;
  198. -ms-transition: all 0.2s ease-in-out;
  199. transition: all 0.2s ease-in-out; }
  200. p#waiting {
  201. font-family: 'Cherry Swash';
  202. font-size: 1.275rem;
  203. color: #bb211e;
  204. width: 100%;
  205. text-align: center;
  206. margin: 15px 0px 0px 0px;
  207. display: none;
  208. float: left; }
  209. footer {
  210. font-size: 1rem;
  211. width: 100%;
  212. line-height: 2em;
  213. text-align: center;
  214. background: #dad7d2;
  215. border-bottom: 4px solid #c3beb6;
  216. box-shadow: inset 0 -4px #c3beb6; }
  217. footer a {
  218. color: #6d665a; }
  219. footer a:hover {
  220. color: #7b7365; }
  221. #footer {
  222. margin: 0 auto;
  223. max-width: 960px;
  224. padding: 3em 2em 1em 2em; }
  225. #sounds_label {
  226. width: 800px;
  227. height: 30px;
  228. line-height: 30px;
  229. display: block;
  230. margin: 0px 0px 5px 0px;
  231. float: left; }
  232. /* Chat */
  233. #chat-wrapper {
  234. display: none;
  235. position: absolute;
  236. width: 270px;
  237. right: 10px;
  238. top: 99px;
  239. border: 4px solid #fff;
  240. background: #e6e3e0; }
  241. #chat-wrapper h4 {
  242. font-family: 'Cherry Swash';
  243. font-size: 1.225rem;
  244. height: 3em;
  245. line-height: 3em;
  246. margin: 5px 5%;
  247. text-align: center;
  248. color: #423443; }
  249. #chat-wrapper a.close {
  250. position: absolute;
  251. top: 0;
  252. right: 0;
  253. background: #423443;
  254. color: #fff;
  255. font-size: 1.125rem;
  256. padding: 0 7px;
  257. text-decoration: none;
  258. font-weight: 600;
  259. margin: 1em 5%;
  260. cursor: pointer; }
  261. #chat-wrapper a.close:hover {
  262. text-decoration: none;
  263. background: #503f51; }
  264. #chat-wrapper > span {
  265. font-size: .9rem;
  266. margin: 5px 5%;
  267. display: block; }
  268. ul#chat {
  269. position: relative;
  270. top: 0;
  271. max-height: 300px;
  272. width: 100%;
  273. overflow-y: scroll;
  274. list-style-type: none; }
  275. ul#chat li {
  276. font-size: .9rem;
  277. padding: 10px;
  278. margin: 5px auto;
  279. width: 90%;
  280. border-radius: 5px;
  281. position: relative; }
  282. ul#chat li:before {
  283. position: absolute;
  284. content: '';
  285. top: 10px; }
  286. ul#chat li.black {
  287. background: #444;
  288. color: #fff; }
  289. ul#chat li.white {
  290. background: #fff;
  291. color: #444; }
  292. ul#chat li.left:before {
  293. left: 0;
  294. margin-left: -7px;
  295. border-bottom: 7px solid transparent;
  296. border-top: 7px solid transparent; }
  297. ul#chat li.black.left:before {
  298. border-right: 7px solid #444; }
  299. ul#chat li.white.left:before {
  300. border-right: 7px solid #fff; }
  301. ul#chat li.right:before {
  302. right: 0;
  303. margin-right: -7px;
  304. border-bottom: 7px solid transparent;
  305. border-top: 7px solid transparent; }
  306. ul#chat li.black.right:before {
  307. border-left: 7px solid #444; }
  308. ul#chat li.white.right:before {
  309. border-left: 7px solid #fff; }
  310. #sendMessage input {
  311. width: 100%;
  312. padding: 15px 10px;
  313. border: none;
  314. outline: none;
  315. font-size: .9rem;
  316. border: 4px solid #e6e3e0; }
  317. #sendMessage input.black {
  318. background: #444;
  319. color: #fff; }
  320. #sendMessage input.white {
  321. background: #fff;
  322. color: #444; }
  323. /* Chessboard */
  324. #board_moves_wrapper {
  325. width: 100%;
  326. max-width: 800px;
  327. min-height: 600px;
  328. margin: 0 auto; }
  329. table#moves {
  330. overflow-x: hidden;
  331. overflow-y: auto;
  332. width: 270px;
  333. height: 518px;
  334. background: #e6e3e0;
  335. box-shadow: inset 0 -4px #dad7d2;
  336. margin-left: 10px;
  337. border-radius: 2px;
  338. border-bottom: 4px solid #dad7d2;
  339. display: block;
  340. float: left; }
  341. #moves thead {
  342. font-family: 'Cherry Swash';
  343. width: 270px;
  344. height: 3em;
  345. line-height: 3em;
  346. font-size: 1.225rem;
  347. color: #423443;
  348. float: left;
  349. text-align: center; }
  350. #moves thead th, #moves thead tr {
  351. width: 100%;
  352. text-align: center;
  353. float: left; }
  354. #moves tbody tr {
  355. width: 270px;
  356. float: left; }
  357. #moves tbody tr td {
  358. width: 105px;
  359. text-align: left;
  360. line-height: 20px;
  361. margin: 0 15px;
  362. float: left; }
  363. #board_wrapper {
  364. float: left; }
  365. .chess_board {
  366. border: 8px solid #5e4a60;
  367. border-radius: 2px;
  368. width: 500px;
  369. height: 500px;
  370. float: left; }
  371. .chess_board tr {
  372. width: 500px;
  373. height: 62.5px;
  374. float: left;
  375. display: block; }
  376. .chess_board tr td {
  377. width: 62.5px;
  378. height: 62.5px;
  379. line-height: 62.5px;
  380. text-align: center;
  381. background: #fefefe;
  382. display: block;
  383. float: left; }
  384. .chess_board tr td a {
  385. width: 62.5px;
  386. height: 62.5px;
  387. font-size: 3.5rem;
  388. color: #424242;
  389. text-decoration: none;
  390. display: block; }
  391. .chess_board tr:nth-child(odd) td:nth-child(even),
  392. .chess_board tr:nth-child(even) td:nth-child(odd) {
  393. background: #dad7d2; }
  394. span.feedback {
  395. color: #424242;
  396. line-height: 28px;
  397. text-indent: 28px;
  398. margin-top: 1em;
  399. display: block;
  400. clear: left;
  401. float: left; }
  402. .feedback-status {
  403. font-weight: bold; }
  404. span.whitefeedback {
  405. background: url("../images/whiteking.png") 0% 50% no-repeat; }
  406. span.blackfeedback {
  407. background: url("../images/blackking.png") 0% 50% no-repeat; }
  408. span.promotion {
  409. line-height: 28px;
  410. text-indent: 28px;
  411. margin-top: 1em;
  412. display: block;
  413. float: right; }
  414. .chess_board td.selected {
  415. background: #ef9e9c !important; }
  416. /* Media queries */
  417. @media only screen and (min-width: 760px) and (max-width: 900px) {
  418. header, #board_moves_wrapper {
  419. max-width: 760px; }
  420. #sounds_label {
  421. max-width: 530px; }
  422. #container_wrapper {
  423. max-width: 900px;
  424. padding: 1em 10px; }
  425. table#moves {
  426. margin-left: 0;
  427. float: right;
  428. height: 516px; }
  429. table#moves, #moves thead, #moves tbody tr {
  430. width: 200px; }
  431. #moves tbody tr td {
  432. width: 90px;
  433. margin: 0 5px; } }
  434. @media only screen and (min-width: 530px) and (max-width: 759px) {
  435. header, #board_moves_wrapper, #sounds_label {
  436. max-width: 530px; } }
  437. @media only screen and (max-width: 759px) {
  438. html {
  439. font-size: 14px; }
  440. #container_wrapper {
  441. max-width: 759px;
  442. padding: 1em 5px; }
  443. span.feedback {
  444. float: right;
  445. clear: none; }
  446. table#moves {
  447. margin-left: 0;
  448. margin-top: 0.5em;
  449. height: 258px; } }
  450. @media only screen and (max-width: 529px) {
  451. header, #board_moves_wrapper, #sounds_label {
  452. max-width: 470px; }
  453. input.game_link {
  454. font-size: 1rem; }
  455. #container_wrapper {
  456. max-width: 529px;
  457. padding: 1em 5px; }
  458. .chess_board {
  459. border: 4px solid #5e4a60;
  460. width: 456px;
  461. height: 456px; }
  462. .chess_board tr {
  463. width: 456px;
  464. height: 57px; }
  465. .chess_board tr td {
  466. width: 57px;
  467. height: 57px;
  468. line-height: 57px; }
  469. .chess_board tr td a {
  470. width: 57px;
  471. height: 57px;
  472. font-size: 3.5rem; } }