| 1 |
/*-------------------------------------------------------------- |
| 2 |
* Main Wrap |
| 3 |
--------------------------------------------------------------*/ |
| 4 |
|
| 5 |
.cmb2-wrap { |
| 6 |
margin: 0; |
| 7 |
|
| 8 |
input, |
| 9 |
textarea { |
| 10 |
max-width: 100%; |
| 11 |
} |
| 12 |
|
| 13 |
input[type="text"]="text""] { |
| 14 |
|
| 15 |
&.cmb2-oembed { |
| 16 |
width: 100%; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
textarea { |
| 21 |
width: 500px; |
| 22 |
padding: 8px; |
| 23 |
|
| 24 |
&.cmb2-textarea-code { |
| 25 |
font-family: $font-mono; |
| 26 |
line-height: 16px; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
input { |
| 31 |
|
| 32 |
&.cmb2-text-small, |
| 33 |
&.cmb2-timepicker { |
| 34 |
width: 100px; |
| 35 |
// margin-right: 15px |
| 36 |
} |
| 37 |
|
| 38 |
&.cmb2-text-money { |
| 39 |
width: 90px; |
| 40 |
// margin-right: 15px |
| 41 |
} |
| 42 |
|
| 43 |
&.cmb2-text-medium { |
| 44 |
width: 230px; |
| 45 |
// margin-right: 15px |
| 46 |
} |
| 47 |
|
| 48 |
&.cmb2-upload-file { |
| 49 |
width: 65%; |
| 50 |
} |
| 51 |
|
| 52 |
&.ed_button { |
| 53 |
padding: 2px 4px; |
| 54 |
} |
| 55 |
|
| 56 |
&:not([type="hidden"]) { |
| 57 |
+ input, |
| 58 |
+ .button-secondary, |
| 59 |
+ select { |
| 60 |
margin-left: 20px; |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
ul { |
| 66 |
margin: 0; |
| 67 |
} |
| 68 |
|
| 69 |
li { |
| 70 |
font-size: $font-size; |
| 71 |
line-height: 16px; |
| 72 |
margin: 1px 0 5px 0; |
| 73 |
} |
| 74 |
|
| 75 |
// .cmb-field-list .cmb-field-list { |
| 76 |
// padding-top:5px; |
| 77 |
// margin: 0; |
| 78 |
// } |
| 79 |
|
| 80 |
select { |
| 81 |
font-size: $font-size; |
| 82 |
margin-top: 3px; |
| 83 |
} |
| 84 |
|
| 85 |
input:focus, |
| 86 |
textarea:focus { |
| 87 |
background: $light-yellow; |
| 88 |
} |
| 89 |
|
| 90 |
input[type="radio"]="radio""] { |
| 91 |
margin: 0 5px 0 0; |
| 92 |
padding: 0; |
| 93 |
} |
| 94 |
|
| 95 |
input[type="checkbox"]="checkbox""] { |
| 96 |
margin: 0 5px 0 0; |
| 97 |
padding: 0; |
| 98 |
} |
| 99 |
|
| 100 |
button, |
| 101 |
.button-secondary { |
| 102 |
white-space: nowrap; |
| 103 |
} |
| 104 |
|
| 105 |
.mceLayout { |
| 106 |
border: 1px solid $light-gray !important; |
| 107 |
} |
| 108 |
|
| 109 |
.mceIframeContainer { |
| 110 |
background: $white; |
| 111 |
} |
| 112 |
|
| 113 |
.meta_mce { |
| 114 |
width: 97%; |
| 115 |
|
| 116 |
textarea { |
| 117 |
width: 100%; |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
// Multicheck toggle |
| 122 |
.cmb-multicheck-toggle { |
| 123 |
margin-top: -1em; |
| 124 |
} |
| 125 |
|
| 126 |
// Color picker |
| 127 |
.wp-picker-clear.button, |
| 128 |
.wp-picker-default.button { |
| 129 |
margin-left: 6px; |
| 130 |
padding: 2px 8px; |
| 131 |
} |
| 132 |
|
| 133 |
.cmb-row { |
| 134 |
margin: 0; |
| 135 |
|
| 136 |
&:after { |
| 137 |
content: ''; |
| 138 |
clear: both; |
| 139 |
display: block; |
| 140 |
width: 100%; |
| 141 |
} |
| 142 |
|
| 143 |
&.cmb-repeat .cmb2-metabox-description { |
| 144 |
padding-top: 0; |
| 145 |
padding-bottom: 1em; |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
} |
| 150 |
|
| 151 |
// Fixes bug created by 5.3+ block editor-specific styling |
| 152 |
// Over-specific selector to override WordPress's over-specific selector without !important |
| 153 |
// @todo - Remove when `body.branch-5-3` targeting 5.3+ is widely used |
| 154 |
body.block-editor-page.branch-5-3 .cmb2-wrap .cmb-row .cmb2-radio-list input[type="radio"]="radio""]::before { |
| 155 |
margin: .1875rem; |
| 156 |
|
| 157 |
@media screen and (max-width: 782px) { |
| 158 |
margin: .4375rem; |
| 159 |
} |
| 160 |
} |
| 161 |
|
| 162 |
.cmb2-metabox { |
| 163 |
clear: both; |
| 164 |
margin: 0; |
| 165 |
|
| 166 |
> .cmb-row:first-of-type >, |
| 167 |
.cmb-field-list > .cmb-row:first-of-type > { |
| 168 |
.cmb-td, |
| 169 |
.cmb-th { |
| 170 |
border: 0; |
| 171 |
} |
| 172 |
} |
| 173 |
} |
| 174 |
|
| 175 |
.cmb-add-row { |
| 176 |
margin: 1.8em 0 0; |
| 177 |
} |
| 178 |
|
| 179 |
.cmb-nested .cmb-td, |
| 180 |
.cmb-repeatable-group .cmb-th, |
| 181 |
.cmb-repeatable-group:first-of-type { |
| 182 |
border: 0; |
| 183 |
} |
| 184 |
|
| 185 |
.cmb-row:last-of-type, |
| 186 |
.cmb2-wrap .cmb-row:last-of-type, |
| 187 |
.cmb-repeatable-group:last-of-type { |
| 188 |
border-bottom: 0; |
| 189 |
} |
| 190 |
|
| 191 |
.cmb-repeatable-grouping { |
| 192 |
border: 1px solid $light-gray; |
| 193 |
padding: 0 1em; |
| 194 |
|
| 195 |
&.cmb-row { |
| 196 |
margin: 0 0 0.8em; |
| 197 |
} |
| 198 |
|
| 199 |
+ .cmb-repeatable-grouping { |
| 200 |
} |
| 201 |
} |
| 202 |
|
| 203 |
.cmb-th { |
| 204 |
color: $dark-gray; |
| 205 |
float: left; |
| 206 |
font-weight: 600; |
| 207 |
padding: 20px 10px 20px 0; |
| 208 |
vertical-align: top; |
| 209 |
width: 200px; |
| 210 |
|
| 211 |
@media (max-width: $mobile-break) { |
| 212 |
@include fullth; |
| 213 |
} |
| 214 |
} |
| 215 |
|
| 216 |
.cmb-td { |
| 217 |
line-height: 1.3; |
| 218 |
max-width: 100%; |
| 219 |
padding: 15px 10px; |
| 220 |
vertical-align: middle; |
| 221 |
} |
| 222 |
|
| 223 |
.cmb-type-title { |
| 224 |
|
| 225 |
.cmb-td { |
| 226 |
padding: 0; |
| 227 |
} |
| 228 |
} |
| 229 |
|
| 230 |
.cmb-th label { |
| 231 |
display: block; |
| 232 |
padding: 5px 0; |
| 233 |
} |
| 234 |
|
| 235 |
.cmb-th + .cmb-td { |
| 236 |
float: left; |
| 237 |
} |
| 238 |
|
| 239 |
.cmb-td .cmb-td { |
| 240 |
padding-bottom: 1em; |
| 241 |
} |
| 242 |
|
| 243 |
.cmb-remove-row { |
| 244 |
text-align: right; |
| 245 |
} |
| 246 |
|
| 247 |
.empty-row.hidden { |
| 248 |
display: none; |
| 249 |
} |
| 250 |
|
| 251 |
// Repeatable fields styles |
| 252 |
.cmb-repeat-table { |
| 253 |
background-color: $almostwhite; |
| 254 |
border: 1px solid darken($light-gray, 3%); |
| 255 |
|
| 256 |
.cmb-row.cmb-repeat-row { |
| 257 |
position: relative; |
| 258 |
counter-increment: el; |
| 259 |
|
| 260 |
margin: 0; |
| 261 |
padding: 10px 10px 10px 50px; |
| 262 |
border-bottom: none !important; // Sometime, we need !important :). |
| 263 |
|
| 264 |
& + .cmb-repeat-row { |
| 265 |
border-top: solid 1px $light-gray; |
| 266 |
} |
| 267 |
|
| 268 |
&.ui-sortable-helper { |
| 269 |
outline: dashed 2px $light-gray !important; // Sometime, we need !important :). |
| 270 |
} |
| 271 |
|
| 272 |
&:before { |
| 273 |
content: counter(el); |
| 274 |
display: block; |
| 275 |
|
| 276 |
top: 0; |
| 277 |
left: 0; |
| 278 |
position: absolute; |
| 279 |
|
| 280 |
width: 35px; |
| 281 |
height: 100%; |
| 282 |
line-height: 35px; |
| 283 |
cursor: move; |
| 284 |
color: $gray; |
| 285 |
text-align: center; |
| 286 |
border-right: solid 1px $light-gray; |
| 287 |
} |
| 288 |
|
| 289 |
.cmb-td { |
| 290 |
margin: 0; |
| 291 |
padding: 0; |
| 292 |
} |
| 293 |
|
| 294 |
} |
| 295 |
|
| 296 |
+ .cmb-add-row { |
| 297 |
margin: 0; |
| 298 |
|
| 299 |
&:before { |
| 300 |
content: ''; |
| 301 |
width: 1px; |
| 302 |
height: 1.6em; |
| 303 |
display: block; |
| 304 |
margin-left: 17px; |
| 305 |
background-color: darken($light-gray, 5%); |
| 306 |
} |
| 307 |
} |
| 308 |
|
| 309 |
.cmb-remove-row { |
| 310 |
top: 7px; |
| 311 |
right: 7px; |
| 312 |
position: absolute; |
| 313 |
|
| 314 |
width: auto; |
| 315 |
margin-left: 0; |
| 316 |
padding: 0 !important; // Sometime, we need !important :). |
| 317 |
|
| 318 |
display: none; |
| 319 |
|
| 320 |
> .cmb-remove-row-button { |
| 321 |
font-size: 20px; |
| 322 |
text-indent: -1000px; |
| 323 |
|
| 324 |
overflow: hidden; |
| 325 |
position: relative; |
| 326 |
|
| 327 |
height: auto; |
| 328 |
line-height: 1; |
| 329 |
padding: 0 10px 0; |
| 330 |
|
| 331 |
&:before { |
| 332 |
@include pseudo-dashicons("\f335"); |
| 333 |
} |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
.cmb-repeat-row:hover .cmb-remove-row { |
| 338 |
display: block; |
| 339 |
} |
| 340 |
|
| 341 |
} |
| 342 |
|
| 343 |
.cmb-repeatable-group { |
| 344 |
|
| 345 |
.cmb-th { |
| 346 |
padding: 5px; |
| 347 |
} |
| 348 |
|
| 349 |
.cmb-group-title { |
| 350 |
background-color: $light-gray; |
| 351 |
padding: 8px 12px 8px 2.2em; |
| 352 |
margin: 0 -1em; |
| 353 |
min-height: 1.5em; |
| 354 |
font-size: 14px; |
| 355 |
line-height: 1.4; |
| 356 |
|
| 357 |
h4 { |
| 358 |
border: 0; |
| 359 |
margin: 0; |
| 360 |
font-size: 1.2em; |
| 361 |
font-weight: 500; |
| 362 |
padding: 0.5em 0.75em; |
| 363 |
} |
| 364 |
|
| 365 |
.cmb-th { |
| 366 |
display: block; |
| 367 |
width: 100%; |
| 368 |
} |
| 369 |
} |
| 370 |
|
| 371 |
.cmb-group-description .cmb-th { |
| 372 |
@include fullth; |
| 373 |
} |
| 374 |
|
| 375 |
.cmb-shift-rows { |
| 376 |
margin-right: 1em; |
| 377 |
|
| 378 |
.dashicons-arrow-up-alt2 { |
| 379 |
margin-top: .15em; |
| 380 |
} |
| 381 |
|
| 382 |
.dashicons-arrow-down-alt2 { |
| 383 |
margin-top: .2em; |
| 384 |
} |
| 385 |
} |
| 386 |
|
| 387 |
.cmb2-upload-button { |
| 388 |
float: right; |
| 389 |
} |
| 390 |
|
| 391 |
} |
| 392 |
|
| 393 |
p.cmb2-metabox-description { |
| 394 |
color: $medium-gray; |
| 395 |
letter-spacing: 0.01em; |
| 396 |
margin: 0; |
| 397 |
padding-top: .5em; |
| 398 |
} |
| 399 |
|
| 400 |
span.cmb2-metabox-description { |
| 401 |
color: $medium-gray; |
| 402 |
letter-spacing: 0.01em; |
| 403 |
} |
| 404 |
|
| 405 |
.cmb2-metabox-title { |
| 406 |
margin: 0 0 5px 0; |
| 407 |
padding: 5px 0 0 0; |
| 408 |
font-size: 14px; |
| 409 |
} |
| 410 |
|
| 411 |
.cmb-inline ul { |
| 412 |
padding: 4px 0 0 0; |
| 413 |
} |
| 414 |
|
| 415 |
.cmb-inline li { |
| 416 |
display: inline-block; |
| 417 |
padding-right: 18px; |
| 418 |
} |
| 419 |
|
| 420 |
.cmb-type-textarea-code pre { |
| 421 |
margin: 0; |
| 422 |
} |
| 423 |
|
| 424 |
.cmb2-media-status { |
| 425 |
|
| 426 |
.img-status { |
| 427 |
clear: none; |
| 428 |
display: inline-block; |
| 429 |
vertical-align: middle; |
| 430 |
margin-right: 10px; |
| 431 |
width: auto; |
| 432 |
|
| 433 |
img { |
| 434 |
max-width: 350px; |
| 435 |
height: auto; |
| 436 |
} |
| 437 |
} |
| 438 |
|
| 439 |
.img-status img, |
| 440 |
.embed-status { |
| 441 |
background: $lightchecker; |
| 442 |
border: 5px solid $white; |
| 443 |
outline: 1px solid $light-gray; |
| 444 |
box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.3 ), inset 0 0 0 1px rgba( 0, 0, 0, 0.05 ); |
| 445 |
background-image: linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker), linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker); |
| 446 |
background-position: 0 0, 10px 10px; |
| 447 |
background-size: 20px 20px; |
| 448 |
border-radius: 2px; |
| 449 |
-moz-border-radius: 2px; |
| 450 |
margin: 15px 0 0 0; |
| 451 |
} |
| 452 |
|
| 453 |
.embed-status { |
| 454 |
float: left; |
| 455 |
max-width: 800px; |
| 456 |
} |
| 457 |
|
| 458 |
.img-status, .embed-status { |
| 459 |
position: relative; |
| 460 |
|
| 461 |
.cmb2-remove-file-button { |
| 462 |
background: url(../images/ico-delete.png); |
| 463 |
height: 16px; |
| 464 |
left: -5px; |
| 465 |
position: absolute; |
| 466 |
text-indent: -9999px; |
| 467 |
top: -5px; |
| 468 |
width: 16px; |
| 469 |
} |
| 470 |
|
| 471 |
} |
| 472 |
|
| 473 |
.img-status { |
| 474 |
|
| 475 |
.cmb2-remove-file-button { |
| 476 |
top: 10px; |
| 477 |
} |
| 478 |
} |
| 479 |
|
| 480 |
.img-status img, .file-status > span { |
| 481 |
cursor: pointer; |
| 482 |
} |
| 483 |
|
| 484 |
&.cmb-attach-list { |
| 485 |
.img-status img, .file-status > span { |
| 486 |
cursor: move; |
| 487 |
} |
| 488 |
} |
| 489 |
|
| 490 |
} |
| 491 |
|
| 492 |
.cmb-type-file-list .cmb2-media-status .img-status { |
| 493 |
clear: none; |
| 494 |
vertical-align: middle; |
| 495 |
width: auto; |
| 496 |
margin-right: 10px; |
| 497 |
margin-bottom: 10px; |
| 498 |
margin-top: 0; |
| 499 |
} |
| 500 |
|
| 501 |
.cmb-attach-list li { |
| 502 |
clear: both; |
| 503 |
display: inline-block; |
| 504 |
width: 100%; |
| 505 |
margin-top: 5px; |
| 506 |
margin-bottom: 10px; |
| 507 |
img { |
| 508 |
float: left; |
| 509 |
margin-right: 10px; |
| 510 |
} |
| 511 |
} |
| 512 |
|
| 513 |
.cmb2-remove-wrapper { |
| 514 |
margin: 0; |
| 515 |
} |
| 516 |
|
| 517 |
.child-cmb2 .cmb-th { |
| 518 |
text-align: left; |
| 519 |
} |
| 520 |
|
| 521 |
.cmb2-indented-hierarchy { |
| 522 |
padding-left: 1.5em; |
| 523 |
} |
| 524 |
|
| 525 |
@media (max-width: $mobile-break) { |
| 526 |
.cmb-th, |
| 527 |
.cmb-td, |
| 528 |
.cmb-th + .cmb-td { |
| 529 |
display: block; |
| 530 |
float: none; |
| 531 |
width: 100%; |
| 532 |
} |
| 533 |
} |
| 534 |
|