You are here

layout-builder-ux.css in Layout Builder UX 8

.layout-builder__section {
  position: relative;
  padding: 1.5em;
  outline: 2px dashed #979797;
}

.layout-builder__actions {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 6px;
  text-transform: uppercase;
  color: #fff;
  font-size: 12px;
}

.layout-builder__actions__section {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 100ms linear;
  opacity: 0;
  background-color: #777;
}

.layout-builder__section:hover .layout-builder__actions__section {
  opacity: 1;
}

.layout-builder__actions__block {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 100ms linear;
  opacity: 0;
  background-color: #618eab;
}

.layout-builder__region > .layout-builder-block:hover:not(.ui-state-drop) .layout-builder__actions__block,
.layout-builder__region > .layout-builder-block:focus:not(.ui-state-drop) .layout-builder__actions__block {
  opacity: 1;
}

.layout-builder__actions--display {
  opacity: 1;
}

.layout-builder__actions .layout-builder__section-label {
  display: inline-block;
  margin-right: 4px;
}

.layout-builder__actions .layout-builder__block-label {
  margin-right: 4px;
}

.layout-builder__actions .layout-builder__link {
  position: relative;
  z-index: 2;
  display: inline-block;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
}

.layout-builder__actions .layout-builder__link:hover {
  background-color: #555;
}

.layout-builder__actions .layout-builder__link--configure {
  background: url(../images/ffffff/cog.svg) center center / 12px 12px no-repeat;
}

.layout-builder__actions .layout-builder__link--move {
  background: url(../images/ffffff/move.svg) center center / 12px 12px no-repeat;
}

.layout-builder__actions .layout-builder__link--remove {
  background: url(../images/ffffff/ex.svg) center center / 12px 12px no-repeat;
}

.layout-builder__link--add {
  display: block;
  padding: 0.5em 0;
  padding-left: 30px;
  transition: all 100ms linear;
  text-transform: uppercase;
  background-position: 10px center;
  font-size: 12px;
}

.layout-builder__link--add:hover {
  background-image: url(../images/ffffff/plus.svg);
}

.layout-builder__add-section {
  padding: 0;
  text-align: left;
  outline: initial;
  background-color: #eee;
}

.layout-builder__add-section .layout-builder__link--add {
  color: #777;
}

.layout-builder__add-section .layout-builder__link--add:hover {
  color: white;
  background-color: #777;
}

.layout-builder__add-block {
  padding: 0;
  transition: all 100ms linear;
  text-align: left;
}

.layout-builder__add-block .layout-builder__link--add {
  color: #618dac;
}

.layout-builder__add-block .layout-builder__link--add:hover {
  color: white;
  background-color: #618dac;
}

.layout-builder__region {
  outline: initial;
}

.layout-builder__region > .layout-builder-block {
  position: relative;
  margin: 10px 5px;
  padding: 1em;
  border: 2px dotted #618dac;
}

.layout-builder__region > .layout-builder-block:hover:not(.ui-state-drop),
.layout-builder__region > .layout-builder-block:focus:not(.ui-state-drop) {
  border: 2px solid #618dac;
}

.layout-builder__add-block {
  margin: 10px 5px;
}

.layout-builder__section .ui-sortable-helper {
  border: 2px solid #618dac;
  outline: initial;
  box-shadow: 0 10px 24px 0 rgba(0, 0, 0, 0.5);
}

.layout-builder__section .ui-state-drop {
  margin: 10px 5px;
  padding: 1em;
  border: none;
  outline: none;
  background-color: #fed87a;
  background-image: repeating-linear-gradient(45deg, #fed87a, #fed87a 9px, #fff88d 9px, #fff88d 12px);
}

.ui-state-drop > div {
  opacity: 0;
}

/* Remove border from 'inner' layout builder block when it is highlighted. */
.layout-builder-block .layout-builder-block.is-layout-builder-highlighted,
.layout-builder__layout.is-layout-builder-highlighted {
  border: 0;
}

/* Override colors and floats that Bartik sets. */
.layout-container .region-header .layout-builder-block {
  float: none;
  clear: none;
}

/* Layout Selection */
#drupal-off-canvas .layout-selection li {
  padding-bottom: 0;
}

#drupal-off-canvas .layout-selection li a {
  display: flex;
  margin: 0 -20px;
  padding: 15px 0;
  padding-left: 25px; /* LTR */
}
[dir="rtl"] #drupal-off-canvas .layout-selection li a {
  padding-right: 25px;
  padding-left: 0;
}

