-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdice.css
72 lines (63 loc) · 1.08 KB
/
dice.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
body {
font-family: "Open Sans", sans-serif;
text-align: center;
margin: 0;
}
h1 {
font-size: 3rem;
margin-top: 2rem;
}
.dice {
border: 1 px solid black;
font-size: 65px;
border-radius: 12px;
margin: 5px;
animation-duration: 1s;
animation-fill-mode: forwards;
}
.roll-animation {
animation-name: roll;
}
@keyframes roll {
0% {
transform: rotateY(0deg) rotateX(0deg);
}
100% {
transform: rotateY(720deg) rotateX(720deg);
}
}
button {
background-color: #003333;
color: white;
font-size: 1.5rem;
padding: 1rem 2rem;
border: none;
border-radius: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #2e8baf;
}
ul {
list-style: none;
padding: 0;
max-width: 600px;
margin: 2rem auto;
border-radius: 12px;
}
li {
font-size: 1.5rem;
padding: 0.5rem;
margin: 0.5rem;
background-color: #f2f2f2;
border-radius: 1rem;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
display: flex;
justify-content: space-between;
align-items: center;
}
li span {
font-size: 3rem;
margin-right: 1rem;
}