forked from PhotoboothProject/photobooth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_screensaver.scss
More file actions
81 lines (72 loc) · 1.54 KB
/
_screensaver.scss
File metadata and controls
81 lines (72 loc) · 1.54 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
.screensaver-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background: #000;
background-size: contain;
background-position: center;
z-index: 20;
cursor: pointer;
&--active {
display: flex;
}
&--gallery {
display: flex;
flex-direction: column;
padding: 6vh 0;
box-sizing: border-box;
}
video {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
&__image {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: none;
}
&__text {
position: absolute;
width: 100%;
text-align: center;
color: var(--screensaver-text-color, #ffffff);
font-family: var(--font-family-screensaver-text, --font-family-default), 'Dosis', sans-serif;
font-weight: var(--screensaver-text-weight, 400);
font-style: var(--screensaver-text-style, normal);
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
font-size: clamp(2rem, 5vw, 4rem);
line-height: 1.2;
box-sizing: border-box;
padding: 0.75rem 1.25rem;
background: rgba(32, 32, 32, 0.55);
backdrop-filter: blur(3px);
&--top {
top: 3rem;
}
&--center {
top: 50%;
transform: translateY(-50%);
}
&--bottom {
bottom: 3rem;
}
}
&--gallery {
.screensaver-overlay__image {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: none;
}
}
}