#drupal-off-canvas .layout-selection li a:hover {
  background-color: #333;
}

#drupal-off-canvas .layout-selection li a svg {
  margin-right: 1em; /* LTR */
  background-color: inherit;
}
[dir="rtl"] #drupal-off-canvas .layout-selection li a svg {
  margin-right: 0;
  margin-left: 1em;
}

#drupal-off-canvas .layout-selection li a div {
  padding-top: 0.55em;
  background-color: inherit;
}

.ui-dialog.ui-dialog-off-canvas .ui-resizable-handle {
  width: 20px;
  height: 50px;
  top: 20vw;
  background: #444;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3333);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-dialog.ui-dialog-off-canvas .ui-resizable-handle:before {
  content: '';
  background: #bbb;
  width: 2px;
  display: block;
  height: 30px;
  border-radius: 1px;
}
.ui-dialog.ui-dialog-off-canvas .ui-resizable-w {
  left: -20px;
}
.ui-dialog.ui-dialog-off-canvas .ui-resizable-w:before {
  margin-left: -20%;
  box-shadow: 6px 2px 0 0 #bbb, 6px -2px 0 0 #bbb;
}
.ui-dialog.ui-dialog-off-canvas .ui-resizable-e {
  right: -20px;
}
.ui-dialog.ui-dialog-off-canvas .ui-resizable-e:before {
  margin-right: -20%;
  box-shadow: -6px 2px 0 0 #bbb, -6px -2px 0 0 #bbb;
}

File

