-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstile.css
59 lines (57 loc) · 1.01 KB
/
stile.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
body{
background-color: #E0FFFF;
}
h1{
text-align: center;
color: #4AA02C;
font: arial;
font-size: 50px;
}
p{
text-align: center;
font: arial;
font-size: 25px;
color: #4AA02C;
}
button.restart{ /* in questo modo creo una sottoclasse a cui applicare il foglio di stile*/
border-radius: 50%;
background-color: #FFF8C6;
width: 108px;
height: 108px;
font-size: 10px;
left: 1300px;
top: 600px;
position: absolute;
font-family: monospace;
font-size: 18px;
}
#player1{
transform: rotate(-20deg); /*posizionata la ruoto*/
position: absolute;
left: 100px; /*cordinata x partendo da sinistra*/
top: 250px; /*cordinata y*/
}
#player2{
transform: rotate(20deg);
position: absolute;
right: 100px;/* cordinata x partendo da destra*/
top: 250px;
}
#canvas{
background: #CFECEC;
display: block;
margin: 0 auto;
border: 10px solid #ffff;
}
#console{
animation: 10s slide-right;
animation-duration: 1s;
}
@keyframes slide-right{
from {
margin-left: -100%;
}
to {
margin-left: 0%;
}
}