| 1 |
/* |
| 2 |
* Generates helpers. |
| 3 |
* |
| 4 |
* The key of the outer map is the base property. |
| 5 |
* |
| 6 |
* alias Will be used in the class instead of the full property if set. |
| 7 |
* variants Simple values. |
| 8 |
* directionVariants Values that will be set for left, top, right and bottom. |
| 9 |
*/ |
| 10 |
.wcpn__d--none { |
| 11 |
display: none !important; |
| 12 |
} |
| 13 |
.wcpn__d--block { |
| 14 |
display: block !important; |
| 15 |
} |
| 16 |
.wcpn__d--inline-block { |
| 17 |
display: inline-block !important; |
| 18 |
} |
| 19 |
.wcpn__d--flex { |
| 20 |
display: -ms-flexbox !important; |
| 21 |
display: flex !important; |
| 22 |
} |
| 23 |
.wcpn__m--auto { |
| 24 |
margin: auto !important; |
| 25 |
} |
| 26 |
.wcpn__ml--0 { |
| 27 |
margin-left: 0 !important; |
| 28 |
} |
| 29 |
.wcpn__ml--1 { |
| 30 |
margin-left: 0.25em !important; |
| 31 |
} |
| 32 |
.wcpn__ml--2 { |
| 33 |
margin-left: 0.5em !important; |
| 34 |
} |
| 35 |
.wcpn__ml--3 { |
| 36 |
margin-left: 0.75em !important; |
| 37 |
} |
| 38 |
.wcpn__mt--0 { |
| 39 |
margin-top: 0 !important; |
| 40 |
} |
| 41 |
.wcpn__mt--1 { |
| 42 |
margin-top: 0.25em !important; |
| 43 |
} |
| 44 |
.wcpn__mt--2 { |
| 45 |
margin-top: 0.5em !important; |
| 46 |
} |
| 47 |
.wcpn__mt--3 { |
| 48 |
margin-top: 0.75em !important; |
| 49 |
} |
| 50 |
.wcpn__mr--0 { |
| 51 |
margin-right: 0 !important; |
| 52 |
} |
| 53 |
.wcpn__mr--1 { |
| 54 |
margin-right: 0.25em !important; |
| 55 |
} |
| 56 |
.wcpn__mr--2 { |
| 57 |
margin-right: 0.5em !important; |
| 58 |
} |
| 59 |
.wcpn__mr--3 { |
| 60 |
margin-right: 0.75em !important; |
| 61 |
} |
| 62 |
.wcpn__mb--0 { |
| 63 |
margin-bottom: 0 !important; |
| 64 |
} |
| 65 |
.wcpn__mb--1 { |
| 66 |
margin-bottom: 0.25em !important; |
| 67 |
} |
| 68 |
.wcpn__mb--2 { |
| 69 |
margin-bottom: 0.5em !important; |
| 70 |
} |
| 71 |
.wcpn__mb--3 { |
| 72 |
margin-bottom: 0.75em !important; |
| 73 |
} |
| 74 |
.wcpn__pl--0 { |
| 75 |
padding-left: 0 !important; |
| 76 |
} |
| 77 |
.wcpn__pl--1 { |
| 78 |
padding-left: 0.25em !important; |
| 79 |
} |
| 80 |
.wcpn__pl--2 { |
| 81 |
padding-left: 0.5em !important; |
| 82 |
} |
| 83 |
.wcpn__pl--3 { |
| 84 |
padding-left: 0.75em !important; |
| 85 |
} |
| 86 |
.wcpn__pt--0 { |
| 87 |
padding-top: 0 !important; |
| 88 |
} |
| 89 |
.wcpn__pt--1 { |
| 90 |
padding-top: 0.25em !important; |
| 91 |
} |
| 92 |
.wcpn__pt--2 { |
| 93 |
padding-top: 0.5em !important; |
| 94 |
} |
| 95 |
.wcpn__pt--3 { |
| 96 |
padding-top: 0.75em !important; |
| 97 |
} |
| 98 |
.wcpn__pr--0 { |
| 99 |
padding-right: 0 !important; |
| 100 |
} |
| 101 |
.wcpn__pr--1 { |
| 102 |
padding-right: 0.25em !important; |
| 103 |
} |
| 104 |
.wcpn__pr--2 { |
| 105 |
padding-right: 0.5em !important; |
| 106 |
} |
| 107 |
.wcpn__pr--3 { |
| 108 |
padding-right: 0.75em !important; |
| 109 |
} |
| 110 |
.wcpn__pb--0 { |
| 111 |
padding-bottom: 0 !important; |
| 112 |
} |
| 113 |
.wcpn__pb--1 { |
| 114 |
padding-bottom: 0.25em !important; |
| 115 |
} |
| 116 |
.wcpn__pb--2 { |
| 117 |
padding-bottom: 0.5em !important; |
| 118 |
} |
| 119 |
.wcpn__pb--3 { |
| 120 |
padding-bottom: 0.75em !important; |
| 121 |
} |
| 122 |
.wcpn__ws--nowrap { |
| 123 |
white-space: nowrap !important; |
| 124 |
} |
| 125 |
.wcpn__text--left { |
| 126 |
text-align: left !important; |
| 127 |
} |
| 128 |
.wcpn__text--top { |
| 129 |
text-align: top !important; |
| 130 |
} |
| 131 |
.wcpn__text--right { |
| 132 |
text-align: right !important; |
| 133 |
} |
| 134 |
.wcpn__text--bottom { |
| 135 |
text-align: bottom !important; |
| 136 |
} |
| 137 |
|
| 138 |
.widefat .column-wc_actions .wcpn__action.button, .wcpn__action.button { |
| 139 |
width: auto; |
| 140 |
border-color: #0f5c47; |
| 141 |
display: -ms-inline-flexbox; |
| 142 |
display: inline-flex; |
| 143 |
padding: 0 0.25em !important; |
| 144 |
} |
| 145 |
.widefat .column-wc_actions .wcpn__action.button:focus, .wcpn__action.button:focus { |
| 146 |
border-color: #168869; |
| 147 |
color: #168869; |
| 148 |
box-shadow: 0 0 0 1px #168869; |
| 149 |
} |
| 150 |
.widefat .column-wc_actions .wcpn__action.button img, .wcpn__action.button img { |
| 151 |
width: 18px; |
| 152 |
} |
| 153 |
|
| 154 |
/* |
| 155 |
* Shipment overview: Print offset dialog |
| 156 |
*/ |
| 157 |
.wcpn__offset-dialog { |
| 158 |
position: absolute; |
| 159 |
} |
| 160 |
.wcpn__offset-dialog__icon { |
| 161 |
-ms-flex: 0; |
| 162 |
flex: 0; |
| 163 |
height: 40px; |
| 164 |
} |
| 165 |
.wcpn__offset-dialog p { |
| 166 |
-ms-flex: 1; |
| 167 |
flex: 1; |
| 168 |
margin: auto; |
| 169 |
} |
| 170 |
.wcpn__offset-dialog input { |
| 171 |
margin-top: 0 !important; |
| 172 |
} |
| 173 |
|
| 174 |
/* |
| 175 |
* Shipment options form styling |
| 176 |
*/ |
| 177 |
.wcpn__shipment-options-dialog { |
| 178 |
width: 28em; |
| 179 |
} |
| 180 |
.wcpn__shipment-options-dialog table { |
| 181 |
width: 100%; |
| 182 |
} |
| 183 |
.wcpn__shipment-options-dialog table, |
| 184 |
.wcpn__shipment-options-dialog select { |
| 185 |
font-size: 90%; |
| 186 |
} |
| 187 |
.wcpn__shipment-options-dialog select, |
| 188 |
.wcpn__shipment-options-dialog input { |
| 189 |
height: auto; |
| 190 |
padding: 0 8px !important; |
| 191 |
} |
| 192 |
.wcpn__shipment-options-dialog select, |
| 193 |
.wcpn__shipment-options-dialog input, |
| 194 |
.wcpn__shipment-options-dialog .form-row { |
| 195 |
margin: 0; |
| 196 |
} |
| 197 |
.wcpn__shipment-options-dialog td.wcpn_option_cost { |
| 198 |
width: 60px; |
| 199 |
text-align: right; |
| 200 |
font-weight: bold; |
| 201 |
} |
| 202 |
.wcpn__shipment-options-dialog a { |
| 203 |
color: inherit; |
| 204 |
text-decoration: none; |
| 205 |
} |
| 206 |
|
| 207 |
/* |
| 208 |
* Shipment summary (overview and single order) |
| 209 |
*/ |
| 210 |
.wcpn__shipment-summary { |
| 211 |
list-style: none; |
| 212 |
margin-right: 0.3em; |
| 213 |
} |
| 214 |
.wcpn__shipment-summary .delivery-date, |
| 215 |
.wcpn__shipment-summary .delivery-options { |
| 216 |
display: block; |
| 217 |
} |
| 218 |
.wcpn__shipment-summary li:before { |
| 219 |
content: "+"; |
| 220 |
margin-right: 4px; |
| 221 |
} |
| 222 |
.wcpn__shipment-summary__list { |
| 223 |
width: auto; |
| 224 |
} |
| 225 |
|
| 226 |
/* |
| 227 |
* Shipment overview |
| 228 |
*/ |
| 229 |
.wcpn__order__track-trace { |
| 230 |
word-break: break-all; |
| 231 |
} |
| 232 |
|
| 233 |
/* |
| 234 |
* Shipment overview: Track & Trace column |
| 235 |
*/ |
| 236 |
.wcpn__barcodes { |
| 237 |
overflow: hidden; |
| 238 |
text-overflow: ellipsis; |
| 239 |
white-space: nowrap; |
| 240 |
} |
| 241 |
|
| 242 |
.wcpn__box { |
| 243 |
background-color: white; |
| 244 |
border: 1px solid #ccc; |
| 245 |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); |
| 246 |
padding: 10px; |
| 247 |
position: absolute; |
| 248 |
z-index: 999; |
| 249 |
border-radius: 3px; |
| 250 |
} |
| 251 |
|
| 252 |
/* |
| 253 |
* Spinner |
| 254 |
*/ |
| 255 |
.wcpn__spinner { |
| 256 |
display: -ms-inline-flexbox; |
| 257 |
display: inline-flex; |
| 258 |
margin: auto; |
| 259 |
} |
| 260 |
|
| 261 |
.wcpn__spinner > img { |
| 262 |
width: 16px; |
| 263 |
display: none; |
| 264 |
} |
| 265 |
|
| 266 |
.wcpn__spinner--loading .wcpn__spinner__loading, |
| 267 |
.wcpn__spinner--success .wcpn__spinner__success, |
| 268 |
.wcpn__spinner--failed .wcpn__spinner__failed { |
| 269 |
margin-left: 4px; |
| 270 |
display: block !important; |
| 271 |
} |
| 272 |
|
| 273 |
.button > .wcpn__spinner { |
| 274 |
margin-left: 0; |
| 275 |
transition: all 0.3s ease; |
| 276 |
} |
| 277 |
|
| 278 |
.button + .wcpn__spinner, input + .wcpn__spinner { |
| 279 |
margin-left: 5px; |
| 280 |
margin-top: 5px; |
| 281 |
} |
| 282 |
|
| 283 |
.wcpn__bulk-spinner { |
| 284 |
margin-top: 6px; |
| 285 |
} |
| 286 |
|
| 287 |
.widefat .column-order_actions .column-wc_actions .wcpn__spinner { |
| 288 |
position: absolute; |
| 289 |
} |
| 290 |
|
| 291 |
.wcpn__spinner, |
| 292 |
.wcpn__shipment-options__save input { |
| 293 |
vertical-align: middle; |
| 294 |
} |
| 295 |
|
| 296 |
.wcpn__encircle { |
| 297 |
display: inline-block; |
| 298 |
text-decoration: none; |
| 299 |
border-radius: 50%; |
| 300 |
width: 10px; |
| 301 |
height: 10px; |
| 302 |
font-size: 10px; |
| 303 |
line-height: 10px; |
| 304 |
padding: 2px; |
| 305 |
border: 1px solid #666; |
| 306 |
color: #666; |
| 307 |
text-align: center; |
| 308 |
} |
| 309 |
|
| 310 |
/* |
| 311 |
* Track & Trace status |
| 312 |
*/ |
| 313 |
.wcpn__table--track-trace { |
| 314 |
width: 100%; |
| 315 |
margin-top: 10px; |
| 316 |
margin-bottom: 10px; |
| 317 |
border-collapse: collapse; |
| 318 |
} |
| 319 |
|
| 320 |
.wcpn__table--track-trace th { |
| 321 |
text-align: left; |
| 322 |
} |
| 323 |
|
| 324 |
.wcpn__table--track-trace th, |
| 325 |
.wcpn__table--track-trace td { |
| 326 |
vertical-align: top; |
| 327 |
padding: 5px 2px; |
| 328 |
border-bottom: 1px solid #ccc; |
| 329 |
} |
| 330 |
|
| 331 |
.wcpn__table--track-trace td.wcpn__td--create-label { |
| 332 |
vertical-align: middle; |
| 333 |
} |
| 334 |
|
| 335 |
/* |
| 336 |
* Bulk export options styling |
| 337 |
*/ |
| 338 |
.wcpn__bulk-options .wcpn_settings-table td { |
| 339 |
border: none; |
| 340 |
padding: 0 7px 2px !important; |
| 341 |
vertical-align: middle !important; |
| 342 |
} |
| 343 |
|
| 344 |
.wcpn__bulk-options td.ordercell { |
| 345 |
width: 60%; |
| 346 |
} |
| 347 |
|
| 348 |
.wcpn__bulk-options input[type=checkbox], input[type=radio] { |
| 349 |
margin-right: 8px; |
| 350 |
} |
| 351 |
|
| 352 |
.wcpn__bulk-options { |
| 353 |
width: 96%; |
| 354 |
margin: 10px auto; |
| 355 |
} |
| 356 |
|
| 357 |
.wcpn__bulk-options .wcpn__shipment-options__save { |
| 358 |
margin-top: 8px; |
| 359 |
float: right; |
| 360 |
} |
| 361 |
|
| 362 |
/* |
| 363 |
* Chosen delivery options styling |
| 364 |
*/ |
| 365 |
#order_data .delivery-options { |
| 366 |
margin-top: 10px; |
| 367 |
} |
| 368 |
|
| 369 |
#order_data .delivery-options strong { |
| 370 |
display: block; |
| 371 |
} |
| 372 |
|
| 373 |
/* |
| 374 |
* Delivery options |
| 375 |
*/ |
| 376 |
.wcpn_delivery_option_details { |
| 377 |
margin-top: 5px; |
| 378 |
} |
| 379 |
|
| 380 |
.wcpn_delivery_option_details td { |
| 381 |
padding: 0; |
| 382 |
} |
| 383 |
|
| 384 |
/* fix woocommerce column float */ |
| 385 |
@media only screen and (min-width: 1280px) { |
| 386 |
#order_data .order_data_column { |
| 387 |
max-width: 31% !important; |
| 388 |
} |
| 389 |
} |
| 390 |
/* Hide the "(optional)" spans on wcpn form labels in settings page and others*/ |
| 391 |
.wcpn label span.optional { |
| 392 |
display: none; |
| 393 |
} |
| 394 |
|
| 395 |
/* |
| 396 |
* WCPN Settings page |
| 397 |
*/ |
| 398 |
.woocommerce_page_wcpn_settings tr.wcpn__child { |
| 399 |
background: #e5e5e5; |
| 400 |
} |
| 401 |
|
| 402 |
.woocommerce_page_wcpn_settings table.form-table select, |
| 403 |
.woocommerce_page_wcpn_settings table.form-table input { |
| 404 |
height: auto; |
| 405 |
line-height: 1.8; |
| 406 |
} |
| 407 |
|
| 408 |
.woocommerce_page_wcpn_settings tr.wcpn__child * { |
| 409 |
font-size: 0.95em !important; |
| 410 |
} |
| 411 |
|
| 412 |
.woocommerce_page_wcpn_settings tr.wcpn__child th { |
| 413 |
padding-left: 10px; |
| 414 |
padding-left: 10px; |
| 415 |
} |
| 416 |
|
| 417 |
.woocommerce_page_wcpn_settings tr.wcpn__child td { |
| 418 |
padding-top: 5px; |
| 419 |
padding-bottom: 10px; |
| 420 |
} |
| 421 |
|
| 422 |
.woocommerce_page_wcpn_settings input, |
| 423 |
.woocommerce_page_wcpn_settings table.form-table .select2-container, |
| 424 |
.woocommerce_page_wcpn_settings select { |
| 425 |
max-width: 360px; |
| 426 |
} |
| 427 |
|
| 428 |
.woocommerce_page_wcpn_settings table.form-table .select2-container { |
| 429 |
min-width: auto !important; |
| 430 |
width: 100% !important; |
| 431 |
} |
| 432 |
|
| 433 |
.woocommerce_page_wcpn_settings table.form-table th { |
| 434 |
width: 280px; |
| 435 |
} |
| 436 |
|
| 437 |
.wcpn__close-button { |
| 438 |
cursor: pointer; |
| 439 |
} |
| 440 |
|
| 441 |
/* Toggle element */ |
| 442 |
.wcpn__toggle { |
| 443 |
cursor: pointer; |
| 444 |
} |
| 445 |
|
| 446 |
[data-disabled=true] .wcpn__toggle, |
| 447 |
[data-readonly=true] .wcpn__toggle { |
| 448 |
opacity: 65%; |
| 449 |
cursor: not-allowed; |
| 450 |
} |
| 451 |
|
| 452 |
/* Skeleton loader (Styles copied from Delivery Options) */ |
| 453 |
.wcpn__skeleton-loader { |
| 454 |
width: 100%; |
| 455 |
} |
| 456 |
|
| 457 |
.wcpn__skeleton-loader div { |
| 458 |
height: 1.5em; |
| 459 |
margin-top: 8px; |
| 460 |
animation: shimmer 2s infinite linear; |
| 461 |
background: rgba(0, 0, 0, 0.05) linear-gradient(to right, transparent 25%, rgba(0, 0, 0, 0.05) 50%, transparent 75%); |
| 462 |
background-size: 400% 400%; |
| 463 |
} |
| 464 |
|
| 465 |
.wcpn__skeleton-loader tr:nth-child(1) td:first-child div { |
| 466 |
width: 60%; |
| 467 |
} |
| 468 |
|
| 469 |
.wcpn__skeleton-loader tr:nth-child(2) td:first-child div { |
| 470 |
width: 80%; |
| 471 |
} |
| 472 |
|
| 473 |
.wcpn__skeleton-loader tr:nth-child(3) td:first-child div { |
| 474 |
width: 75%; |
| 475 |
} |
| 476 |
|
| 477 |
.wcpn__skeleton-loader tr:nth-child(4) td:first-child div { |
| 478 |
width: 77%; |
| 479 |
} |
| 480 |
|
| 481 |
.wcpn__skeleton-loader tr:nth-child(5) td:first-child div { |
| 482 |
width: 64%; |
| 483 |
} |
| 484 |
@keyframes shimmer { |
| 485 |
0% { |
| 486 |
background-position: 0 50%; |
| 487 |
} |
| 488 |
50% { |
| 489 |
background-position: 100% 50%; |
| 490 |
} |
| 491 |
100% { |
| 492 |
background-position: 0 50%; |
| 493 |
} |
| 494 |
} |