css/layout-builder-ux.css
View source
  1. .layout-builder__section {
  2. position: relative;
  3. padding: 1.5em;
  4. outline: 2px dashed #979797;
  5. }
  6. .layout-builder__actions {
  7. display: inline-flex;
  8. align-items: center;
  9. padding: 0 0 0 6px;
  10. text-transform: uppercase;
  11. color: #fff;
  12. font-size: 12px;
  13. }
  14. .layout-builder__actions__section {
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. transition: all 100ms linear;
  19. opacity: 0;
  20. background-color: #777;
  21. }
  22. .layout-builder__section:hover .layout-builder__actions__section {
  23. opacity: 1;
  24. }
  25. .layout-builder__actions__block {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. transition: all 100ms linear;
  30. opacity: 0;
  31. background-color: #618eab;
  32. }
  33. .layout-builder__region > .layout-builder-block:hover:not(.ui-state-drop) .layout-builder__actions__block,
  34. .layout-builder__region > .layout-builder-block:focus:not(.ui-state-drop) .layout-builder__actions__block {
  35. opacity: 1;
  36. }
  37. .layout-builder__actions--display {
  38. opacity: 1;
  39. }
  40. .layout-builder__actions .layout-builder__section-label {
  41. display: inline-block;
  42. margin-right: 4px;
  43. }
  44. .layout-builder__actions .layout-builder__block-label {
  45. margin-right: 4px;
  46. }
  47. .layout-builder__actions .layout-builder__link {
  48. position: relative;
  49. z-index: 2;
  50. display: inline-block;
  51. box-sizing: border-box;
  52. width: 24px;
  53. height: 24px;
  54. margin: 0;
  55. padding: 0;
  56. pointer-events: auto;
  57. border: 0;
  58. border-radius: 0;
  59. font-size: 1rem;
  60. }
  61. .layout-builder__actions .layout-builder__link:hover {
  62. background-color: #555;
  63. }
  64. .layout-builder__actions .layout-builder__link--configure {
  65. background: url(../images/ffffff/cog.svg) center center / 12px 12px no-repeat;
  66. }
  67. .layout-builder__actions .layout-builder__link--move {
  68. background: url(../images/ffffff/move.svg) center center / 12px 12px no-repeat;
  69. }
  70. .layout-builder__actions .layout-builder__link--remove {
  71. background: url(../images/ffffff/ex.svg) center center / 12px 12px no-repeat;
  72. }
  73. .layout-builder__link--add {
  74. display: block;
  75. padding: 0.5em 0;
  76. padding-left: 30px;
  77. transition: all 100ms linear;
  78. text-transform: uppercase;
  79. background-position: 10px center;
  80. font-size: 12px;
  81. }
  82. .layout-builder__link--add:hover {
  83. background-image: url(../images/ffffff/plus.svg);
  84. }
  85. .layout-builder__add-section {
  86. padding: 0;
  87. text-align: left;
  88. outline: initial;
  89. background-color: #eee;
  90. }
  91. .layout-builder__add-section .layout-builder__link--add {
  92. color: #777;
  93. }
  94. .layout-builder__add-section .layout-builder__link--add:hover {
  95. color: white;
  96. background-color: #777;
  97. }
  98. .layout-builder__add-block {
  99. padding: 0;
  100. transition: all 100ms linear;
  101. text-align: left;
  102. }
  103. .layout-builder__add-block .layout-builder__link--add {
  104. color: #618dac;
  105. }
  106. .layout-builder__add-block .layout-builder__link--add:hover {
  107. color: white;
  108. background-color: #618dac;
  109. }
  110. .layout-builder__region {
  111. outline: initial;
  112. }
  113. .layout-builder__region > .layout-builder-block {
  114. position: relative;
  115. margin: 10px 5px;
  116. padding: 1em;
  117. border: 2px dotted #618dac;
  118. }
  119. .layout-builder__region > .layout-builder-block:hover:not(.ui-state-drop),
  120. .layout-builder__region > .layout-builder-block:focus:not(.ui-state-drop) {
  121. border: 2px solid #618dac;
  122. }
  123. .layout-builder__add-block {
  124. margin: 10px 5px;
  125. }
  126. .layout-builder__section .ui-sortable-helper {
  127. border: 2px solid #618dac;
  128. outline: initial;
  129. box-shadow: 0 10px 24px 0 rgba(0, 0, 0, 0.5);
  130. }
  131. .layout-builder__section .ui-state-drop {
  132. margin: 10px 5px;
  133. padding: 1em;
  134. border: none;
  135. outline: none;
  136. background-color: #fed87a;
  137. background-image: repeating-linear-gradient(45deg, #fed87a, #fed87a 9px, #fff88d 9px, #fff88d 12px);
  138. }
  139. .ui-state-drop > div {
  140. opacity: 0;
  141. }
  142. /* Remove border from 'inner' layout builder block when it is highlighted. */
  143. .layout-builder-block .layout-builder-block.is-layout-builder-highlighted,
  144. .layout-builder__layout.is-layout-builder-highlighted {
  145. border: 0;
  146. }
  147. /* Override colors and floats that Bartik sets. */
  148. .layout-container .region-header .layout-builder-block {
  149. float: none;
  150. clear: none;
  151. }
  152. /* Layout Selection */
  153. #drupal-off-canvas .layout-selection li {
  154. padding-bottom: 0;
  155. }
  156. #drupal-off-canvas .layout-selection li a {
  157. display: flex;
  158. margin: 0 -20px;
  159. padding: 15px 0;
  160. padding-left: 25px; /* LTR */
  161. }
  162. [dir="rtl"] #drupal-off-canvas .layout-selection li a {
  163. padding-right: 25px;
  164. padding-left: 0;
  165. }
  166. #drupal-off-canvas .layout-selection li a:hover {
  167. background-color: #333;
  168. }
  169. #drupal-off-canvas .layout-selection li a svg {
  170. margin-right: 1em; /* LTR */
  171. background-color: inherit;
  172. }
  173. [dir="rtl"] #drupal-off-canvas .layout-selection li a svg {
  174. margin-right: 0;
  175. margin-left: 1em;
  176. }
  177. #drupal-off-canvas .layout-selection li a div {
  178. padding-top: 0.55em;
  179. background-color: inherit;
  180. }
  181. .ui-dialog.ui-dialog-off-canvas .ui-resizable-handle {
  182. width: 20px;
  183. height: 50px;
  184. top: 20vw;
  185. background: #444;
  186. box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3333);
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. }
  191. .ui-dialog.ui-dialog-off-canvas .ui-resizable-handle:before {
  192. content: '';
  193. background: #bbb;
  194. width: 2px;
  195. display: block;
  196. height: 30px;
  197. border-radius: 1px;
  198. }
  199. .ui-dialog.ui-dialog-off-canvas .ui-resizable-w {
  200. left: -20px;
  201. }
  202. .ui-dialog.ui-dialog-off-canvas .ui-resizable-w:before {
  203. margin-left: -20%;
  204. box-shadow: 6px 2px 0 0 #bbb, 6px -2px 0 0 #bbb;
  205. }
  206. .ui-dialog.ui-dialog-off-canvas .ui-resizable-e {
  207. right: -20px;
  208. }
  209. .ui-dialog.ui-dialog-off-canvas .ui-resizable-e:before {
  210. margin-right: -20%;
  211. box-shadow: -6px 2px 0 0 #bbb, -6px -2px 0 0 #bbb;
  212. }