This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
/
preview-gallery.css
185 lines (157 loc) · 3.58 KB
/
preview-gallery.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
.preview-gallery {
position: absolute;
top: 0;
left: 0;
width: 100%;
bottom: 0;
background: #000;
z-index: 100;
overflow: hidden;
opacity: 1;
visibility: visible;
transition: all 0.5s ease-in-out;
background-color: #333333;
}
.preview-gallery.offscreen {
opacity: 0;
visibility: hidden;
transition: all 200ms ease-in-out;
}
/** Frame Container
---------------------------------------------------------*/
.frame-container {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 100%;
overflow: hidden;
-moz-user-select: none;
}
.media-frame {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #333333;
}
.media-frame > img {
top: 0;
left: 0;
position: absolute;
pointer-events: none;
-moz-user-select: none;
}
.media-frame > video {
transform-origin: 0 0;
}
/** Preview Menu
---------------------------------------------------------*/
/**
* 1. Sits on-top of frame-container.
*/
.preview-menu {
position: relative;
z-index: 1; /* 1 */
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/**
* visible
*/
.preview-menu.visible {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
/**
* [secure-mode=true]
*
* 1. !important is required to over-ride
* strong specificty of <style scoped>
* inside <gaia-header>.
*
* When the platform has `::content` (bug 992249)
* and `:host` (bug 992245) selectors, this scoped
* stylesheet will no longer be required and we
* can remove this `!important`.
*/
.preview-gallery[secure-mode=true] .preview-share-icon,
.preview-gallery[secure-mode=true] .preview-option-icon {
display: none !important; /* 1 */
}
/** Count Text
---------------------------------------------------------*/
.count-text {
position: absolute;
bottom: 83px;
width: 100%;
text-align: center;
font-size: 2rem;
font-weight: 500;
text-shadow:
1px 1px 2px rgba(0,0,0,0.4),
0 0 29px rgba(0,0,0,0.2);
color: #FFF;
}
/** Preview Controls
---------------------------------------------------------*/
.preview-controls {
position: absolute;
display: flex;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 4.5rem;
background-color: rgba(0, 0, 0, 0.4);
z-index: 100;
}
/**
Overriding default styles from shared/style/headers.css
*/
section[role="region"].skin-dark > header:first-child > button:active,
section[role="region"].skin-dark > header:first-child menu[type="toolbar"] button:not(:disabled):active {
background-color: rgba(0, 142, 171, 0.3);
}
section[role="region"].skin-dark > header:first-child > button,
section[role="region"].skin-dark > header:first-child menu[type="toolbar"] button:not(:disabled) {
vertical-align: middle;
text-align: center;
}
section[role="region"].skin-dark > header:first-child > button {
width: 3rem;
}
section[role="region"] > header:first-child h1 {
font-weight: normal;
padding: 0 1rem;
}
section[role="region"].skin-dark > header:first-child,
.skin-dark > section[role="region"] > header:first-child {
background: rgba(0, 0, 0, 0.75);
}
section[role="region"] > header:first-child > button:after,
section[role="region"] > header:first-child > a:after {
width: 100%;
}
/**
Button icon styles
*/
/**
* 1. !important required to override
* specificity of scoped stylesheet.
*/
.preview-menu button {
font-size: 3.0rem !important; /* 1 */
text-align: center;
text-shadow: none;
}
/**
* 1. Allow flexbox to vertically center.
*/
.preview-menu button:before {
display: block; /* 1 */
}