-
Notifications
You must be signed in to change notification settings - Fork 1
/
thebutton.css
112 lines (103 loc) · 2.32 KB
/
thebutton.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
body {
font-size: 14px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 200;
margin: 3rem 2rem;
line-height: 1.5;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
width: 600px;
text-align: right;
margin: 1rem auto;
}
.thebutton-container {
display: flex;
width: 600px;
padding: 2rem;
margin: 0 auto;
background: #f9f9f9;
border: solid 1px #ccc;
box-shadow: 0 2px 5px rgba(0,0,0,.2);
align-items: center;
}
.thebutton-container > div {
flex: 1;
text-align: center;
}
.thebutton-countdown {
padding: 1rem 0;
background: #eee;
font-size: 24px;
font-family: monospace;
border-radius: 4px;
box-shadow: inset 0 2px 1px rgba(0,0,0,.1);
}
.thebutton-countdown span {
background: white;
border-radius: 4px;
padding: .4rem;
padding-bottom: .2rem;
box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
}
.countdown-100ms, .countdown-10ms { color: #999;}
span[class^='remaining-'] {
color: white;
padding: 2px 4px;
border-radius: 4px;
}
span[class^='remaining-5'] { background: purple; }
span[class^='remaining-4'] { background: brown; }
span[class^='remaining-3'] { background: green; }
span[class^='remaining-2'] { background: #ffd100; }
span[class^='remaining-1'] { background: #69f; }
span[class^='remaining-0'] { background: hotpink; }
button {
cursor: pointer;
font-size: 14px;
padding: 1.2rem;
text-align: center;
width: 150px;
border-radius: 4px;
border: solid 1px #69c;
background: #3E9EFF -webkit-linear-gradient(top, #3E9EFF, #2276CA);
color: #999;
-webkit-font-smoothing: antialiased;
box-shadow: 0 2px 2px rgba(0,0,0,.5), inset 0 -3px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
-webkit-transition: ease .25s;
}
button:hover {
border-color: #369;
background: #3E9EFF;
box-shadow: 0 1px 5px rgba(0,0,0,.5), inset 0 -3px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
button:focus {
margin-top: 2px;
outline: none;
box-shadow: inset 0 1px rgba(0,0,0,.2);
}
button:disabled {
background: #ccc;
border-color: #bbb;
cursor: default;
box-shadow: none;
}
.thebutton-piechart-container {
margin: 0 auto;
width: 120px;
height: 120px;
border-radius: 50%;
background: #eee;
box-shadow: inset 0 2px 1px rgba(0,0,0,.1);
}
.thebutton-piechart {
width: 120px;
height: 120px;
}
.what-is-this {
width: 600px;
margin: 5rem auto 0 auto;
text-align: center;
}