forked from Pamblam/snek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
107 lines (95 loc) · 3.11 KB
/
index.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
:root {
--bg-color: #639c91;
--bg-end-color: #6d1c1c;
--bg-start-color: #4b8b4d;
}
body {
height: 100vh;
width: 100vw;
margin: 0;
font-family: 'Overpass Mono', monospace;
background: var(--bg-color); /* Old browsers */
background-color: var(--bg-color); /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, var(--bg-color) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #ffffff 0%, var(--bg-color) 100%); /* q-25,Safari5.1-6 */
background: linear-gradient(to bottom, #ffffff 0%, var(--bg-color) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='var(--bg-color)',GradientType=0 ); /* IE6-9 */
background-repeat: repeat-x;
background-color: var(--bg-color);
}
body.started {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, var(--bg-start-color) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #ffffff 0%, var(--bg-start-color) 100%); /* q-25,Safari5.1-6 */
background: linear-gradient(to bottom, #ffffff 0%, var(--bg-start-color) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='var(--bg-start-color)',GradientType=0 ); /* IE6-9 */
background-repeat: repeat-x;
background-color: var(--bg-start-color);
}
body.finished {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, var(--bg-endcolor) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #ffffff 0%, var(--bg-end-color) 100%); /* q-25,Safari5.1-6 */
background: linear-gradient(to bottom, #ffffff 0%, var(--bg-end-color) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='var(--bg-end-color)',GradientType=0 ); /* IE6-9 */
background-repeat: repeat-x;
background-color: var(--bg-end-color);
}
.container {
margin: auto;
text-align: center;
padding-top: 50px;
}
canvas {
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
border-radius: 3px;
background: lightgreen;
border: 1px solid darkgreen;
}
h1 {
text-transform: uppercase;
letter-spacing: 0.3px;
margin-top: 0;
}
#out {
/* border-bottom: 1px solid black; */
padding: 5px;
border: 2px solid black;
background-color: yellow;
text-transform: uppercase;
font-size: larger;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif
}
#game, #getname, .hidden{
display: none;
}
/* Username Form Styling */
#nameform #username {
padding: 10px;
border: none;
border-top-left-radius: 5px;
outline: none;
border-bottom-left-radius: 5px;
}
#nameform button[type="submit"] {
padding: 10px 20px;
border: none;
background: #333;
color: #FFF;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
cursor: pointer;
}
#btn-restart {
padding: 1.5em;
width: 100px;
background: #0984e3;
color: white;
border-radius: 5px;
border: none;
box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.3);
}
.hide {
display: none;
}