-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
72 lines (62 loc) · 1.16 KB
/
Copy pathgame.css
File metadata and controls
72 lines (62 loc) · 1.16 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
body {
background: #F0F0F0;
margin: 0;
padding: 0;
}
#container {
height: 100dvh;
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
}
#game {
flex-basis: 50%;
max-height: 100%;
}
#game > canvas {
width: 100%;
}
#blockly {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
position: relative;
flex-basis: 50%;
}
#blockly > nav {
display: flex;
flex-direction: row;
gap: 2rem;
padding: 1rem;
}
#blocklyDiv {
flex-grow: 1;
}
#run, #stop, #reset {
display: flex;
flex-direction: row;
gap: 1rem;
justify-content: center;
align-items: center;
background: #E0E0E0;
color: black;
border-radius: 15px;
padding: 1rem 2rem;
font-size: 1rem;
border: none;
cursor: pointer;
box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s, filter 0.2s;
}
#run:hover, #stop:hover, #reset:hover {
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}
#run:active, #stop:active, #reset:hover {
filter: brightness(0.95);
}
#run img, #stop img, #reset img {
width: 1.5rem;
height: 1.5rem;
}