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