-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewPhoto.css
76 lines (64 loc) · 966 Bytes
/
viewPhoto.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
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
display: grid;
grid-template-columns: 75% 25%;
grid-template-rows: 100%;
background-color: black;
}
h1 {
display: inline-block;
}
canvas {
margin: auto;
display: block;
}
.mainContent {
max-height: 100%;
height: 100%;
justify-self: center;
display: table;
}
.squareDiv {
display: table-cell;
vertical-align: middle;
max-width: 75vw;
max-height: 75vw;
width: 100vh;
height: 100vh;
}
#mainCanvas {
width: 100%;
height: 100%;
}
@media only screen and (max-width: 600px) {
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
display: grid;
grid-template-columns: 100%;
grid-template-rows: 200px auto;
}
.mainContent {
order: 2;
}
.sideContent {
order: 1;
}
.squareDiv {
max-width: 100vw;
max-height: 100vw;
width: 100vw;
height: 100vw;
display: block;
}
}
.sideContent {
background-color: green;
}