-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmain.css
195 lines (162 loc) · 3.17 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
html {
scroll-behavior: smooth; /* Smooth scrolling down to "play" */
}
body {
background-color: black;
color: white;
font-family: Arial, Helvetica, sans-serif;
}
a {
color: #00c3ff;
text-decoration: none;
}
.header {
grid-area: header;
/* background-color: green; */
}
.contract-info {
grid-area: contract-info;
margin: auto 0;
/* display: none; */
/* background-color: rgb(86, 88, 82); */
}
.fail {background-color: #f44336;}
.success {color: green;}
.action {
grid-area: action;
/* background-color: grey; */
}
/* alignment of heads and tails images and radio buttons */
.action img {
width: 70%;
}
.row {
display: flex;
}
.column {
flex: 50%;
}
/*To make sure that label is always above input field*/
label {
display: block;
}
/* increase size of radio buttons */
input[type="radio"] {
height: 25px;
width: 25px;
}
/*Size of label 'Amount of Ether to bet' as large as h2*/
.label-amount {
font-size: 1.5em;
font-weight: bold;
margin-top: 1em;
}
/* Input field for betting value */
input[type=number] {
width: 50%;
padding: 12px 20px;
margin-top: 8px;
margin-bottom: 4px;
border: 1px solid #00C3FF;
box-sizing: border-box;
border-radius: 6px;
color: white;
background: transparent;
transition: all 0.30s ease-in-out;
}
input[type=number]:focus {
box-shadow: 0 0 5px rgba(81, 203, 238, 1);
border: 1px solid rgba(81, 203, 238, 1);
outline: none;
}
/* bet in dollar */
.exchange-rate-info {
display: inline-block;
}
/* info text */
.info-text {
font-size: .8em;
}
/* play button */
.play-button {
width: 200px;
background-color: #00C3FF;
border: none;
color: white;
padding: 15px 32px;
font-size: 16px;
cursor: pointer;
/* box-shadow: 2px 5px 4px #2d2d2d; */
border-radius: 8px;
display: block;
margin: 20px auto 20px;
}
.play-button:disabled {
cursor: not-allowed;
}
.jackpot {
grid-area: jackpot;
/* background-color: red; */
}
.result-coin {
grid-area: result-coin;
/* background-color: cyan; */
position: relative; /* Needed to place the child "won-lost" with "position: absolute" */
}
canvas { width: 100%; height: 100%; }
.recent-games {
grid-area: recent-games;
/* background-color: yellowgreen; */
}
.recent-games-table {
margin: 0 auto;
}
#table-body tr:nth-child(even) {
background-color: #353535;
}
.won {
color: green;
}
.lost {
color: red;
}
.contract-address-github {
position: absolute;
bottom: 0px;
left: 0px;
}
.content {
display: grid;
grid-template-areas:
'header header header contract-info'
'action jackpot recent-games recent-games'
'action result-coin recent-games recent-games';
}
.content > div {
text-align: center;
/* padding: 20px 0; */
/* font-size: 30px; */
}
@media (max-width: 600px) {
.content {
grid-template-areas:
'header'
'contract-info'
'action'
'jackpot'
'recent-games'
'result-coin';
}
.contract-address-github {
position: relative;
}
}
/* Make sure that contract address and github link are at bottom on mobiles in landscape mode */
@media (max-height: 600px) {
.contract-address-github {
position: relative;
}
}
.wait {
filter: blur(2px);
}