background.less 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .customize-control-vamtam-background {
  2. .current {
  3. margin-bottom: 8px;
  4. .container {
  5. overflow: hidden;
  6. border: 1px solid #eee;
  7. border-radius: 2px;
  8. min-height: 40px;
  9. }
  10. }
  11. .remove-button,
  12. .default-button,
  13. .upload-button {
  14. white-space: normal;
  15. width: 48%;
  16. height: auto;
  17. }
  18. .placeholder {
  19. width: 100%;
  20. position: relative;
  21. text-align: center;
  22. cursor: default;
  23. border: 1px dashed #b4b9be;
  24. box-sizing: border-box;
  25. min-height: 40px;
  26. }
  27. .inner {
  28. display: none;
  29. position: absolute;
  30. width: 100%;
  31. color: #555;
  32. white-space: nowrap;
  33. text-overflow: ellipsis;
  34. overflow: hidden;
  35. display: block;
  36. min-height: 40px;
  37. line-height: 20px;
  38. top: 8px;
  39. }
  40. img {
  41. width: 100%;
  42. border-radius: 2px;
  43. }
  44. .remove-button,
  45. .default-button {
  46. float: left;
  47. margin-right: 3px;
  48. }
  49. .upload-button {
  50. float: right;
  51. }
  52. .background-grid {
  53. display: flex;
  54. flex-flow: row wrap;
  55. .background-grid-el {
  56. width: 50%;
  57. padding-right: .5em;
  58. box-sizing: border-box;
  59. &:nth-child( 2n ) {
  60. padding-left: .5em;
  61. padding-right: 0;
  62. }
  63. select {
  64. width: 100%;
  65. }
  66. }
  67. }
  68. .wp-picker-open + .wp-picker-input-wrap {
  69. display: block;
  70. }
  71. .wp-color-result::after {
  72. min-width: 79px;
  73. }
  74. .wp-picker-container {
  75. max-width: 100%;
  76. }
  77. .background-grid-el:nth-child(2n) .wp-picker-holder {
  78. transform: translateX( calc( ~"-100% - .75em" ) );
  79. }
  80. }