-
Notifications
You must be signed in to change notification settings - Fork 4
/
site.css
124 lines (104 loc) · 1.78 KB
/
site.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
body,
html {
padding: 0;
margin: 0;
}
button {
border: 0;
background-color: orangered;
color: white;
font-size: 1em;
padding: 0.5em 1em;
text-transform: uppercase;
}
button[disabled] {
background-color: lightgray;
color: grey;
cursor: not-allowed;
}
button:active {
background-color: darkred;
}
input {
border: 0;
border-bottom: 2px solid #ccc;
box-sizing: border-box;
font-size: 1em;
margin-bottom: 1em;
outline: none;
padding: 0.5em;
}
input:focus {
border-bottom: 2px solid orangered;
}
main {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
}
#board-holder {
flex: 0 0 525px;
}
#board-squares {
display: grid;
grid-template-columns: repeat(7, 75px);
grid-template-rows: repeat(6, 75px);
}
#click-targets {
display: grid;
grid-template-columns: repeat(7, 1fr);
}
#form-holder {
display: flex;
flex: 0 0 150px;
flex-direction: column;
padding: 1em;
}
#overlay {
background-image: url(./images/connect-four.png);
background-size: cover;
height: 450px;
position: absolute;
top: 75px;
width: 525px;
}
.click-target {
background-color: transparent;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 65px;
height: 65px;
margin: 5px;
width: 65px;
transition: background-color ease-in-out 0.25s;
}
.is-invisible {
visibility: hidden;
}
.token {
box-sizing: border-box;
border-radius: 65px;
height: 65px;
margin: 5px;
width: 65px;
}
.token.red {
background-color: red;
}
.token.black {
background-color: black;
}
.red .click-target:hover {
background-color: red;
}
.black .click-target:hover {
background-color: black;
}
.full.click-target {
border: 1px solid white;
}
.full.click-target:hover {
background-color: white;
cursor: no-drop;
}