Introduce banner styles.
[wolnelektury.git] / src / annoy / static / annoy / banner.scss
1 .annoy-banner {
2     background: orange;
3
4     p {
5         text-align: center;
6     }
7
8     a {
9         color: black;
10         display: block;
11         padding: 1em 2em;
12     }
13 }
14
15
16 .annoy-banner-off {
17     cursor: pointer;
18 }
19
20 .annoy-banner_top {
21     display: none;
22
23     .annoy-banner-inner {
24         @media screen and (min-width: 960px) {
25             width: 960px;
26             margin: auto;
27         }
28         display: flex;
29         flex-direction: column;
30
31         @media screen and (min-width: 400px) {
32             flex-direction: row;
33         }
34     }
35     
36     img {
37         margin: 0;
38         align-self: center;
39         width: auto;
40         max-height: 40px;
41         @media screen and (min-width: 400px) {
42             max-height: 60px;
43         }
44     }
45     .text {
46         flex: 1;
47         align-self: center;
48         padding: .5em 1em;
49     }
50     
51     p {
52         margin: 0;
53         font-size: 1.5em;
54         line-height: 1.1em;
55
56         @media screen and (min-width: 400px) {
57             font-size: 2em;
58         }
59     }
60     
61     .annoy-banner-off {
62         padding: .5em 1em .5em;
63         width: 1em;
64         text-align:center;
65         font-family: Arial, sans-serif;
66         display: block;
67         
68         border-radius: 0 0 0 1em;
69         position: absolute;
70         top: 0;
71         right: 0;
72         color: black;
73         font-size: 13px;
74     }
75 }
76
77 .annoy-banner-on_top {
78     font-size: 13px;
79     line-height: 1.15em;
80
81     background: orange;
82     z-index: 99;
83     font-family: Arial, sans-serif;
84     display: block;
85     padding: .1em 1em;
86     text-align:center;
87     border-radius: 0 0 0 1em;
88     position: absolute;
89     top: 0;
90     right: 0;
91     color: black;
92     max-width: 80%;
93     white-space: nowrap;
94     overflow: hidden;
95     text-overflow: ellipsis;
96 }
97
98
99 .annoy-banner_book-page {
100     margin-top: 30px;
101     font-size: 2em;
102
103     p {
104         margin: 0;
105     }
106 }
107
108
109 .annoy-banner_book-fragment-list {
110     margin-right: 2em;
111 }
112
113
114
115 .annoy-banner_blackout {
116     display: none;
117     
118     position: fixed;
119     z-index: 100000;
120     left: 0;
121     right: 0;
122     top: 0;
123     bottom: 0;
124     background: black;
125     color: white;
126     font-size: 16pt;
127     line-height: 26pt;
128     padding: 0;
129     overflow: hidden;
130
131     .annoy-banner-inner {
132         padding: 0 40% 0 15%;
133         height: 100%;
134         overflow-y: scroll;
135         padding-top: 20vh;
136         padding-bottom: 2em;
137         width: 101%;
138         box-sizing: border-box;
139     }
140
141     p {
142         text-align: left;
143     }
144     
145     a {
146         color: white;
147         position: absolute;
148         right: 10%;
149         width: 25%;
150         border-radius: 24px;
151         text-align: center;
152         box-sizing: border-box;
153         padding: 1em;
154
155         &.annoy-banner-off {
156             bottom: 20vh;
157             background: #666;
158             border-radius: auto 100%;
159             font-size: .75em;
160             padding: .5em;
161             width: 20%;
162             margin-right: 2.5%;
163         }
164
165         &.action {
166             bottom: 40vh;
167             background: #018189;
168             color: white;
169             border-radius: auto 100%;
170             padding: 1.5em 1em;
171         }
172     }    
173
174     @media screen and (max-height: 1000px) {
175         .annoy-banner-inner {
176             padding-top: 5vh;
177         }
178     }
179     
180     @media screen and (max-width: 1280px) {
181         .annoy-banner-inner {
182             padding-left: 5%;
183             padding-right: 50%;
184             padding-left: 5%;
185             padding-right: 50%;
186         }
187
188         a {
189             right: 5%;
190             width: 40%;
191
192             &.annoy-banner-off {
193                 width: 40%;
194                 margin-right: 0%;
195             }
196         }
197         
198     }
199     @media screen and (max-width: 1024px) {
200         font-size: 14pt;
201         line-height: 21pt;        
202     }
203     @media screen and (max-height: 820px) {
204         .annoy-banner-inner {
205             padding-top: 5vh;
206         }
207     }
208     @media screen and (max-width: 820px) and (max-height: 820px) {
209         a.action {
210             bottom: 20vh;
211         }
212         a.annoy-banner-off {
213             bottom: 5vh;
214         }
215     }
216     @media screen and (max-height: 400px) {
217         a.action {
218             bottom: 40vh;
219         }
220     }
221
222     &.annoy-banner-style_blackout_centre {
223         background: rgba(0,0,0,.5);
224
225         .annoy-banner-inner {
226             background: black;
227             position: absolute;
228             top: 14%;
229             left: 14%;
230             right: 14%;
231             bottom: 14%;
232             width: auto;
233             height: auto;
234             border: 2px solid white;
235             overflow-y: auto;
236         }
237
238     }
239     @media screen and (min-height: 500px) {
240         &.annoy-banner-style_blackout_upper {
241             background: rgba(0,0,0,.5);
242
243             .annoy-banner-inner {
244                 background: black;
245                 position: absolute;
246                 top: 0;
247                 left: 0;
248                 right: 0;
249                 bottom: 50%;
250                 width: auto;
251                 height: auto;
252                 border-bottom: 2px solid white;
253                 overflow-y: auto;
254                 
255                 .action {
256                     bottom: 20vh;
257                 }
258             }
259
260             .annoy-banner-off {
261                 bottom: 60vh;
262             }
263         }
264     }
265     
266 }
267
268
269 .annoy-banner-on_blackout {
270     position: fixed;
271     z-index: 9999;
272     bottom: 0;
273     right: 0;
274     background: black;
275     color: white;
276     border-radius: 1em 0 0 0;
277     padding: .1em 1em;
278     max-width: 80%;
279     white-space: nowrap;
280     overflow: hidden;
281     text-overflow: ellipsis;
282 }
283
284
285
286 .dynamic-insert {
287     background: orange;
288     margin: 1em 0;
289     user-select: none;
290     -webkit-user-select: none;
291     -moz-user-select: none;
292     -ms-user-select: none;
293
294     &.with-image {
295         min-height: 120px;
296     }
297
298     padding: 0;
299        
300     a {
301         color: black;
302         display: flex;
303         flex-direction: row;
304
305         .text {
306             padding: 2em;
307             flex: 1;
308             align-self: center;
309         }
310         img {
311             border-radius: 100%;
312             margin: 1em;
313             align-self: center;
314             width: 120px;
315             height: 120px;
316         }
317     }
318 }
319
320
321
322 .annoy-banner_book-text-intermission {
323     display: none;
324
325     .annoy-banner-inner {
326         display: flex;
327         flex-direction: column;
328
329         @media screen and (min-width: 400px) {
330             flex-direction: row;
331         }
332     }
333     
334     img {
335         margin: 0;
336         align-self: center;
337         max-height: 60px;
338         @media screen and (min-width: 400px) {
339             max-height: 100px;
340         }
341     }
342     .text {
343         flex: 1;
344         align-self: center;
345         padding: .5em 1em;
346     }
347     
348     p {
349         margin: 0;
350         font-size: 1.5em;
351         line-height: 1.15em;
352
353         @media screen and (min-width: 400px) {
354             font-size: 2em;
355         }
356     }
357 }