PluginProbe
Pay with Vipps and MobilePay for WooCommerce / trunk
Pay with Vipps and MobilePay for WooCommerce vtrunk
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 1.10.0 All 182 releases
woo-vipps / payment / css / vipps.css

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

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