forked from PhotoboothProject/photobooth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_preview.scss
More file actions
100 lines (92 loc) · 1.57 KB
/
_preview.scss
File metadata and controls
100 lines (92 loc) · 1.57 KB
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
/**
* Preview
*/
#preview-container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
width: 100%;
max-height: 100vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#preview-wrapper {
position: relative;
height: 100%;
}
#preview--none,
#preview--ipcam,
#preview--video,
#previewframe--picture,
#previewframe--collage {
display: none;
position: absolute;
top: 50%;
left: 50%;
height: 100%;
width: 100%;
max-width: 100%;
max-height: 100%;
translate: -50% -50%;
font-size: 1.75em;
color: var(--start-font-color);
text-align: center;
}
#preview--none,
#preview--ipcam,
#preview--video {
translate: unset;
}
#preview--ipcam,
#preview--video,
#previewframe--picture,
#previewframe--collage {
rotate: var(--preview-rotation);
}
#preview--none,
#previewframe--picture,
#previewframe--collage {
height: auto;
width: auto;
}
#preview--ipcam,
#preview--video,
#previewframe--picture,
#previewframe--collage {
background-image: none;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
&.fill {
object-fit: fill;
}
&.contain {
object-fit: contain;
}
&.cover {
background-size: cover;
object-fit: cover;
}
&.none {
object-fit: none;
}
&.scale-down {
object-fit: scale-down;
}
&.flip-horizontal {
scale: -1 1;
}
&.flip-vertical {
scale: 1 -1;
}
}
#preview--ipcam {
&.streaming {
background-image: var(--background-preview);
}
}