index.css 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. body {
  2. background-color: #555;
  3. }
  4. .square {
  5. float: left;
  6. width: 40px;
  7. height: 40px;
  8. line-height: 40px;
  9. font-size: 15px;
  10. font-weight: 1000;
  11. padding: 0;
  12. background-size: cover;
  13. }
  14. .game {
  15. display: flex;
  16. position: fixed;
  17. top: 50%;
  18. left: 50%;
  19. min-width: 320px;
  20. transform: translate(-50%, -50%);
  21. }
  22. .covered {
  23. border: 2px dotted #888;
  24. background-color: #666;
  25. }
  26. @keyframes coveredAnim {
  27. from {background-color: #666; border: 2px dotted #888;}
  28. to {background-color: transparent; border: 0px none;}
  29. }
  30. .covered-win {
  31. border: 2px dotted #888;
  32. background-color: transparent;
  33. animation-name: coveredAnim;
  34. animation-duration: 10s;
  35. }
  36. .uncovered {
  37. border: 0px none;
  38. color: #fff;
  39. background-color: #888;
  40. }
  41. @keyframes uncoveredAnim {
  42. from {background-color: #888; color: #fff;}
  43. to {background-color: transparent; color: transparent;}
  44. }
  45. .uncovered-win {
  46. border: 0px none;
  47. color: transparent;
  48. background-color: transparent;
  49. animation-name: uncoveredAnim;
  50. animation-duration: 10s;
  51. }
  52. .nun {
  53. background-image: url('https://img2.gelbooru.com//samples/69/d4/sample_69d43b8deae19ac8e6377d1bd0c7ad16.jpg');
  54. }
  55. .cross {
  56. background-size: 75%;
  57. background-position: center center;
  58. background-repeat: no-repeat;
  59. background-image: url('/weebsweeper/cross.svg');
  60. }
  61. @keyframes jesusAnim {
  62. from {background-size: 0% 0%;}
  63. to {background-size: 100% 100%;}
  64. }
  65. .jesus {
  66. min-width: 400px;
  67. min-height: 400px;
  68. background-repeat: no-repeat;
  69. background-size: 100% 100%;
  70. background-position: center center;
  71. background-image: url('/weebsweeper/jesus.jpg');
  72. animation-name: jesusAnim;
  73. animation-duration: 10s;
  74. animation-timing-function: ease-in;
  75. }