-
Notifications
You must be signed in to change notification settings - Fork 16
/
style.css
241 lines (185 loc) · 4.11 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
x-card, x-deck {
display: block;
}
html {
font-size: 10px;
font-family: sans-serif;
}
html, body {
margin: 0;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* general set up and layout */
nav {
display: none;
}
body {
max-width: 1400px;
margin: 0 auto;
}
x-card {
width: 100%;
position: relative;
}
x-card:nth-child(2) canvas {
display: none;
}
x-card:nth-child(1), x-card:nth-child(2) {
width: 30%;
float: left;
padding: 2rem;
}
x-card:nth-child(3) {
width: 40%;
float: left;
height: 100%;
overflow: auto;
padding: 2rem;
}
button {
border: 0;
margin: 0;
background-color: rgb(200,200,200);
background-color: rgba(200,200,200,0.9);
background: linear-gradient(to bottom, rgba(230,230,230,0.9), rgba(200,200,200,0.9));
box-shadow: 0px 5px 5px rgba(0,0,0,0.4),
inset 0px 4px 3px rgba(255,255,255,0.3),
inset 0px -4px 3px rgba(0,0,0,0.3);
border: 1px solid rgba(0,0,0,0.5);
border-radius: 10px;
width: 100%;
font-size: 2.4rem;
line-height: 2.5;
margin-top: 10px;
}
button.cancel {
background: linear-gradient(to bottom, rgba(230,0,0,0.9), rgba(200,0,0,0.9));
}
video, img {
display: block;
}
video {
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
}
/* the styling of the whole deck */
html {
background-color: black;
}
x-deck {
background-image: url(images/carbon2.jpg);
}
/* the take picture card styling and view snapshot card styling */
x-card:nth-child(1) video, x-card:nth-child(2) img {
width: 100%;
border-radius: 10px;
border: 3px solid black;
padding: 8px;
background-color: white;
}
/* the gallery styling */
x-card:nth-child(3) img {
width: 33%;
float: left;
}
/* Styling for medium layout - very few changes here, except that the gallery goes below the take picture and view capture boxes */
@media all and (max-width: 1024px) {
x-card:nth-child(1), x-card:nth-child(2) {
width: 50%;
}
x-card:nth-child(3) {
width: 100%;
clear: left;
}
x-card:nth-child(3) img {
width: 20%;
}
}
/* Styling for mobile app view starts here; note that upon the screen size getting to this */
@media all and (max-width: 480px) {
/* styling resets for the mobile view */
x-card:nth-child(1), x-card:nth-child(2), x-card:nth-child(3) {
width: 100%;
float: none;
padding: 0;
}
button {
margin-top: 0;
border-radius: 0;
}
x-card:nth-child(1) video, x-card:nth-child(2) img {
border-radius: 0px;
border: none;
padding: 0;
background-color: 0;
}
/* general card styling */
x-card:nth-child(1) video, x-card:nth-child(2) img, x-card:nth-child(3) {
margin-top: 17.5vw;
}
x-card:nth-child(1) button, x-card:nth-child(2) button {
position: absolute;
bottom: 0;
}
x-card:nth-child(2) button:nth-of-type(2) {
bottom: 5.9rem;
}
/* the take picture card styling */
x-card:nth-child(1) button {
font-size: 7vw;
}
/* the view snapshot card styling */
x-card:nth-child(2) button {
font-size: 7vw;
}
/* the gallery card styling */
x-card:nth-child(3) img {
width: 50%;
}
/* the nav styling for the mobile view */
nav {
width: 100%;
position: absolute;
z-index: 1000;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
}
nav button {
font-size: 6.8vw;
-webkit-flex: 1;
-moz-flex: 1;
-ms-flex: 1;
flex: 1;
border-left: 1px solid rgba(100,100,100,0.4);
}
nav button:first-child {
border-left: 0;
}
}
@media all and (max-width: 480px) and (orientation: landscape) {
nav {
width: auto;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
nav button {
font-size: 6.8vh;
}
nav button {
border-left: 0;
}
x-card:nth-child(1) video, x-card:nth-child(2) img, x-card:nth-child(3) {
margin-top: 0;
}
x-card:nth-child(1) button, x-card:nth-child(2) button {
font-size: 2rem;
}
}