-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
104 lines (90 loc) · 1.54 KB
/
styles.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
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
:root {
--toolbox-width: 320px;
}
body {
padding: 0;
margin: 0;
}
.container {
display: flex;
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.display {
width: calc(100% - var(--toolbox-width));
height: 100%;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
background-color: black;
color: white;
cursor: move;
}
.toolbox {
width: var(--toolbox-width);
box-sizing: border-box;
background-color: black;
color: white;
border-left: 1px dashed white;
}
.toolbox .scrollable {
display: grid;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
grid-template-columns: min-content 1fr;
grid-auto-rows: min-content;
column-gap: 25px;
row-gap: 10px;
padding: 10px 20px;
}
.toolbox label {
white-space: nowrap;
}
.toolbox .toolbox-toggle {
display: none;
}
#animate,
#lockcursor,
#copy,
#reset {
grid-column: span 2;
}
@media screen and (max-width: 900px) {
.display {
width: 100%;
}
.toolbox {
position: absolute;
top: 0;
right: 0;
height: 100%;
width: auto;
transform: translateX(100%);
transition: .2s all ease-in;
}
.toolbox .scrollable {
grid-template-columns: 1fr;
row-gap: 10px;
padding: 10px 7px;
}
.toolbox .toolbox-toggle {
display: block;
position: absolute;
top: 15px;
left: 0;
transform: translateX(calc(-100% - 15px));
}
.toolbox.opened {
transform: translateX(0);
}
#animate,
#lockcursor,
#copy,
#reset {
grid-column: span 1;
}
}