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