daw.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* daw integration layer -- everything that pulls chess onto the main site's look.
  2. *
  3. * Loaded after style.css (see views/layout.pug) and kept separate from it on
  4. * purpose: it isolates the migration delta. What's here is "make chess look like
  5. * the rest of davidwindham.com"; what's in style.css is the game's own design.
  6. *
  7. * (There used to be a style.scss source too, but it had drifted years out of
  8. * sync with the shipped style.css -- different button, different palette -- with
  9. * no build step in the repo, so it was deleted. style.css is now edited directly.)
  10. *
  11. * Palette matches /rtc and /photo: slate #484c57 body, #dadada content card.
  12. * The shared header in /embed/chrome.js paints rgba(72,76,87,.7), so it only
  13. * blends into the page at this exact body colour -- on the old #fefefe it read
  14. * as a mismatched grey band.
  15. */
  16. body,
  17. html {
  18. background: #484c57;
  19. }
  20. /* Outer gutter matches the chrome's 1180px column; the card itself stays at the
  21. * 960px the game was actually designed for (board 456px + move table), so the
  22. * board doesn't sit against a wide empty margin.
  23. */
  24. #container_wrapper {
  25. max-width: 1180px;
  26. padding: 0 20px 4rem;
  27. }
  28. /* The card. min-height/float come from style.css's #container and are cleared
  29. * here: the card should size to the game, and floating it left kept the footer
  30. * from clearing it properly.
  31. */
  32. #container {
  33. background: #dadada;
  34. color: #232323;
  35. border-radius: 6px;
  36. max-width: 960px;
  37. padding: 3rem 2rem;
  38. margin: 2rem auto 0;
  39. min-height: 0;
  40. float: none;
  41. }
  42. /* Selection colour lands on the slate now, not on white. */
  43. ::-moz-selection {
  44. background: #25c2a0;
  45. color: #fefefe;
  46. }
  47. ::selection {
  48. background: #25c2a0;
  49. color: #fefefe;
  50. }