Skip to content

Commit 3c0acdd

Browse files
committed
edit css
1 parent 8c8ce5e commit 3c0acdd

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

public/css/style.css

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
2-
background: #e0e5ec;
2+
background : #e0e5ec;
3+
font-family: "Comic Sans MS", cursive, sans-serif;
34
}
45

56
td {
@@ -8,9 +9,25 @@ td {
89
width : 100px;
910
text-align : center;
1011
vertical-align: middle;
11-
font-family : "Comic Sans MS", cursive, sans-serif;
1212
font-size : 70px;
1313
cursor : pointer;
14+
box-shadow : 0 2px 10px rgba(0, 0, 0, .3);
15+
}
16+
17+
table tr:first-child td {
18+
border-top: 5px solid #333;
19+
}
20+
21+
table tr:last-child td {
22+
border-bottom: 5px solid #333;
23+
}
24+
25+
table tr td:first-child {
26+
border-left: 5px solid #333;
27+
}
28+
29+
table tr td:last-child {
30+
border-right: 5px solid #333;
1431
}
1532

1633
table {
@@ -47,7 +64,6 @@ button {
4764
color : #fff;
4865
border-radius: 5px;
4966
padding : 10px 25px;
50-
font-family : 'Lato', sans-serif;
5167
font-weight : 500;
5268
background : transparent;
5369
cursor : pointer;
@@ -81,7 +97,6 @@ button {
8197
@media (min-width: 1080px) {
8298
.replay {
8399
left : 45%;
84-
font-family : "Comic Sans MS", cursive, sans-serif;
85100
position : relative;
86101
display : inline-block;
87102
padding : 1.2em 2em;

public/js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function minimax(newBoard, player) {
178178
return moves[bestMove];
179179
}
180180

181+
// Replay Tic Tac Toe button
181182
const docStyle = document.documentElement.style
182183
const aElem = document.querySelector('a')
183184
const boundingClientRect = aElem.getBoundingClientRect()

0 commit comments

Comments
 (0)