Minor import form fix
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _annoy.scss
1 .annnoy-banner-on {
2     display: none;
3 }
4
5 .annoy-banner_blackout {
6     //display: flex;
7     display: none;
8     position: fixed;
9     top: 0;
10     left: 0;
11     right: 0;
12     bottom: 0;
13     z-index: 9999;
14     background: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0, 0,.5) 100%);
15
16     .annoy-banner-inner {
17         max-height: 100vh;
18         overflow-y: auto;
19         padding: 0 0 30px 0;
20         display: flex;
21         flex-direction: column;
22         gap: 40px;
23     }
24     .annoy-banner_actions {
25         display: flex;
26         flex-direction: column;
27         gap: 40px;
28     }
29     .annoy-banner_img {
30         flex: 1;
31         text-align: center;
32         img {
33             max-height: 100%;
34             max-width: 100%;
35         }
36     }
37     .text {
38         display: flex;
39         padding: 6px 30px;
40         flex: 1;
41         gap: 40px;
42         flex-direction: column;
43         color: white;
44         p {
45             font-size: 24px;
46         }
47     }
48     .action {
49         font-size: 1.6rem !important;
50     }
51     .annoy-banner-off {
52         font-size: 1.2rem !important;
53     }
54
55     @include rwd($break-flow) {
56         .annoy-banner-inner {
57             padding: 0;
58             margin: 10vh 10vw 20vh 10vw;
59             max-height: 70vh;
60             flex-direction: row;
61             overflow-y: unset;
62
63             .text {
64                 padding: 0 20px 0 0;
65                 overflow-y: auto;
66             }
67         }
68         .action {
69
70         }
71         .annoy-banner-off {
72
73         }
74     }
75 }
76
77
78 .annoy-banner_crisis-container,
79 .annoy-banner_top-container {
80     position: sticky;
81     top: 0;
82     z-index: 10;
83     box-shadow: 0 0 10px black;
84     display: flex;
85     background: #c32721;
86     color: black;
87     align-items:center;
88     cursor: pointer;
89
90     &.annoy-banner_top-container {
91         padding: 16px 0;
92
93         @media screen and (max-height: 700px) {
94             padding: 5px 0;
95         }
96     }
97     &.annoy-banner_crisis-container {
98         height: 160px;
99
100         @media screen and (min-height: 480px) {
101             height: 33vh;
102             top: calc(-33vh + 160px);
103         }
104
105         @media screen and (max-width: 940px) {
106             padding: 10px 0;
107             height: auto;
108             top: 0;
109         }
110     }
111
112
113     .annoy-banner_crisis,
114     .annoy-banner_top {
115         position: sticky;
116         top: 0;
117         width: 100%;
118
119         .annoy-banner-inner {
120             max-width: 1172px;
121             margin: auto;
122             padding-right: 16px;
123             padding-left: 16px;
124
125             display: flex;
126             gap: 20px;
127             align-items: flex-start;
128
129             .image-box {
130                 position: relative;
131                 img {
132                     max-height: 159px;
133                     display: block;
134
135                     @media screen and (max-width: 700px) {
136                         max-height: 120px;
137                     }
138                 }
139             }
140
141             .text-box {
142                 flex-grow: 1;
143                 display: flex;
144                 flex-direction: column;
145                 gap: 10px;
146
147                 @media screen and (max-width: 700px) {
148                     p {
149                         font-size: .9em;
150                     }
151                 }
152
153                 @media screen and (max-height: 700px) {
154                     flex-direction: row;
155                     justify-content: space-between;
156                     p {
157                         font-size: .9em;
158                     }
159                 }
160
161
162                 .text {
163                     background: #edc016;
164                     padding: 1em;
165                     border: 3px solid black;
166                 }
167
168                 @media screen and (max-height: 400px) {
169                     align-items: center;
170                     .text {
171                         height: 1.2em;
172                         overflow: hidden;
173                     }
174                 }
175
176                 a {
177                     color: #c32721;
178                 }
179                 .state-box {
180                     display: flex;
181                     gap: 10px;
182                     align-items: center;
183                     @media screen and (max-width: 700px) {
184                         flex-direction: column;
185                         align-items: stretch;
186                         text-align: center;
187                     }
188                     .progress-box {
189                         flex-grow: 1;
190
191                         .l-checkout__support__bar span::after {
192                             color: black;
193                         }
194                     }
195                     .time-box {
196                         width: 110px;
197                         margin: auto;
198                     }
199                     .countdown {
200                         margin: 0;
201                     }
202                 }
203             }
204
205             p {
206                 margin: 0;
207             }
208
209             a.action {
210                 background: #edc016;
211                 color: black;
212                 padding: .8em 1em;
213                 border: 3px solid black;
214                 border-radius: 10px;
215                 display: block;
216                 transition: background-color .2s;
217
218                 @media screen and (max-height: 700px) {
219                     font-size: .9em;
220                 }
221                 @media screen and (max-height: 400px) {
222                     white-space: nowrap;
223                 }
224
225                 &:hover {
226                     background: #ffd430;
227                     text-decoration: none;
228                 }
229             }
230         }
231     }
232     &.annoy-banner-style_crisis_quiet,
233     &.annoy-banner_top-container {
234         background: black;
235         color: white;
236         .annoy-banner-inner {
237             align-items: center;
238
239             .text-box {
240                 .text {
241                     background: none;
242                     padding: 0;
243                     border: none;
244                     a {
245                         color: #ffd430;
246                     }
247                 }
248             }
249         }
250     }
251 }