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     position: sticky;
80     top: 0;
81     height: 160px;
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     @media screen and (min-height: 480px) {
91         height: 33vh;
92         top: calc(-33vh + 160px);
93     }
94
95     @media screen and (max-width: 940px) {
96         padding: 10px 0;
97         height: auto;
98         top: 0;
99     }
100
101     .annoy-banner_crisis {
102         position: sticky;
103         top: 0;
104         width: 100%;
105
106         .annoy-banner-inner {
107             max-width: 1172px;
108             margin: auto;
109             padding-right: 16px;
110             padding-left: 16px;
111
112             display: flex;
113             gap: 20px;
114             align-items: flex-start;
115
116             .image-box {
117                 position: relative;
118                 img {
119                     height: 159px;
120                     display: block;
121
122                     @media screen and (max-width: 700px) {
123                         height: 120px;
124                     }
125                 }
126             }
127
128             .text-box {
129                 flex-grow: 1;
130                 display: flex;
131                 flex-direction: column;
132                 gap: 10px;
133
134                 @media screen and (max-width: 700px) {
135                     p {
136                         font-size: .9em;
137                     }
138                 }
139
140                 .text {
141                     background: #edc016;
142                     padding: 1em;
143                     border: 3px solid black;
144                 }
145                 a {
146                     color: #c32721;
147                 }
148                 .state-box {
149                     display: flex;
150                     gap: 10px;
151                     align-items: center;
152                     @media screen and (max-width: 700px) {
153                         flex-direction: column;
154                         align-items: stretch;
155                         text-align: center;
156                     }
157                     .progress-box {
158                         flex-grow: 1;
159
160                         .l-checkout__support__bar span::after {
161                             color: black;
162                         }
163                     }
164                     .time-box {
165                         width: 110px;
166                         margin: auto;
167                     }
168                     .countdown {
169                         margin: 0;
170                     }
171                 }
172             }
173
174             p {
175                 margin: 0;
176             }
177
178             a.action {
179                 background: #edc016;
180                 color: black;
181                 padding: .8em 1em;
182                 border: 3px solid black;
183                 border-radius: 10px;
184                 display: block;
185                 transition: background-color .2s;
186
187                 &:hover {
188                     background: #ffd430;
189                     text-decoration: none;
190                 }
191             }
192         }
193     }
194     &.annoy-banner-style_crisis_quiet {
195         background: black;
196         color: white;
197         .annoy-banner-inner {
198             align-items: center;
199
200             .text-box {
201                 .text {
202                     background: none;
203                     padding: 0;
204                     border: none;
205                     a {
206                         color: #ffd430;
207                     }
208                 }
209             }
210         }
211     }
212 }