-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
71 lines (60 loc) · 1.07 KB
/
style.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
*{
box-sizing: border-box;
}
body{
margin: 0;
background-color: rgb(211, 0, 211);
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
min-height: 100vh;
}
h1{
font-size: 2.4rem;
color: #ffffff;
}
canvas{
background-color: #ddd;
display: block;
border-radius: 5px;
}
.btn{
font-size: 1rem;
cursor: pointer;
padding: 8px 16px;
border: 0;
background-color: #000;
color: #ffffff;
border-radius: 6px;
}
.btn:hover{
background-color: #222;
}
.btn:active{
transform: scale(0.96);
}
.btn:focus{
outline: 0;
}
.rules-btn{
position: absolute;
top: 30px;
left: 24px;
}
.rules{
position: absolute;
top: 0;
left: 0;
color: #ffffff;
background-color: #333;
padding: 16px;
line-height: 1.5;
min-height: 100vh;
width: 320px;
transform: translateX(-320px);
transition: transform 1s ease-in-out;
}
.rules.show{
transform: translateX(0);
}