Advertisement
rdhammack

Tic-Tac-Toe

Jun 1st, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.43 KB | None | 0 0
  1. /* TIC-TAC-TOE STYLES */
  2. /* Created by Dustin Hammack - May 2017 */
  3.  
  4. body {
  5.     margin: 0;
  6.     padding: 0;
  7.     text-align: center;
  8. }
  9.  
  10. h1 {
  11.     margin-top: 5px;
  12.     margin-bottom: 0;
  13. }
  14.  
  15. hr {
  16.     width: 20%;
  17.     margin:  0 auto 30px;
  18.     box-shadow: 1px -4px 40px 3px grey;
  19. }
  20.  
  21. #reset {
  22. /*    width: 6%;*/
  23.     display: none;
  24. }
  25.  
  26. .active:hover {
  27.     position: absolute;
  28.     top: 3px;
  29. }
  30.  
  31. .side {
  32.     margin-top: 50px;
  33. }
  34.  
  35. .rotate {
  36.     transition: transform 5s;
  37.     transform: rotateY(1800deg);
  38. /*    width: 2%;*/
  39. }
  40.  
  41. #x, #o {
  42.     background: grey;
  43.     padding: 0;
  44.     box-shadow: 10px 15px 10px 0 grey,0 17px 50px 0 grey;
  45.     position: relative;
  46.     width: 300px;
  47.     height: 350px;
  48. }
  49.  
  50. #x {
  51.     margin-right: 50px;
  52.     background: url('../images/x_card.png') top left no-repeat;
  53. }
  54.  
  55. #o {
  56.     background: url('../images/o_card.png') top left no-repeat;
  57. }
  58.  
  59. .side:hover {
  60.     top: -5px;
  61.     left: 5px;
  62. }
  63.  
  64. /*#x:active, #o:active*/
  65. .side:active {
  66.     top: 3px;
  67. }
  68.  
  69. .cards {
  70.     background: white;
  71.     border: none;
  72. }
  73.  
  74. #container {
  75.     width: 75%;
  76.     max-width: 800px;
  77.     margin: auto;
  78.     padding: 10px;
  79.     background: white;
  80.     display: none;
  81. }
  82.  
  83. #card1, #card2, #card4, #card5 {
  84.     position: relative;
  85.     display: inline-block;
  86.     padding: 10px;
  87.     margin-top: -1px;
  88.     margin-right:  -4px;
  89.     border-right: dashed 2px black;
  90.     border-bottom: dashed 2px black;
  91.     width: 27%;
  92.     height: 200px;
  93.     font-size: 96px;
  94.     text-align: center;
  95.     line-height: 200px;
  96.     vertical-align: top;
  97. }
  98.  
  99. #card3, #card6 {
  100.     position: relative;
  101.     display: inline-block;
  102.     padding: 0;
  103.     margin-top: -1px;
  104.     margin-right:  -4px;
  105.     border-bottom: dashed 2px black;
  106.     width: 27%;
  107.     height: 200px;
  108.     font-size: 96px;
  109.     text-align: center;
  110.     line-height: 200px;
  111.     vertical-align: top;
  112. }
  113.  
  114. #card7, #card8 {
  115.     position: relative;
  116.     display: inline-block;
  117.     padding: 0;
  118.     margin-top: -1px;
  119.     margin-right:  -4px;
  120.     border-right: dashed 2px black;
  121.     width: 27%;
  122.     height: 200px;
  123.     font-size: 96px;
  124.     text-align: center;
  125.     line-height: 200px;
  126.     vertical-align: top;
  127. }
  128.  
  129. #card9 {
  130.     position: relative;
  131.     display: inline-block;
  132.     padding: 0;
  133.     margin-top: -1px;
  134.     margin-right:  -4px;
  135.     width: 27%;
  136.     height: 200px;
  137.     font-size: 96px;
  138.     text-align: center;
  139.     line-height: 200px;
  140.     vertical-align: top;
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement