-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
127 lines (103 loc) · 1.66 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/* Global Variables */
:root {
--border-radius: 15px;
}
body, html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
body {
box-sizing: border-box;
background-color: #CCC;
font-size: 50px;
padding: 10px;
}
/* Mobile first */
.container {
display: flex;
flex-flow: column;
background-color: #EEE;
box-sizing: border-box;
width: 100%;
height: 100%;
border: 1px;
border-style: solid;
border-radius: var(--border-radius);
padding: 15px;
}
#myCanvas {
flex: 0 1 auto;
min-width: 200px;
min-height: 200px;
max-width: 100%;
max-height: 100%;
width: auto;
height: 50%;
object-fit: contain;
margin-bottom: 15px;
touch-action: none;
}
.controlers {
position: relative;
flex: 1 1 auto;
box-sizing: border-box;
border: 1px;
width: 100%;
border-style: solid;
border-radius: var(--border-radius);
padding: 10px;
overflow: auto;
}
.controler {
border-bottom: 1px;
border-bottom-style: solid;
padding-bottom: 10px;
}
div.controler:nth-last-child(2) {
border-bottom: none;
border-bottom-style: none;
padding-bottom: 0;
}
#render-time {
position: absolute;
bottom: var(--border-radius);
right: var(--border-radius);
}
.control, .send {
font-size: 0.9em;
}
input.control[type="number"] {
width: 4em;
}
input.control[type="range"] {
width: 100%;
}
.slider {
width: 100%;
margin: 0;
}
/* Computer (landscape) */
@media screen and (orientation: landscape) {
html, body {
font-size: 40px;
}
#myCanvas {
max-height: 100%;
max-width: 50%;
width: 100%;
height: auto;
margin-bottom: 0;
margin-right: 15px;
}
.container {
flex-flow: row;
}
.control, .send {
font-size: 0.6em;
}
#render-time {
font-size: 0.6em;
}
}