-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
107 lines (83 loc) · 1.56 KB
/
styles.css
File metadata and controls
107 lines (83 loc) · 1.56 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #fefefe;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 1rem;
}
main {
min-width: 40%;
background-color: #fff;
display: flex;
justify-content: center;
flex-direction: column;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
padding: 1rem;
}
h1 {
text-align: center;
font-weight: 800;
font-size: 2.5rem;
padding: 1rem;
}
button {
align-self: center;
padding: 1rem 3rem;
font-size: 1.5rem;
background-color: aquamarine;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
}
button:hover {
background-color: #bfbfbf;
}
.dice {
font-size: 7rem;
text-align: center;
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);
}
}
ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 2rem;
margin: 2rem auto;
}
.output {
min-width: 40%;
}
li {
font-size: 1.5rem;
padding: 0.5rem;
background-color: #fff;
border-radius: 0.5rem;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
display: flex;
justify-content: space-between;
align-items: center;
}
li span {
font-size: 3.5rem;
margin-right: 1rem;
}