-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
89 lines (75 loc) · 1.66 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*Extra small devices (phones, 600px down) */
@media only screen and (max-width: 600px) {
.board {
width: 405px !important;
height: 405px !important;
}
}
/*Extra small devices (phones, 600px down) */
@media only screen and (max-width: 600px) {
.square{
width: 135px !important;
height: 135px !important;
}
}
@media only screen and (max-width: 425px) {
.board {
width: 300px !important;
height: 400px !important;
}
}
/*Extra small devices (phones, 425px up) */
@media only screen and (max-width: 425px) {
.square{
width: 100px !important;
height: 135px !important;
}
}
/* Small devices (portrait tablets and large phones, 768px and up) */
@media only screen and (min-width: 768px) {
.board{
width: 600px !important;
height: 600px !important;
}
}
/* Small devices (portrait tablets and large phones, 768px and up) */
@media only screen and (min-width: 768px) {
.square {
width: 200px !important;
height: 200px !important;
}
}
body {
display: flex;
justify-content: center;
align-items: center
}
.board {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: flex-start;
width: 600px;
height: 600px;
border: 1px solid black
}
.square {
width: 200px;
height: 200px;
border: 1px solid black;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
font-size: 6em
}
.square:nth-child(odd){
background: #FFEB3B;
}
.square:nth-child(even){
background: #eae1ea
}
.square:hover {
cursor: pointer;
background: gray
}