PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.1.0
Pay with Vipps and MobilePay for WooCommerce v6.1.0
6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 5.4.1 5.4.0 5.3.4 trunk All 183 releases
woo-vipps / payment / css / vipps.css

vipps.css in Pay with Vipps and MobilePay for WooCommerce 6.1.0, at payment/css/vipps.css

530 lines 12.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2
3 This file is part of the plugin Pay with Vipps and MobilePay for WooCommerce
4 Copyright (c) 2019 WP-Hosting AS
5
6 MIT License
7
8 Copyright (c) 2019 WP-Hosting AS
9
10 Permission is hereby granted, free of charge, to any person obtaining a copy
11 of this software and associated documentation files (the "Software"), to deal
12 in the Software without restriction, including without limitation the rights
13 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 copies of the Software, and to permit persons to whom the Software is
15 furnished to do so, subject to the following conditions:
16
17 The above copyright notice and this permission notice shall be included in all
18 copies or substantial portions of the Software.
19
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 SOFTWARE.
27 */
28
29 /* An unfortunate interaction with Woos product image gallery can make the normal 100% width badges break on smaller screens. This adds
30 a small failsafe. IOK 2026-03-25 */
31 vipps-mobilepay-badge {
32 width: 90vw;
33 }
34
35
36 /* Vipps Checkout Widgets */
37 .vipps_checkout_widget_wrapper {
38 width: 100%;
39 display:flex;
40 flex-direction:column;
41 align-items:center;
42 font-family: "Vipps Text", Arial, sans-serif;
43 margin-bottom: 1rem;
44 color: black;
45 }
46 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title {
47 font-size:18px;
48 line-height:24px;
49 font-weight:500;
50 color: black;
51 }
52 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title.accordion {
53 cursor: pointer;
54 transition: 0.4s,
55 }
56 .vipps_checkout_widget_title.active .vipps_checkout_widget_icon::before {
57 content: "\2212";
58 }
59 .vipps_checkout_widget_title .vipps_checkout_widget_icon::before {
60 content: "\002B";
61 }
62 .vipps_checkout_widget_title .vipps_checkout_widget_icon {
63 font-size: 1.5rem;
64 }
65 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title .vipps_checkout_widget_icon{
66 float: right;
67 width: 24px;
68 text-align: center;
69 }
70 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
71 width: 100%;
72 font-weight:400;
73 border-bottom: 1px solid lightgrey;
74 }
75 @media (min-width: 590px) {
76 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
77 width: 586px;
78 }
79 }
80
81 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_body {
82 display: none;
83 }
84 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input {
85 height: 56px;
86 width: 100%;
87 padding: 12px 15px;
88 font-size: 16px;
89 border: 1px solid #ddd;
90 border-radius: 6px;
91 box-sizing: border-box;
92 outline: none;
93 margin: 0px;
94 }
95 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_button {
96 min-width: 5.5em;
97 padding: 7.5px 16px;
98 font-size: 14px;
99 line-height:20px;
100 text-transform: none;
101 border-radius: 24px;
102 color: white;
103 margin-top: 0.5em;
104 margin-bottom: 0.5em;
105 font-family: "Vipps Text", Arial, sans-serif;
106 font-weight: bold;
107 cursor: pointer;
108 border: none;
109 }
110 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_small {
111 font-size: 14px;
112 font-weight: bold;
113 }
114 .vipps_checkout_widget_wrapper .vipps_checkout_widget:not(:last-child) {
115 margin: 1rem;
116 }
117 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
118 padding-bottom: .8rem;
119 }
120 #vipps_checkout_widget_coupon_active_codes_container_codes {
121 display: flex;
122 flex-wrap: wrap;
123 gap: 1em;
124 }
125 .vipps_checkout_widget_coupon_active_code_box {
126 display: flex;
127 align-items: center;
128 background-color: #f0f0f2;
129 padding: 8px 12px;
130 margin-top: 0.2em;
131 max-width: fit-content;
132 border-radius: 4px;
133 gap: 0.5em;
134 }
135 .vipps_checkout_widget_coupon_delete {
136 display: flex;
137 justify-content: center;
138 align-items: center;
139 width: 20px;
140 height: 20px;
141 border-radius: 50%;
142 background-color: #000;
143 color: white;
144 font-size: 12px;
145 cursor: pointer;
146 text-decoration: none;
147 }
148 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input.error {
149 border-color: #C60000;
150 }
151 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input.success {
152 border-color: #048a1a;
153 }
154 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_error {
155 color: #C60000;
156 }
157 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_success {
158 color: #048a1a;
159 }
160 @media (min-width: 720px) {
161 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
162 width: 624px;
163 }
164 }
165
166
167 form#vippsdata {
168 margin:0;
169 }
170 h2.confirmVippsExpressCheckoutHeader {
171 margin-top: 0;
172 }
173
174 li.wc_payment_method.payment_method_vipps img {
175 max-width: 145px;
176 }
177
178 .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_vipps img {
179 margin-top:.5rem;
180 float: right;
181 }
182 .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_vipps_card img {
183 height: 3.5rem;
184 float:right;
185 }
186
187 a.button.vipps-buy-now:focus {
188 outline: none;
189 }
190 .wc-block-grid__products .wc-block-grid__product .wp-block-button__link.vipps-buy-now, .woocommerce ul.products li.product .button.vipps-buy-now, a.button.vipps-buy-now {
191 color: #fff;
192 background-color:transparent;
193 }
194 .wc-block-grid__products .wc-block-grid__product .wp-block-button__link.vipps-buy-now:hover, .woocommerce ul.products li.product .button.vipps-buy-now:hover, a.button.vipps-buy-now:hover {
195 opacity: 0.9;
196 }
197
198 body .widget_shopping_cart a.button.vipps-express-checkout, body .widget_shopping_cart a.button.vipps-express-checkout:hover {
199 color:transparent;
200 border:0;
201 background-color: transparent;
202 float: none;
203 margin-top: .5em;
204 margin-bottom: 0;
205 margin-left: auto;
206 margin-right: auto;
207 clear: both;
208 }
209
210 /* This is for a plugin I'm doing testing with. */
211 .woocommerce-cart-tab-container .widget_shopping_cart a.button.vipps-express-checkout {
212 min-width: 190px;
213 }
214
215 .vippslogincontainer {
216 width: 100%;
217 text-align: center;
218 }
219
220 a.button.vipps-login {
221 vertical-align: bottom;
222 max-width: 250px;
223 color:transparent;
224 background-color: #fff;
225 margin: 1em auto;
226 min-width: 190px;
227 clear: both;
228 padding:0;
229 }
230
231 /* Displays a 'vipps' information banner */
232 .woocommerce-info.vipps-info {
233 background-color: #fe5b24;
234 border-color: #fe5b24;
235 color: white;
236 }
237 .woocommerce-info.vipps-info a {
238 color: white;
239 }
240 .woocommerce-info.vipps-info::before {
241 color: white;
242 background-color: #fe5b24;
243 border-color: #fe5b24;
244 }
245 .woocommerce-info.vipps-info img.express-banner-logo {
246 height:2ex;
247 max-height:2ex;
248 width:auto;
249 }
250 .woocommerce-info.mobilepay-info img.express-banner-logo {
251 height:2ex;
252 max-height:2ex;
253 width:auto;
254 }
255 .woocommerce-info.mobilepay-info {
256 background-color: #5a78ff;
257 border-color: #5a78ff;
258 color: white;
259 }
260 .woocommerce-info.mobilepay-info::before {
261 color: white;
262 background-color: #5a78ff;
263 border-color: #5a78ff;
264 }
265 .woocommerce-info.mobilepay-info a{
266 color: white;
267 }
268
269
270 .express-banner-logo {
271 margin-left: 1ex;
272 margin-right: 1ex;
273 vertical-align: middle;
274 }
275 img.inline {
276 height: 2ex;
277 display:inline;
278 }
279
280 .vipps-buy-now {
281 padding-left: 0;
282 padding-right: 0;
283 }
284 .vipps_buy_now_wrapper.noloop {
285 margin-top: .5rem;
286 }
287 .wp-block-woo-vipps-buy-now-cart.wc-block-button-vipps {
288 margin-bottom: .5rem;
289 }
290
291 .vippsorange {
292 background-color: #fe5b24;
293 }
294 .vippsorange-light {
295 background-color: #fff4ec;
296 }
297 .vippspurple {
298 background-color: #551488;
299 }
300 .vippspurple2 {
301 background-color: #5E3DC2;
302 }
303 .vippspurple-light {
304 background-color: #8851F6;
305 }
306 .vippsdarkgray {
307 background-color: #161225;
308 }
309
310 /* New express section for woo legacy (shortcode) checkout. LP 2026-03-23 */
311 .legacy-checkout.vipps-express-checkout {
312 max-width: 20rem;
313 box-sizing: border-box;
314 border: 1px solid lightgrey;
315 border-radius: 4px;
316 min-inline-size: 0;
317 padding: 1.1rem 1.7rem;
318 margin: 1rem auto;
319 text-align: center;
320 }
321 .legacy-checkout.vipps-express-checkout .express-header {
322 display: table;
323 margin: 0 auto;
324 padding: 0 0.75rem;
325 line-height: 1;
326 font-size: var(--wp--preset--font-size--small);
327 }
328
329 .vipps_checkout_button_wrapper {
330 margin-top: 1rem;
331 margin-bottom: 1rem;
332 }
333
334 .vippsspinner {
335 width:125px;
336 height:125px;
337 display: none;
338 position:absolute;
339 top:50%;
340 left:50%;
341 margin-left: -62px;
342 margin-top: -62px;
343 transform:scale(0.6);
344 -o-transform:scale(0.6);
345 -ms-transform:scale(0.6);
346 -webkit-transform:scale(0.6);
347 -moz-transform:scale(0.6);
348 }
349
350 .vippsoverlay {
351 background: #e9e9e9;
352 position:fixed;
353 display: none;
354 top: 0;
355 right: 0;
356 bottom: 0;
357 left: 0;
358 max-width:100%;
359 width:100%;
360 opacity: 0.5;
361 z-index: 1000;
362 }
363 body.processing {
364 cursor: progress;
365 }
366 .processing .vippsoverlay {
367 display:block;
368 }
369 .processing .vippsspinner {
370 display:block;
371 }
372
373 .vippsspinner {
374 --oncolor: rgba(254,90,36,0.97);
375 }
376 .vippsspinner.mobilepay {
377 --oncolor: rgba(90, 120, 255, 0.97);
378 }
379
380 .f_circleG{
381 position:absolute;
382 background-color:rgb(255,255,255);
383 height:22px;
384 width:22px;
385 border-radius:12px;
386 -o-border-radius:12px;
387 -ms-border-radius:12px;
388 -webkit-border-radius:12px;
389 -moz-border-radius:12px;
390 animation-name:f_fadeG;
391 -o-animation-name:f_fadeG;
392 -ms-animation-name:f_fadeG;
393 -webkit-animation-name:f_fadeG;
394 -moz-animation-name:f_fadeG;
395 animation-duration:1.2s;
396 -o-animation-duration:1.2s;
397 -ms-animation-duration:1.2s;
398 -webkit-animation-duration:1.2s;
399 -moz-animation-duration:1.2s;
400 animation-iteration-count:infinite;
401 -o-animation-iteration-count:infinite;
402 -ms-animation-iteration-count:infinite;
403 -webkit-animation-iteration-count:infinite;
404 -moz-animation-iteration-count:infinite;
405 animation-direction:normal;
406 -o-animation-direction:normal;
407 -ms-animation-direction:normal;
408 -webkit-animation-direction:normal;
409 -moz-animation-direction:normal;
410 }
411 #frotateG_01{
412 left:0;
413 top:51px;
414 animation-delay:0.45s;
415 -o-animation-delay:0.45s;
416 -ms-animation-delay:0.45s;
417 -webkit-animation-delay:0.45s;
418 -moz-animation-delay:0.45s;
419 }
420 #frotateG_02{
421 left:15px;
422 top:15px;
423 animation-delay:0.6s;
424 -o-animation-delay:0.6s;
425 -ms-animation-delay:0.6s;
426 -webkit-animation-delay:0.6s;
427 -moz-animation-delay:0.6s;
428 }
429 #frotateG_03{
430 left:51px;
431 top:0;
432 animation-delay:0.75s;
433 -o-animation-delay:0.75s;
434 -ms-animation-delay:0.75s;
435 -webkit-animation-delay:0.75s;
436 -moz-animation-delay:0.75s;
437 }
438 #frotateG_04{
439 right:15px;
440 top:15px;
441 animation-delay:0.9s;
442 -o-animation-delay:0.9s;
443 -ms-animation-delay:0.9s;
444 -webkit-animation-delay:0.9s;
445 -moz-animation-delay:0.9s;
446 }
447 #frotateG_05{
448 right:0;
449 top:51px;
450 animation-delay:1.05s;
451 -o-animation-delay:1.05s;
452 -ms-animation-delay:1.05s;
453 -webkit-animation-delay:1.05s;
454 -moz-animation-delay:1.05s;
455 }
456 #frotateG_06{
457 right:15px;
458 bottom:15px;
459 animation-delay:1.2s;
460 -o-animation-delay:1.2s;
461 -ms-animation-delay:1.2s;
462 -webkit-animation-delay:1.2s;
463 -moz-animation-delay:1.2s;
464 }
465 #frotateG_07{
466 left:51px;
467 bottom:0;
468 animation-delay:1.35s;
469 -o-animation-delay:1.35s;
470 -ms-animation-delay:1.35s;
471 -webkit-animation-delay:1.35s;
472 -moz-animation-delay:1.35s;
473 }
474 #frotateG_08{
475 left:15px;
476 bottom:15px;
477 animation-delay:1.5s;
478 -o-animation-delay:1.5s;
479 -ms-animation-delay:1.5s;
480 -webkit-animation-delay:1.5s;
481 -moz-animation-delay:1.5s;
482 }
483 @keyframes f_fadeG{
484 0%{
485 background-color:rgba(254,90,36,0.97);
486 background-color: var(--oncolor);
487 }
488 100%{
489 background-color:rgb(255,255,255);
490 }
491 }
492 @-o-keyframes f_fadeG{
493 0%{
494 background-color:rgba(254,90,36,0.97);
495 background-color: var(--oncolor);
496 }
497 100%{
498 background-color:rgb(255,255,255);
499 }
500 }
501 @-ms-keyframes f_fadeG{
502 0%{
503 background-color:rgba(254,90,36,0.97);
504 background-color: var(--oncolor);
505 }
506 100%{
507 background-color:rgb(255,255,255);
508 }
509 }
510 @-webkit-keyframes f_fadeG{
511 0%{
512 background-color:rgba(254,90,36,0.97);
513 background-color: var(--oncolor);
514 }
515
516 100%{
517 background-color:rgb(255,255,255);
518 }
519 }
520 @-moz-keyframes f_fadeG{
521 0%{
522 background-color:rgba(254,90,36,0.97);
523 background-color: var(--oncolor);
524 }
525
526 100%{
527 background-color:rgb(255,255,255);
528 }
529 }
530