-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
70 lines (62 loc) · 1.41 KB
/
index.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
body {
display: flex;
margin: 0;
background: linear-gradient(0.25turn, #0f141d, #1e1d27, #180d24);
font-family: Arial, sans-serif;
}
#animation-container {
position: relative;
height: calc(100vh - 220px);
}
#controls {
position: absolute;
box-sizing: border-box;
width: 100vw;
height: calc(220px);
bottom: 0;
padding: 0 40px;
overflow-y: scroll;
scroll-snap-type: y mandatory;
background: white;
box-shadow: 0 0 14px #000;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
#animated-ball {
position: absolute;
display: block;
width: 100px;
height: 100px;
top: calc(((100vh - 220px) / 2) - 50px);
border-radius: 50px;
background: linear-gradient(217deg, rgba(255,255,255,.8), rgba(255,255,255,0) 70.71%),
linear-gradient(127deg, rgba(0, 124, 196, 0.8), rgba(0,124,196,0) 70.71%),
linear-gradient(336deg, rgba(0, 36, 135, 0.8), rgba(0,36,135,0) 70.71%);
box-shadow: 1px 1px 4px #000;
}
.example-group {
display: grid;
box-sizing: border-box;
grid: auto-flow / 1fr 1fr 1fr;
padding: 40px 0;
height: 220px;
scroll-snap-align: start;
}
.example-group:not(:last-of-type) {
border-bottom: 1px solid #ccc;
}
.result {
grid-column: 2 / 4;
}
button {
height: 60px;
width: 160px;
border-radius: 4px;
cursor: pointer;
box-shadow: 1px 1px 4px #ddd;
font-size: 14px;
}
.code-results {
border: 1px solid #ccc;
overflow-x: scroll;
}