Advertisement
Udoro

Bricks builder editor tweaks

Jul 14th, 2022 (edited)
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. .dimensions {
  2. display: grid !important;
  3. grid-template-columns: repeat(2, 1fr) !important;
  4. grid-template-rows: repeat(3, 1fr) !important;
  5. grid-gap: .5em !important;
  6. }
  7.  
  8. .dimensions li:first-of-type, .dimensions li:nth-of-type(3){
  9. grid-column: span 2;
  10. width: 50%;
  11. margin: 0 auto;
  12. }
  13.  
  14. .dimensions.number{
  15. border-radius: 10px !important;
  16. }
  17.  
  18. .dimensions li:last-of-type {
  19. order: 2;
  20. }
  21.  
  22. .dimensions li:nth-of-type(2) {
  23. order: 3;
  24. }
  25.  
  26. .dimensions li:nth-of-type(3) {
  27. order: 4;
  28. }
  29.  
  30. .dimensions input {
  31. border-radius: .3em !important;
  32. }
  33.  
  34.  
  35. .control-dimensions .control-label {
  36. margin-bottom: .6em;
  37. }
  38.  
  39. .dimensions label {
  40. display: none !important;
  41. }
  42.  
  43. [data-control="number"].horizontal .number input {
  44. border-bottom-right-radius: 0px;
  45. border-top-right-radius: 0px;
  46. min-width: 60px;
  47. width: fit-content;
  48. max-width: 120px;
  49. text-align: left;
  50. transition-duration: 0s !important;
  51. transition-delay: 0.2s !important;
  52.  
  53.  
  54. }
  55.  
  56. [data-control=number].vertical .unit input {
  57. background-color: #1e1e1e63!important;
  58.  
  59. padding-right: .8em !important;
  60.  
  61. }
  62. [data-control=number].vertical .unit input:not(.dimensions :where(.unit input:focus,.unit input:hover)) {
  63.  
  64. text-align: right !important;
  65.  
  66.  
  67. }
  68.  
  69. /*[data-control=dimensions] ul.dimensions input {
  70. text-align: left;
  71. }*/
  72.  
  73.  
  74. /*start===============================*/
  75.  
  76. .dimensions .unit {
  77. position: absolute;
  78. top: .5em;
  79. right: 0.5em;
  80. max-width: 3em;
  81. transition-duration: 0s !important;
  82. transition-property: width;
  83.  
  84. }
  85.  
  86. .dimensions :where(.unit input:focus,.unit input:hover) {
  87. width: 12em!important;
  88. margin-left: -9.5em!important;
  89. background-image: linear-gradient(#454f59, #454f59);
  90. text-align: center !important;
  91. padding-right: .5em !important;
  92. transition-duration: 0s !important;
  93. transition-delay: 0.2s !important;
  94.  
  95. }
  96.  
  97. /*stop==============================*/
  98.  
  99. [data-control=number] .arrow-down,
  100. [data-control=number] .arrow-up{
  101. display: none !Important;
  102. }
  103.  
  104.  
  105.  
  106.  
  107. /* --- Make + button more prominent */
  108.  
  109. #bricks-toolbar .logo {
  110. background-color: #818689;
  111. }
  112. #bricks-toolbar .logo:hover {
  113. background-color: var(--builder-color-accent);
  114. }
  115.  
  116. #bricks-toolbar li.elements {
  117. background-color: var(--builder-color-accent);
  118. opacity: 1;
  119. }
  120. #bricks-toolbar li.elements:hover {
  121. background-color: #edca5b;
  122. }
  123.  
  124. #bricks-toolbar li.elements .bricks-svg-wrapper .bricks-svg {
  125. color: var(--builder-border-color);
  126. }
  127.  
  128. #bricks-structure #bricks-panel-header {
  129. position: sticky;
  130. top: 0;
  131. background-color: var(--builder-bg);
  132. }
  133.  
  134.  
  135. /* --- Make "View on frontend" button always appear */
  136.  
  137. #bricks-toolbar li.new-tab {
  138. display: flex !important;
  139. }
  140.  
  141. /* --- Make active class prominent */
  142.  
  143. #bricks-panel-element-classes .active-class.active input {
  144. background-color: var(--wp--preset--color--light-green-cyan);
  145. color: #000;
  146. }
  147.  
  148.  
  149.  
  150. .bricks-panel-controls .control-small>.input, .bricks-panel-controls .control-small>div, .bricks-panel-controls .control-small>input {
  151. max-width: 160px;
  152. width: 100%;
  153. }
  154.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement