PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.2.5
Pay with Vipps and MobilePay for WooCommerce v6.2.5
6.2.5 6.2.4 6.2.3 6.2.2 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 All 187 releases
woo-vipps / payment / css / vipps.css

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

549 lines 13.7 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 /* Avoid having the new web component button get outlined IOK 2026-08-07 */
36 vipps-mobilepay-button:focus,
37 vipps-mobilepay-button:focus-visible {
38 outline: none;
39 }
40
41 /* Make the express button in checkout match other buttons; aiming for 48px IOK 2026-09-24
42 * (https://developer.woocommerce.com/docs/features/payments/ux-guidelines/payment-button-size/?utm_source=chatgpt.com#layout-and-spacing) */
43 .wc-block-components-express-payment--checkout #express-payment-method-vippsexpress div.vipps-express-container {
44 scale: calc(48 / 44);
45 transform-origin: top left;
46 width: calc(100%*44/48);
47 }
48 /* And in the cart. */
49 .wc-block-components-express-payment--cart #express-payment-method-vippsexpress div.vipps-express-container {
50 scale: calc(48 / 44);
51 transform-origin: top left;
52 width: calc(100%*44/48);
53 }
54
55 /* Vipps Checkout Widgets */
56 .vipps_checkout_widget_wrapper {
57 width: 100%;
58 display:flex;
59 flex-direction:column;
60 align-items:center;
61 font-family: "Vipps Text", Arial, sans-serif;
62 margin-bottom: 1rem;
63 color: black;
64 }
65 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title {
66 font-size:18px;
67 line-height:24px;
68 font-weight:500;
69 color: black;
70 }
71 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title.accordion {
72 cursor: pointer;
73 transition: 0.4s,
74 }
75 .vipps_checkout_widget_title.active .vipps_checkout_widget_icon::before {
76 content: "\2212";
77 }
78 .vipps_checkout_widget_title .vipps_checkout_widget_icon::before {
79 content: "\002B";
80 }
81 .vipps_checkout_widget_title .vipps_checkout_widget_icon {
82 font-size: 1.5rem;
83 }
84 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_title .vipps_checkout_widget_icon{
85 float: right;
86 width: 24px;
87 text-align: center;
88 }
89 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
90 width: 100%;
91 font-weight:400;
92 border-bottom: 1px solid lightgrey;
93 }
94 @media (min-width: 590px) {
95 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
96 width: 586px;
97 }
98 }
99
100 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_body {
101 display: none;
102 }
103 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input {
104 height: 56px;
105 width: 100%;
106 padding: 12px 15px;
107 font-size: 16px;
108 border: 1px solid #ddd;
109 border-radius: 6px;
110 box-sizing: border-box;
111 outline: none;
112 margin: 0px;
113 }
114 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_button {
115 min-width: 5.5em;
116 padding: 7.5px 16px;
117 font-size: 14px;
118 line-height:20px;
119 text-transform: none;
120 border-radius: 24px;
121 color: white;
122 margin-top: 0.5em;
123 margin-bottom: 0.5em;
124 font-family: "Vipps Text", Arial, sans-serif;
125 font-weight: bold;
126 cursor: pointer;
127 border: none;
128 }
129 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_small {
130 font-size: 14px;
131 font-weight: bold;
132 }
133 .vipps_checkout_widget_wrapper .vipps_checkout_widget:not(:last-child) {
134 margin: 1rem;
135 }
136 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
137 padding-bottom: .8rem;
138 }
139 #vipps_checkout_widget_coupon_active_codes_container_codes {
140 display: flex;
141 flex-wrap: wrap;
142 gap: 1em;
143 }
144 .vipps_checkout_widget_coupon_active_code_box {
145 display: flex;
146 align-items: center;
147 background-color: #f0f0f2;
148 padding: 8px 12px;
149 margin-top: 0.2em;
150 max-width: fit-content;
151 border-radius: 4px;
152 gap: 0.5em;
153 }
154 .vipps_checkout_widget_coupon_delete {
155 display: flex;
156 justify-content: center;
157 align-items: center;
158 width: 20px;
159 height: 20px;
160 border-radius: 50%;
161 background-color: #000;
162 color: white;
163 font-size: 12px;
164 cursor: pointer;
165 text-decoration: none;
166 }
167 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input.error {
168 border-color: #C60000;
169 }
170 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_input.success {
171 border-color: #048a1a;
172 }
173 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_error {
174 color: #C60000;
175 }
176 .vipps_checkout_widget_wrapper .vipps_checkout_widget .vipps_checkout_widget_success {
177 color: #048a1a;
178 }
179 @media (min-width: 720px) {
180 .vipps_checkout_widget_wrapper .vipps_checkout_widget {
181 width: 624px;
182 }
183 }
184
185
186 form#vippsdata {
187 margin:0;
188 }
189 h2.confirmVippsExpressCheckoutHeader {
190 margin-top: 0;
191 }
192
193 li.wc_payment_method.payment_method_vipps img {
194 max-width: 145px;
195 }
196
197 .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_vipps img {
198 margin-top:.5rem;
199 float: right;
200 }
201 .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_vipps_card img {
202 height: 3.5rem;
203 float:right;
204 }
205
206 a.button.vipps-buy-now:focus {
207 outline: none;
208 }
209 .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 {
210 color: #fff;
211 background-color:transparent;
212 }
213 .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 {
214 opacity: 0.9;
215 }
216
217 body .widget_shopping_cart a.button.vipps-express-checkout, body .widget_shopping_cart a.button.vipps-express-checkout:hover {
218 color:transparent;
219 border:0;
220 background-color: transparent;
221 float: none;
222 margin-top: .5em;
223 margin-bottom: 0;
224 margin-left: auto;
225 margin-right: auto;
226 clear: both;
227 }
228
229 /* This is for a plugin I'm doing testing with. */
230 .woocommerce-cart-tab-container .widget_shopping_cart a.button.vipps-express-checkout {
231 min-width: 190px;
232 }
233
234 .vippslogincontainer {
235 width: 100%;
236 text-align: center;
237 }
238
239 a.button.vipps-login {
240 vertical-align: bottom;
241 max-width: 250px;
242 color:transparent;
243 background-color: #fff;
244 margin: 1em auto;
245 min-width: 190px;
246 clear: both;
247 padding:0;
248 }
249
250 /* Displays a 'vipps' information banner */
251 .woocommerce-info.vipps-info {
252 background-color: #fe5b24;
253 border-color: #fe5b24;
254 color: white;
255 }
256 .woocommerce-info.vipps-info a {
257 color: white;
258 }
259 .woocommerce-info.vipps-info::before {
260 color: white;
261 background-color: #fe5b24;
262 border-color: #fe5b24;
263 }
264 .woocommerce-info.vipps-info img.express-banner-logo {
265 height:2ex;
266 max-height:2ex;
267 width:auto;
268 }
269 .woocommerce-info.mobilepay-info img.express-banner-logo {
270 height:2ex;
271 max-height:2ex;
272 width:auto;
273 }
274 .woocommerce-info.mobilepay-info {
275 background-color: #5a78ff;
276 border-color: #5a78ff;
277 color: white;
278 }
279 .woocommerce-info.mobilepay-info::before {
280 color: white;
281 background-color: #5a78ff;
282 border-color: #5a78ff;
283 }
284 .woocommerce-info.mobilepay-info a{
285 color: white;
286 }
287
288
289 .express-banner-logo {
290 margin-left: 1ex;
291 margin-right: 1ex;
292 vertical-align: middle;
293 }
294 img.inline {
295 height: 2ex;
296 display:inline;
297 }
298
299 .vipps-buy-now {
300 padding-left: 0;
301 padding-right: 0;
302 }
303 .vipps_buy_now_wrapper.noloop {
304 margin-top: .5rem;
305 }
306 .wp-block-woo-vipps-buy-now-cart.wc-block-button-vipps {
307 margin-bottom: .5rem;
308 }
309
310 .vippsorange {
311 background-color: #fe5b24;
312 }
313 .vippsorange-light {
314 background-color: #fff4ec;
315 }
316 .vippspurple {
317 background-color: #551488;
318 }
319 .vippspurple2 {
320 background-color: #5E3DC2;
321 }
322 .vippspurple-light {
323 background-color: #8851F6;
324 }
325 .vippsdarkgray {
326 background-color: #161225;
327 }
328
329 /* New express section for woo legacy (shortcode) checkout. LP 2026-03-23 */
330 .legacy-checkout.vipps-express-checkout {
331 max-width: 20rem;
332 box-sizing: border-box;
333 border: 1px solid lightgrey;
334 border-radius: 4px;
335 min-inline-size: 0;
336 padding: 1.1rem 1.7rem;
337 margin: 1rem auto;
338 text-align: center;
339 }
340 .legacy-checkout.vipps-express-checkout .express-header {
341 display: table;
342 margin: 0 auto;
343 padding: 0 0.75rem;
344 line-height: 1;
345 font-size: var(--wp--preset--font-size--small);
346 }
347
348 .vipps_checkout_button_wrapper {
349 margin-top: 1rem;
350 margin-bottom: 1rem;
351 }
352
353 .vippsspinner {
354 width:125px;
355 height:125px;
356 display: none;
357 position:absolute;
358 top:50%;
359 left:50%;
360 margin-left: -62px;
361 margin-top: -62px;
362 transform:scale(0.6);
363 -o-transform:scale(0.6);
364 -ms-transform:scale(0.6);
365 -webkit-transform:scale(0.6);
366 -moz-transform:scale(0.6);
367 }
368
369 .vippsoverlay {
370 background: #e9e9e9;
371 position:fixed;
372 display: none;
373 top: 0;
374 right: 0;
375 bottom: 0;
376 left: 0;
377 max-width:100%;
378 width:100%;
379 opacity: 0.5;
380 z-index: 1000;
381 }
382 body.processing {
383 cursor: progress;
384 }
385 .processing .vippsoverlay {
386 display:block;
387 }
388 .processing .vippsspinner {
389 display:block;
390 }
391
392 .vippsspinner {
393 --oncolor: rgba(254,90,36,0.97);
394 }
395 .vippsspinner.mobilepay {
396 --oncolor: rgba(90, 120, 255, 0.97);
397 }
398
399 .f_circleG{
400 position:absolute;
401 background-color:rgb(255,255,255);
402 height:22px;
403 width:22px;
404 border-radius:12px;
405 -o-border-radius:12px;
406 -ms-border-radius:12px;
407 -webkit-border-radius:12px;
408 -moz-border-radius:12px;
409 animation-name:f_fadeG;
410 -o-animation-name:f_fadeG;
411 -ms-animation-name:f_fadeG;
412 -webkit-animation-name:f_fadeG;
413 -moz-animation-name:f_fadeG;
414 animation-duration:1.2s;
415 -o-animation-duration:1.2s;
416 -ms-animation-duration:1.2s;
417 -webkit-animation-duration:1.2s;
418 -moz-animation-duration:1.2s;
419 animation-iteration-count:infinite;
420 -o-animation-iteration-count:infinite;
421 -ms-animation-iteration-count:infinite;
422 -webkit-animation-iteration-count:infinite;
423 -moz-animation-iteration-count:infinite;
424 animation-direction:normal;
425 -o-animation-direction:normal;
426 -ms-animation-direction:normal;
427 -webkit-animation-direction:normal;
428 -moz-animation-direction:normal;
429 }
430 #frotateG_01{
431 left:0;
432 top:51px;
433 animation-delay:0.45s;
434 -o-animation-delay:0.45s;
435 -ms-animation-delay:0.45s;
436 -webkit-animation-delay:0.45s;
437 -moz-animation-delay:0.45s;
438 }
439 #frotateG_02{
440 left:15px;
441 top:15px;
442 animation-delay:0.6s;
443 -o-animation-delay:0.6s;
444 -ms-animation-delay:0.6s;
445 -webkit-animation-delay:0.6s;
446 -moz-animation-delay:0.6s;
447 }
448 #frotateG_03{
449 left:51px;
450 top:0;
451 animation-delay:0.75s;
452 -o-animation-delay:0.75s;
453 -ms-animation-delay:0.75s;
454 -webkit-animation-delay:0.75s;
455 -moz-animation-delay:0.75s;
456 }
457 #frotateG_04{
458 right:15px;
459 top:15px;
460 animation-delay:0.9s;
461 -o-animation-delay:0.9s;
462 -ms-animation-delay:0.9s;
463 -webkit-animation-delay:0.9s;
464 -moz-animation-delay:0.9s;
465 }
466 #frotateG_05{
467 right:0;
468 top:51px;
469 animation-delay:1.05s;
470 -o-animation-delay:1.05s;
471 -ms-animation-delay:1.05s;
472 -webkit-animation-delay:1.05s;
473 -moz-animation-delay:1.05s;
474 }
475 #frotateG_06{
476 right:15px;
477 bottom:15px;
478 animation-delay:1.2s;
479 -o-animation-delay:1.2s;
480 -ms-animation-delay:1.2s;
481 -webkit-animation-delay:1.2s;
482 -moz-animation-delay:1.2s;
483 }
484 #frotateG_07{
485 left:51px;
486 bottom:0;
487 animation-delay:1.35s;
488 -o-animation-delay:1.35s;
489 -ms-animation-delay:1.35s;
490 -webkit-animation-delay:1.35s;
491 -moz-animation-delay:1.35s;
492 }
493 #frotateG_08{
494 left:15px;
495 bottom:15px;
496 animation-delay:1.5s;
497 -o-animation-delay:1.5s;
498 -ms-animation-delay:1.5s;
499 -webkit-animation-delay:1.5s;
500 -moz-animation-delay:1.5s;
501 }
502 @keyframes f_fadeG{
503 0%{
504 background-color:rgba(254,90,36,0.97);
505 background-color: var(--oncolor);
506 }
507 100%{
508 background-color:rgb(255,255,255);
509 }
510 }
511 @-o-keyframes f_fadeG{
512 0%{
513 background-color:rgba(254,90,36,0.97);
514 background-color: var(--oncolor);
515 }
516 100%{
517 background-color:rgb(255,255,255);
518 }
519 }
520 @-ms-keyframes f_fadeG{
521 0%{
522 background-color:rgba(254,90,36,0.97);
523 background-color: var(--oncolor);
524 }
525 100%{
526 background-color:rgb(255,255,255);
527 }
528 }
529 @-webkit-keyframes f_fadeG{
530 0%{
531 background-color:rgba(254,90,36,0.97);
532 background-color: var(--oncolor);
533 }
534
535 100%{
536 background-color:rgb(255,255,255);
537 }
538 }
539 @-moz-keyframes f_fadeG{
540 0%{
541 background-color:rgba(254,90,36,0.97);
542 background-color: var(--oncolor);
543 }
544
545 100%{
546 background-color:rgb(255,255,255);
547 }
548 }
549