1 | .lg-container {
|
2 | font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
3 | Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji',
|
4 | 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
5 | }
|
6 |
|
7 | .lg-next,
|
8 | .lg-prev {
|
9 | background-color: $lg-next-prev-bg;
|
10 | border-radius: $lg-border-radius-base;
|
11 | color: $lg-next-prev-color;
|
12 | cursor: pointer;
|
13 | display: block;
|
14 | font-size: 22px;
|
15 | margin-top: -10px;
|
16 | padding: 8px 10px 9px;
|
17 | position: absolute;
|
18 | top: 50%;
|
19 | z-index: $zindex-controls;
|
20 | outline: none;
|
21 | border: none;
|
22 |
|
23 | &.disabled {
|
24 | opacity: 0 !important;
|
25 | cursor: default;
|
26 | }
|
27 |
|
28 | &:hover:not(.disabled) {
|
29 | color: $lg-next-prev-hover-color;
|
30 | }
|
31 | .lg-single-item & {
|
32 | display: none;
|
33 | }
|
34 | }
|
35 |
|
36 | .lg-next {
|
37 | right: 20px;
|
38 |
|
39 | &:before {
|
40 | content: '\e095';
|
41 | }
|
42 | }
|
43 |
|
44 | .lg-prev {
|
45 | left: 20px;
|
46 |
|
47 | &:after {
|
48 | content: '\e094';
|
49 | }
|
50 | }
|
51 |
|
52 | @include keyframes(lg-right-end) {
|
53 | 0% {
|
54 | left: 0;
|
55 | }
|
56 |
|
57 | 50% {
|
58 | left: -30px;
|
59 | }
|
60 |
|
61 | 100% {
|
62 | left: 0;
|
63 | }
|
64 | }
|
65 |
|
66 | @include keyframes(lg-left-end) {
|
67 | 0% {
|
68 | left: 0;
|
69 | }
|
70 |
|
71 | 50% {
|
72 | left: 30px;
|
73 | }
|
74 |
|
75 | 100% {
|
76 | left: 0;
|
77 | }
|
78 | }
|
79 |
|
80 | .lg-outer {
|
81 | &.lg-right-end {
|
82 | .lg-object {
|
83 | @include animation(lg-right-end 0.3s);
|
84 | position: relative;
|
85 | }
|
86 | }
|
87 |
|
88 | &.lg-left-end {
|
89 | .lg-object {
|
90 | @include animation(lg-left-end 0.3s);
|
91 | position: relative;
|
92 | }
|
93 | }
|
94 | }
|
95 |
|
96 |
|
97 | .lg-toolbar {
|
98 | z-index: $zindex-toolbar;
|
99 | left: 0;
|
100 | position: absolute;
|
101 | top: 0;
|
102 | width: 100%;
|
103 | .lg-media-overlap & {
|
104 | background-image: $lg-toolbar-bg;
|
105 | }
|
106 |
|
107 | .lg-icon {
|
108 | color: $lg-toolbar-icon-color;
|
109 | cursor: pointer;
|
110 | float: right;
|
111 | font-size: 24px;
|
112 | height: 47px;
|
113 | line-height: 27px;
|
114 | padding: 10px 0;
|
115 | text-align: center;
|
116 | width: 50px;
|
117 | text-decoration: none !important;
|
118 | outline: medium none;
|
119 | will-change: color;
|
120 | @include transition(color 0.2s linear);
|
121 | background: none;
|
122 | border: none;
|
123 | box-shadow: none;
|
124 | &.lg-icon-18 {
|
125 | font-size: 18px;
|
126 | }
|
127 | &:hover {
|
128 | color: $lg-toolbar-icon-hover-color;
|
129 | }
|
130 | }
|
131 |
|
132 | .lg-close {
|
133 | &:after {
|
134 | content: '\e070';
|
135 | }
|
136 | }
|
137 | .lg-maximize {
|
138 | font-size: 22px;
|
139 | &:after {
|
140 | content: '\e90a';
|
141 | }
|
142 | }
|
143 |
|
144 | .lg-download {
|
145 | &:after {
|
146 | content: '\e0f2';
|
147 | }
|
148 | }
|
149 | }
|
150 |
|
151 |
|
152 | .lg-sub-html {
|
153 | color: $lg-sub-html-color;
|
154 | font-size: 16px;
|
155 | padding: 10px 40px;
|
156 | text-align: center;
|
157 | z-index: $zindex-subhtml;
|
158 | opacity: 0;
|
159 | @include transition(opacity 0.2s ease-out 0s);
|
160 |
|
161 | h4 {
|
162 | margin: 0;
|
163 | font-size: 13px;
|
164 | font-weight: bold;
|
165 | }
|
166 |
|
167 | p {
|
168 | font-size: 12px;
|
169 | margin: 5px 0 0;
|
170 | }
|
171 | a {
|
172 | color: inherit;
|
173 | &:hover {
|
174 | text-decoration: underline;
|
175 | }
|
176 | }
|
177 | .lg-media-overlap & {
|
178 | background-image: $lg-sub-html-bg;
|
179 | }
|
180 | .lg-item & {
|
181 | position: absolute;
|
182 | bottom: 0;
|
183 | right: 0;
|
184 | left: 0;
|
185 | }
|
186 | }
|
187 |
|
188 | .lg-error-msg {
|
189 | font-size: 14px;
|
190 | color: #999;
|
191 | }
|
192 |
|
193 |
|
194 | .lg-counter {
|
195 | color: $lg-icon-color;
|
196 | display: inline-block;
|
197 | font-size: $lg-counter-font-size;
|
198 | padding-left: 20px;
|
199 | padding-top: 12px;
|
200 | height: 47px;
|
201 | vertical-align: middle;
|
202 | }
|
203 |
|
204 | .lg-closing {
|
205 | .lg-toolbar,
|
206 | .lg-prev,
|
207 | .lg-next,
|
208 | .lg-sub-html {
|
209 | opacity: 0;
|
210 | @include transitionCustom(
|
211 | transform 0.08 cubic-bezier(0, 0, 0.25, 1) 0s,
|
212 | opacity 0.08 cubic-bezier(0, 0, 0.25, 1) 0s,
|
213 | color 0.08 linear
|
214 | );
|
215 | }
|
216 | }
|
217 |
|
218 |
|
219 | body:not(.lg-from-hash) {
|
220 | .lg-outer {
|
221 | &.lg-start-zoom {
|
222 | .lg-item:not(.lg-zoomable) {
|
223 | .lg-img-wrap,
|
224 | .lg-video-cont {
|
225 | opacity: 0;
|
226 | @include transform(scale3d(0.5, 0.5, 0.5));
|
227 | will-change: transform, opacity;
|
228 | @include transitionCustom(
|
229 | transform 250ms cubic-bezier(0, 0, 0.25, 1) 0s,
|
230 | opacity 250ms cubic-bezier(0, 0, 0.25, 1) !important
|
231 | );
|
232 | }
|
233 | &.lg-complete {
|
234 | .lg-img-wrap,
|
235 | .lg-video-cont {
|
236 | opacity: 1;
|
237 | @include transform(scale3d(1, 1, 1));
|
238 | }
|
239 | }
|
240 | }
|
241 | }
|
242 | }
|
243 | }
|
244 |
|
245 | .lg-icon {
|
246 | &:focus-visible {
|
247 | color: #fff;
|
248 | border-radius: 3px;
|
249 | outline: 1px dashed rgba(255, 255, 255, 0.6);
|
250 | }
|
251 | }
|
252 | .lg-toolbar {
|
253 | .lg-icon {
|
254 | &:focus-visible {
|
255 | border-radius: 8px;
|
256 | outline-offset: -5px;
|
257 | }
|
258 | }
|
259 | }
|