forked from 5apps/example-tictactoe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
146 lines (131 loc) · 3.27 KB
/
main.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
body {
text-align: center;
font-size: 16px;
font-family: Helvetica, sans-serif;
background: #1a1a1a url(bg.png) repeat;
}
table {
margin-left: auto;
margin-right: auto;
width: 551px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
font-family: 'Comic Sans MS', Helvetica, sans-serif;
}
td {
height: 175px;
width: 175px;
text-align: center;
font-size: 120px;
border: 2px solid rgba(200, 200, 200, 0.4);
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
-ms-border-radius: 100px;
-o-border-radius: 100px;
border-radius: 100px;
background-color: rgba(16, 16, 16, 0.5);
}
#players {
margin: 0 auto 10px auto;
padding: 0px 10px 10px 10px;
width: 511px;
text-align: left;
}
#players > div {
display: inline-block;
padding-right: 25px;
margin: 10px 10px 0 50px;
color: #666;
-webkit-transition-duration: 200ms;
-moz-transition-duration: 200ms;
-o-transition-duration: 200ms;
transition-duration: 200ms;
}
#players #O {
float: right;
}
.current-player {
color: #ccc !important;
-webkit-transform: scale(1.8);
-moz-transform: scale(1.8);
-ms-transform: scale(1.8);
-o-transform: scale(1.8);
transform: scale(1.8);
}
.X-marker, #X.current-player {
color: #3BB5DE !important;
}
.X-marker:before {
content: "X";
}
.O-marker, #O.current-player {
color: #DD1144 !important;
}
.O-marker:before {
content: "O";
}
footer {
margin-top: 15px;
}
.button {
position: relative;
overflow: visible;
display: inline-block;
padding: 0.5em 1em;
border: 1px solid #d4d4d4;
margin: 0 auto 0 auto;
text-decoration: none;
text-shadow: 1px 1px 0 #fff;
font-size:14px;
color: #333;
white-space: nowrap;
cursor: pointer;
outline: none;
background-color: #ececec;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
background-image: -moz-linear-gradient(#f4f4f4, #ececec);
background-image: -o-linear-gradient(#f4f4f4, #ececec);
background-image: linear-gradient(#f4f4f4, #ececec);
-webkit-background-clip: padding;
-moz-background-clip: padding;
-o-background-clip: padding-box;
-webkit-border-radius: 0.2em;
-moz-border-radius: 0.2em;
border-radius: 0.2em;
/* IE hacks */
zoom: 1;
*display: inline;
}
.button:hover,
.button:active,
.button.active {
border-color: #3094B5;
border-bottom-color: #2B84A1;
text-decoration: none;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
color: #fff;
background-color: #3BB5DE;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5BBCDC), to(#3094B5));
background-image: -moz-linear-gradient(#5BBCDC, #3094B5);
background-image: -o-linear-gradient(#5BBCDC, #3094B5);
background-image: linear-gradient(#5BBCDC, #3094B5);
}
.button:active,
.button.active {
border-color: #2B84A1;
border-bottom-color: #3AAACF;
background-color: #3096B5;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3096B5), to(#5BBCDC));
background-image: -moz-linear-gradient(#3094B5, #5BBCDC);
background-image: -o-linear-gradient(#3094B5, #5BBCDC);
background-image: linear-gradient(#3094B5, #5BBCDC);
}
/* overrides extra padding on button elements in Firefox */
.button::-moz-focus-inner {
padding: 0;
border: 0;
}