You are here

erl-widget.css in Entity Reference with Layout 8

fieldset.erl-field {
  background: #f5f5f3;
  border: none;
  margin: 30px 0;
  padding: 60px 30px;
}
fieldset.erl-field > legend {
  line-height: 30px;
  top: 15px;
}

.erl-layout-wrapper {
  margin-top: 20px;
}

.erl-field .erl-layout {
  margin-bottom: 30px;
  position: relative;
  padding: 40px 0 0 0;
}
.erl-field .erl-layout__content {
  padding: 0 30px 15px 30px;
}
.erl-field .erl-layout__regions,
.erl-field .erl-disabled-wrapper {
  background: #fff;
}

.erl-field .erl-layout-select .form-radios {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.erl-field .layout-radio-item {
  padding: 5px;
  background: none;
  cursor: pointer;
  margin: 10px 10px 10px 0;
  text-align: left;
  width: 150px;
}
.erl-field .layout-radio-item input[type=radio] {
  display: none;
}
.erl-field .layout-radio-item .form-item {
  margin-top: 0;
}
.erl-field .layout-radio-item label {
  font-size: small;
}
.erl-field .layout-radio-item .layout-icon-wrapper {
  float: left;
  margin-right: 5px;
}
.erl-field .layout-radio-item.active {
  background: #fff;
  outline: 2px dotted blue;
}
.erl-field .layout-radio-item .layout-icon {
  float: left;
  margin: 0;
}
.erl-field .erl-add-item {
  text-align: center;
}

.erl-field .erl-layout.erl-item::before {
  content: "";
  top: 20px;
  height: 1px;
  background-color: #ccc;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}
.erl-field .erl-layout .erl-item,
.erl-field .erl-disabled-items .erl-item {
  border: 1px solid #ffffff;
  box-sizing: border-box;
  padding: 30px;
  transition: all .15s linear;
  position: relative;
}
.erl-field .reversed .erl-item {
  border-color: rgba(0, 0, 0, .25);
}
.erl-field .erl-item .erl-actions .form-wrapper {
  background: none;
}
.erl-field .erl-layout-region:hover {
  border: 1px solid #ccc;
}
.erl-field .erl-layout .erl-item:hover {
  border-color: #0074bd;
}
.erl-field .reversed .erl-item:hover {
  border-color: #fff;
}
.erl-field .erl-item:hover:before {
  opacity: 1;
}
.erl-field .erl-layout-region {
  box-sizing: border-box;
  position: relative;
  border: 1px dashed #e5e5e3;
  transition: all .15s linear;
  min-height: 30px;
  padding: 30px;
}

/* -- Warnings -- */
.erl-field .is_translating_warning {
  padding: 10px 0;
  color: orange;
}

/* -- Layout Controls -- */

.erl-field .erl-layout .layout-controls,
.erl-field .erl-layout .erl-actions {
  background: #f5f5f3;
}
.erl-field .erl-layout .erl-item .layout-controls,
.erl-field .erl-layout .erl-item .erl-actions {
  background: none;
}
.erl-field .layout-controls {
  height: 30px;
  left: 0;
  position: absolute;
  top: 0;
  width: 90px;
  opacity: 0;
}

.erl-field .erl-item:hover > .layout-controls {
  opacity: 1;
}
.erl-field .erl-layout-section .erl-item:hover > .layout-controls {
  opacity: 1;
}
.erl-field .erl-layout-section .erl-item .layout-controls {
  background: none;
}
.layout-handle,
.layout-down,
.layout-up {
  cursor: pointer;
  height: 30px;
  left: 0;
  overflow: hidden;
  opacity: .75;
  position: absolute;
  top: 0;
  text-indent: 100%;
  width: 30px;
}
.layout-handle:hover,
.layout-down:hover,
.layout-up:hover {
  opacity: 1;
  cursor: pointer;
}
.layout-handle {
  background: url(../img/icon-move.png) 0 0 no-repeat;
  background-size: cover;
  display: none;
}
.reversed .layout-handle {
  background-image: url(../img/icon-move--reversed.png);
}
.dragula-enabled .layout-handle {
  display: block;
}
.layout-down {
  background: url(../img/icon-down.png) 0 0 no-repeat;
  background-size: cover;
  left: 60px;
}
.reversed .layout-down {
  background-image: url(../img/icon-down--reversed.png);
}
.layout-up {
  background: url(../img/icon-up.png) 0 0 no-repeat;
  background-size: cover;
  left: 30px;
}
.reversed .layout-up {
  background-image: url(../img/icon-up--reversed.png);
}
.erl-field .erl-layout:first-child > .layout-controls .layout-up,
.erl-field .erl-layout:first-child .erl-item:first-child .layout-up {
  pointer-events: none;
  opacity: .15;
}
.erl-field .erl-layout:first-child .erl-item:first-child .layout-up {
  pointer-events: none;
  opacity: .15;
}
.erl-field .erl-layout:last-child > .layout-controls .layout-down,
.erl-field .erl-layout:last-child .erl-item:nth-last-child(2) .layout-down {
  pointer-events: none;
  opacity: .15;
}
.gu-mirror .layout-down,
.gu-mirror .layout-up {
  opacity: .25;
}

/* -- Item Actions (Edit and Delete Buttons) -- */
.erl-field .erl-actions,
.gu-mirror .erl-actions {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0;
  margin: 0;
  visibility: hidden;
}
.erl-field .erl-item:hover > .erl-actions {
  visibility: visible;
}
.erl-field .erl-actions input.erl-edit,
.erl-field .erl-actions input.erl-remove {
  cursor: pointer;
  height: 30px;
  width: 30px;
  margin: 0;
  text-indent: 100%;
  overflow: hidden;
  border: none;
  padding: 0;
  opacity: .5;
  transition: none;
}
.erl-field .erl-actions input.erl-edit {
  background: url(../img/icon-edit.png) 0 0 no-repeat;
  background-size: cover;
}
.erl-field .reversed .erl-actions input.erl-edit {
  background-image: url(../img/icon-edit--reversed.png);
}
.erl-field .erl-actions input.erl-remove {
  background: url(../img/icon-delete.png) 0 0 no-repeat;
  background-size: cover;
}
.erl-field .reversed .erl-actions input.erl-remove {
  background-image: url(../img/icon-delete--reversed.png);
}
.erl-field .erl-actions input.erl-edit:hover,
.erl-field .erl-actions input.erl-remove:hover {
  opacity: 1;
  box-shadow: none;
}

/* -- Add content and add section buttons. -- */
.erl-add-content-wrapper {
  position: relative;
}
.erl-add-content__container {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
}
.erl-add-content__toggle {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -15px;
  border: none;
  color: #fff;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
  padding: 0;
  opacity: 0;
  font-size: large;
  width: 30px;
  height: 30px;
  text-indent: 100%;
  overflow: hidden;
  background: url(../img/icon-add.png) 0 0 no-repeat;
  background-size: cover;
  transition: all .15s linear;
  -webkit-appearance: none;
  outline: none;
  border-radius: 50%;
}
.reversed .erl-add-content__toggle {
  background-image: url(../img/icon-add--reversed.png);
}
.erl-add-content__toggle.active {
  transform: rotate(45deg);
}
.erl-layout-region:hover button.erl-add-content__toggle {
  opacity: .75;
}
.erl-layout-region:hover button.erl-add-content__toggle:hover,
.erl-layout-region:hover button.erl-add-content__toggle.active,
.erl-layout-region button.erl-add-content__toggle.active {
  opacity: 1;
}

.erl-add-content__group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  top: 100%;
  background: #fff;
  z-index: 12;
  border: none;
  padding: 0;
  text-align: left;
  margin-left: -15px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.erl-add-content__group.hidden {
  visibility: hidden !important;
}
.erl-add-content__group .erl-add-content__search {
  width: 100%;
  padding: 12px;
  position: sticky;
  top: 0;
  background: #fafbfd;
  border-bottom: 1px solid rgba(216, 217, 224, 0.8);
}
.erl-add-content__group .erl-add-content__input {
  width: 100%;
}
.erl-add-content__item {
  display: block;
  text-align: left;
  width: 100%;
  border: none;
  color: #0074bd;
  flex-basis: 25%;
  padding: 9px 18px;
  margin-bottom: 16px;
}
.erl-add-content__group--has-icons button {
  text-align: center;
}
.erl-add-content__item {
  display: block;
  text-align: left;
}
.erl-add-content__group button {
  background: none;
  display: block;
  width: 100%;
  border: none;
  color: #0074bd;
  text-align: left;
  padding: 9px 18px;
}
.erl-add-content__group button img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 8px auto;
}

@media (min-width: 1024px) {
  .erl-add-content__group button img {
    width: 48px;
    height: 48px;
  }
}
.erl-add-content__group button:hover {
  background: #e5f1f8;
  color: #0074bd;
  display: block;
  width: 100%;
  border: none;
}
.erl-add-content--single {
  width: 160px;
  left: 50%;
  margin-left: -80px;
  padding: 0;
  text-align: center;
  position: absolute;
  z-index: 10;
}
.erl-item > .erl-add-content--single {
  opacity: 0;
  bottom: -52px;
}
.erl-item:hover > .erl-add-content--single {
  opacity: 1;
}
.erl-empty {
  position: relative;
}
.erl-add-content--single button {
  background: none;
  border: none;
  box-shadow: none;
  text-transform: uppercase;
  font-size: small;
  font-weight: bold;
  color: #9b9b9b;
  height: 60px;
  width: 100%;
}
.erl-add-content--single button:hover {
  color: #5e5e5e;
  text-decoration: underline;
}
.erl-add-content--single button .icon {
  font-weight: bold;
  font-size: large;
}
.erl-add-more-menu {
  width: 300px;
  position: absolute;
  left: 50%;
  top: 100%;
  background: #fff;
  z-index: 1000;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, .25);
  outline: 1px solid #eee;
}
.erl-add-more-menu.beneath::before,
.erl-add-more-menu.above::after {
  content: " ";
  width: 16px;
  height: 16px;
  display: block;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  position: absolute;
  background: #fff;
  transform: rotate(45deg);
}
.erl-loading div.loading {
  background: rgba(255, 255, 255, .8);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1005;
}
.erl-loading div.spinner {
  text-indent: -9999px;
  opacity: 1;
  width: 49px;
  height: 49px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -25px;
  margin-top: -27px;
  border: 3px solid #0074bd;
  border-radius: 50%;
  border-left-color: transparent;
  border-right-color: transparent;
  animation: cssload-spin 575ms infinite linear;
  -o-animation: cssload-spin 575ms infinite linear;
  -webkit-animation: cssload-spin 575ms infinite linear;
  -moz-animation: cssload-spin 575ms infinite linear;
}

@keyframes cssload-spin {
  100% {
    transform: rotate(360deg);
  }
}

@-o-keyframes cssload-spin {
  100% {
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-ms-keyframes cssload-spin {
  100% {
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes cssload-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes cssload-spin {
  100% {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.erl-add-more-menu.fade-in {
  animation: fadeIn ease .25s;
  -webkit-animation: fadeIn ease .25s;
  -moz-animation: fadeIn ease .25s;
  -o-animation: fadeIn ease .25s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.erl-add-more-menu__search {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}
.erl-add-more-menu__search input {
  font-size: 14px;
  padding: 10px;
  display: block;
  box-sizing: border-box;
  width: 100%;
  border-radius: 3px;
  border: none;
  box-shadow: 0 0 0 1px #666;
}
.erl-add-more-menu__search input:focus {
  box-shadow: 0 0 0 1px #5f89db;
  outline: none;
}
.erl-add-more-menu__group {
  display: flex;
  flex-wrap: wrap;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.erl-add-more-menu__item {
  text-align: center;
  width: 33%;
}
.erl-add-more-menu__item a {
  text-align: center;
  display: block;
  padding: 10px 0;
  margin: 10px;
  text-decoration: none;
  font-size: 14px;
  color: #0074bd;
}
.erl-add-more-menu__item a:hover {
  background-color: #e7f1f7;
}
.erl-add-more-menu__item img {
  width: 24px;
  height: 24px;
}
/**
 * Disabled items.
 */
.erl-disabled-items.form-item.form-wrapper {
  color: gray;
  position: relative;
  margin-top: 60px;
  border: 1px dashed #e5e5e3;
}
.erl-disabled-items .fieldset-wrapper {
  margin-top: 10px;
}
.erl-disabled-items__title {
  margin: 0;
  padding: 10px;
}
.erl-disabled-items__description {
  position: absolute;
  width: 100%;
  margin: 20px 0 0 0;
  top: 0;
  left: 0;
  text-align: center;
}
.erl-disabled-wrapper {
  position: relative;
  min-height: 60px;
  padding-bottom: 0;
  padding-top: 0;
  border: 1px dashed #e5e5e3;
}

/* -- Dragula Specific Styles -- */
.gu-mirror {
  background: #fff;
  border: 1px solid #0074bd;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
  cursor: grabbing;
  padding: 30px;
  box-sizing: border-box;
  overflow: hidden;
}
.gu-mirror:before {
  content: "";
  position: absolute;
  height: 30px;
  width: 30px;
  left: 0;
  top: 0;
  background: url(../img/icon-move.png) 0 0 no-repeat;
  background-size: cover;
}
.reversed .gu-mirror:before {
  background-image: url(../img/icon-move--reversed.png);
}
.erl-field .erl-item.gu-transit {
  background: #0074bd;
}
.erl-field .erl-item.gu-transit > * {
  visibility: hidden;
}

.paragraph-type-label {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 5px;
  margin: 0;
  border-top: 1px dashed #e5e5e3;
  border-left: 1px dashed #e5e5e3;
  font-style: italic;
  font-weight: normal !important;
  color: darkgray;
}

.paragraph-layout-label {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0;
  margin: auto;
  font-style: italic;
  font-weight: normal !important;
  color: darkgray;
}

/* -- Un-Published Layout and Items. -- */
.erl-field .erl-layout .erl-item--unpublished,
.erl-field .erl-layout.erl-item--unpublished {
  background: #fff4f4;
  border: lightgray dashed 1px;
  opacity: 0.7;
}

File

css/erl-widget.css
View source
  1. fieldset.erl-field {
  2. background: #f5f5f3;
  3. border: none;
  4. margin: 30px 0;
  5. padding: 60px 30px;
  6. }
  7. fieldset.erl-field > legend {
  8. line-height: 30px;
  9. top: 15px;
  10. }
  11. .erl-layout-wrapper {
  12. margin-top: 20px;
  13. }
  14. .erl-field .erl-layout {
  15. margin-bottom: 30px;
  16. position: relative;
  17. padding: 40px 0 0 0;
  18. }
  19. .erl-field .erl-layout__content {
  20. padding: 0 30px 15px 30px;
  21. }
  22. .erl-field .erl-layout__regions,
  23. .erl-field .erl-disabled-wrapper {
  24. background: #fff;
  25. }
  26. .erl-field .erl-layout-select .form-radios {
  27. display: flex;
  28. flex-wrap: wrap;
  29. align-content: flex-start;
  30. }
  31. .erl-field .layout-radio-item {
  32. padding: 5px;
  33. background: none;
  34. cursor: pointer;
  35. margin: 10px 10px 10px 0;
  36. text-align: left;
  37. width: 150px;
  38. }
  39. .erl-field .layout-radio-item input[type=radio] {
  40. display: none;
  41. }
  42. .erl-field .layout-radio-item .form-item {
  43. margin-top: 0;
  44. }
  45. .erl-field .layout-radio-item label {
  46. font-size: small;
  47. }
  48. .erl-field .layout-radio-item .layout-icon-wrapper {
  49. float: left;
  50. margin-right: 5px;
  51. }
  52. .erl-field .layout-radio-item.active {
  53. background: #fff;
  54. outline: 2px dotted blue;
  55. }
  56. .erl-field .layout-radio-item .layout-icon {
  57. float: left;
  58. margin: 0;
  59. }
  60. .erl-field .erl-add-item {
  61. text-align: center;
  62. }
  63. .erl-field .erl-layout.erl-item::before {
  64. content: "";
  65. top: 20px;
  66. height: 1px;
  67. background-color: #ccc;
  68. position: absolute;
  69. left: 0;
  70. right: 0;
  71. width: 100%;
  72. }
  73. .erl-field .erl-layout .erl-item,
  74. .erl-field .erl-disabled-items .erl-item {
  75. border: 1px solid #ffffff;
  76. box-sizing: border-box;
  77. padding: 30px;
  78. transition: all .15s linear;
  79. position: relative;
  80. }
  81. .erl-field .reversed .erl-item {
  82. border-color: rgba(0, 0, 0, .25);
  83. }
  84. .erl-field .erl-item .erl-actions .form-wrapper {
  85. background: none;
  86. }
  87. .erl-field .erl-layout-region:hover {
  88. border: 1px solid #ccc;
  89. }
  90. .erl-field .erl-layout .erl-item:hover {
  91. border-color: #0074bd;
  92. }
  93. .erl-field .reversed .erl-item:hover {
  94. border-color: #fff;
  95. }
  96. .erl-field .erl-item:hover:before {
  97. opacity: 1;
  98. }
  99. .erl-field .erl-layout-region {
  100. box-sizing: border-box;
  101. position: relative;
  102. border: 1px dashed #e5e5e3;
  103. transition: all .15s linear;
  104. min-height: 30px;
  105. padding: 30px;
  106. }
  107. /* -- Warnings -- */
  108. .erl-field .is_translating_warning {
  109. padding: 10px 0;
  110. color: orange;
  111. }
  112. /* -- Layout Controls -- */
  113. .erl-field .erl-layout .layout-controls,
  114. .erl-field .erl-layout .erl-actions {
  115. background: #f5f5f3;
  116. }
  117. .erl-field .erl-layout .erl-item .layout-controls,
  118. .erl-field .erl-layout .erl-item .erl-actions {
  119. background: none;
  120. }
  121. .erl-field .layout-controls {
  122. height: 30px;
  123. left: 0;
  124. position: absolute;
  125. top: 0;
  126. width: 90px;
  127. opacity: 0;
  128. }
  129. .erl-field .erl-item:hover > .layout-controls {
  130. opacity: 1;
  131. }
  132. .erl-field .erl-layout-section .erl-item:hover > .layout-controls {
  133. opacity: 1;
  134. }
  135. .erl-field .erl-layout-section .erl-item .layout-controls {
  136. background: none;
  137. }
  138. .layout-handle,
  139. .layout-down,
  140. .layout-up {
  141. cursor: pointer;
  142. height: 30px;
  143. left: 0;
  144. overflow: hidden;
  145. opacity: .75;
  146. position: absolute;
  147. top: 0;
  148. text-indent: 100%;
  149. width: 30px;
  150. }
  151. .layout-handle:hover,
  152. .layout-down:hover,
  153. .layout-up:hover {
  154. opacity: 1;
  155. cursor: pointer;
  156. }
  157. .layout-handle {
  158. background: url(../img/icon-move.png) 0 0 no-repeat;
  159. background-size: cover;
  160. display: none;
  161. }
  162. .reversed .layout-handle {
  163. background-image: url(../img/icon-move--reversed.png);
  164. }
  165. .dragula-enabled .layout-handle {
  166. display: block;
  167. }
  168. .layout-down {
  169. background: url(../img/icon-down.png) 0 0 no-repeat;
  170. background-size: cover;
  171. left: 60px;
  172. }
  173. .reversed .layout-down {
  174. background-image: url(../img/icon-down--reversed.png);
  175. }
  176. .layout-up {
  177. background: url(../img/icon-up.png) 0 0 no-repeat;
  178. background-size: cover;
  179. left: 30px;
  180. }
  181. .reversed .layout-up {
  182. background-image: url(../img/icon-up--reversed.png);
  183. }
  184. .erl-field .erl-layout:first-child > .layout-controls .layout-up,
  185. .erl-field .erl-layout:first-child .erl-item:first-child .layout-up {
  186. pointer-events: none;
  187. opacity: .15;
  188. }
  189. .erl-field .erl-layout:first-child .erl-item:first-child .layout-up {
  190. pointer-events: none;
  191. opacity: .15;
  192. }
  193. .erl-field .erl-layout:last-child > .layout-controls .layout-down,
  194. .erl-field .erl-layout:last-child .erl-item:nth-last-child(2) .layout-down {
  195. pointer-events: none;
  196. opacity: .15;
  197. }
  198. .gu-mirror .layout-down,
  199. .gu-mirror .layout-up {
  200. opacity: .25;
  201. }
  202. /* -- Item Actions (Edit and Delete Buttons) -- */
  203. .erl-field .erl-actions,
  204. .gu-mirror .erl-actions {
  205. position: absolute;
  206. right: 0;
  207. top: 0;
  208. padding: 0;
  209. margin: 0;
  210. visibility: hidden;
  211. }
  212. .erl-field .erl-item:hover > .erl-actions {
  213. visibility: visible;
  214. }
  215. .erl-field .erl-actions input.erl-edit,
  216. .erl-field .erl-actions input.erl-remove {
  217. cursor: pointer;
  218. height: 30px;
  219. width: 30px;
  220. margin: 0;
  221. text-indent: 100%;
  222. overflow: hidden;
  223. border: none;
  224. padding: 0;
  225. opacity: .5;
  226. transition: none;
  227. }
  228. .erl-field .erl-actions input.erl-edit {
  229. background: url(../img/icon-edit.png) 0 0 no-repeat;
  230. background-size: cover;
  231. }
  232. .erl-field .reversed .erl-actions input.erl-edit {
  233. background-image: url(../img/icon-edit--reversed.png);
  234. }
  235. .erl-field .erl-actions input.erl-remove {
  236. background: url(../img/icon-delete.png) 0 0 no-repeat;
  237. background-size: cover;
  238. }
  239. .erl-field .reversed .erl-actions input.erl-remove {
  240. background-image: url(../img/icon-delete--reversed.png);
  241. }
  242. .erl-field .erl-actions input.erl-edit:hover,
  243. .erl-field .erl-actions input.erl-remove:hover {
  244. opacity: 1;
  245. box-shadow: none;
  246. }
  247. /* -- Add content and add section buttons. -- */
  248. .erl-add-content-wrapper {
  249. position: relative;
  250. }
  251. .erl-add-content__container {
  252. position: absolute;
  253. left: 0;
  254. top: 100%;
  255. width: 100%;
  256. }
  257. .erl-add-content__toggle {
  258. position: absolute;
  259. bottom: 0;
  260. left: 50%;
  261. margin-left: -15px;
  262. border: none;
  263. color: #fff;
  264. font-weight: bold;
  265. z-index: 10;
  266. line-height: 1;
  267. padding: 0;
  268. opacity: 0;
  269. font-size: large;
  270. width: 30px;
  271. height: 30px;
  272. text-indent: 100%;
  273. overflow: hidden;
  274. background: url(../img/icon-add.png) 0 0 no-repeat;
  275. background-size: cover;
  276. transition: all .15s linear;
  277. -webkit-appearance: none;
  278. outline: none;
  279. border-radius: 50%;
  280. }
  281. .reversed .erl-add-content__toggle {
  282. background-image: url(../img/icon-add--reversed.png);
  283. }
  284. .erl-add-content__toggle.active {
  285. transform: rotate(45deg);
  286. }
  287. .erl-layout-region:hover button.erl-add-content__toggle {
  288. opacity: .75;
  289. }
  290. .erl-layout-region:hover button.erl-add-content__toggle:hover,
  291. .erl-layout-region:hover button.erl-add-content__toggle.active,
  292. .erl-layout-region button.erl-add-content__toggle.active {
  293. opacity: 1;
  294. }
  295. .erl-add-content__group {
  296. display: flex;
  297. flex-wrap: wrap;
  298. width: 100%;
  299. max-width: 800px;
  300. transform: translateX(-50%);
  301. position: absolute;
  302. left: 50%;
  303. top: 100%;
  304. background: #fff;
  305. z-index: 12;
  306. border: none;
  307. padding: 0;
  308. text-align: left;
  309. margin-left: -15px;
  310. box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
  311. max-height: 480px;
  312. overflow-y: auto;
  313. -webkit-overflow-scrolling: touch;
  314. }
  315. .erl-add-content__group.hidden {
  316. visibility: hidden !important;
  317. }
  318. .erl-add-content__group .erl-add-content__search {
  319. width: 100%;
  320. padding: 12px;
  321. position: sticky;
  322. top: 0;
  323. background: #fafbfd;
  324. border-bottom: 1px solid rgba(216, 217, 224, 0.8);
  325. }
  326. .erl-add-content__group .erl-add-content__input {
  327. width: 100%;
  328. }
  329. .erl-add-content__item {
  330. display: block;
  331. text-align: left;
  332. width: 100%;
  333. border: none;
  334. color: #0074bd;
  335. flex-basis: 25%;
  336. padding: 9px 18px;
  337. margin-bottom: 16px;
  338. }
  339. .erl-add-content__group--has-icons button {
  340. text-align: center;
  341. }
  342. .erl-add-content__item {
  343. display: block;
  344. text-align: left;
  345. }
  346. .erl-add-content__group button {
  347. background: none;
  348. display: block;
  349. width: 100%;
  350. border: none;
  351. color: #0074bd;
  352. text-align: left;
  353. padding: 9px 18px;
  354. }
  355. .erl-add-content__group button img {
  356. width: 24px;
  357. height: 24px;
  358. display: block;
  359. margin: 8px auto;
  360. }
  361. @media (min-width: 1024px) {
  362. .erl-add-content__group button img {
  363. width: 48px;
  364. height: 48px;
  365. }
  366. }
  367. .erl-add-content__group button:hover {
  368. background: #e5f1f8;
  369. color: #0074bd;
  370. display: block;
  371. width: 100%;
  372. border: none;
  373. }
  374. .erl-add-content--single {
  375. width: 160px;
  376. left: 50%;
  377. margin-left: -80px;
  378. padding: 0;
  379. text-align: center;
  380. position: absolute;
  381. z-index: 10;
  382. }
  383. .erl-item > .erl-add-content--single {
  384. opacity: 0;
  385. bottom: -52px;
  386. }
  387. .erl-item:hover > .erl-add-content--single {
  388. opacity: 1;
  389. }
  390. .erl-empty {
  391. position: relative;
  392. }
  393. .erl-add-content--single button {
  394. background: none;
  395. border: none;
  396. box-shadow: none;
  397. text-transform: uppercase;
  398. font-size: small;
  399. font-weight: bold;
  400. color: #9b9b9b;
  401. height: 60px;
  402. width: 100%;
  403. }
  404. .erl-add-content--single button:hover {
  405. color: #5e5e5e;
  406. text-decoration: underline;
  407. }
  408. .erl-add-content--single button .icon {
  409. font-weight: bold;
  410. font-size: large;
  411. }
  412. .erl-add-more-menu {
  413. width: 300px;
  414. position: absolute;
  415. left: 50%;
  416. top: 100%;
  417. background: #fff;
  418. z-index: 1000;
  419. border: none;
  420. box-shadow: 0 0 10px rgba(0, 0, 0, .25);
  421. outline: 1px solid #eee;
  422. }
  423. .erl-add-more-menu.beneath::before,
  424. .erl-add-more-menu.above::after {
  425. content: " ";
  426. width: 16px;
  427. height: 16px;
  428. display: block;
  429. left: 50%;
  430. margin-top: -8px;
  431. margin-left: -8px;
  432. position: absolute;
  433. background: #fff;
  434. transform: rotate(45deg);
  435. }
  436. .erl-loading div.loading {
  437. background: rgba(255, 255, 255, .8);
  438. position: absolute;
  439. width: 100%;
  440. height: 100%;
  441. top: 0;
  442. left: 0;
  443. z-index: 1005;
  444. }
  445. .erl-loading div.spinner {
  446. text-indent: -9999px;
  447. opacity: 1;
  448. width: 49px;
  449. height: 49px;
  450. position: absolute;
  451. top: 50%;
  452. left: 50%;
  453. margin-left: -25px;
  454. margin-top: -27px;
  455. border: 3px solid #0074bd;
  456. border-radius: 50%;
  457. border-left-color: transparent;
  458. border-right-color: transparent;
  459. animation: cssload-spin 575ms infinite linear;
  460. -o-animation: cssload-spin 575ms infinite linear;
  461. -webkit-animation: cssload-spin 575ms infinite linear;
  462. -moz-animation: cssload-spin 575ms infinite linear;
  463. }
  464. @keyframes cssload-spin {
  465. 100% {
  466. transform: rotate(360deg);
  467. }
  468. }
  469. @-o-keyframes cssload-spin {
  470. 100% {
  471. -o-transform: rotate(360deg);
  472. transform: rotate(360deg);
  473. }
  474. }
  475. @-ms-keyframes cssload-spin {
  476. 100% {
  477. -ms-transform: rotate(360deg);
  478. transform: rotate(360deg);
  479. }
  480. }
  481. @-webkit-keyframes cssload-spin {
  482. 100% {
  483. -webkit-transform: rotate(360deg);
  484. transform: rotate(360deg);
  485. }
  486. }
  487. @-moz-keyframes cssload-spin {
  488. 100% {
  489. -moz-transform: rotate(360deg);
  490. transform: rotate(360deg);
  491. }
  492. }
  493. .erl-add-more-menu.fade-in {
  494. animation: fadeIn ease .25s;
  495. -webkit-animation: fadeIn ease .25s;
  496. -moz-animation: fadeIn ease .25s;
  497. -o-animation: fadeIn ease .25s;
  498. }
  499. @keyframes fadeIn {
  500. 0% {
  501. opacity: 0;
  502. }
  503. 100% {
  504. opacity: 1;
  505. }
  506. }
  507. @-moz-keyframes fadeIn {
  508. 0% {
  509. opacity: 0;
  510. }
  511. 100% {
  512. opacity: 1;
  513. }
  514. }
  515. @-webkit-keyframes fadeIn {
  516. 0% {
  517. opacity: 0;
  518. }
  519. 100% {
  520. opacity: 1;
  521. }
  522. }
  523. @-o-keyframes fadeIn {
  524. 0% {
  525. opacity: 0;
  526. }
  527. 100% {
  528. opacity: 1;
  529. }
  530. }
  531. @-ms-keyframes fadeIn {
  532. 0% {
  533. opacity: 0;
  534. }
  535. 100% {
  536. opacity: 1;
  537. }
  538. }
  539. .erl-add-more-menu__search {
  540. padding: 20px;
  541. background: #fff;
  542. border-bottom: 1px solid #e7e7e7;
  543. }
  544. .erl-add-more-menu__search input {
  545. font-size: 14px;
  546. padding: 10px;
  547. display: block;
  548. box-sizing: border-box;
  549. width: 100%;
  550. border-radius: 3px;
  551. border: none;
  552. box-shadow: 0 0 0 1px #666;
  553. }
  554. .erl-add-more-menu__search input:focus {
  555. box-shadow: 0 0 0 1px #5f89db;
  556. outline: none;
  557. }
  558. .erl-add-more-menu__group {
  559. display: flex;
  560. flex-wrap: wrap;
  561. max-height: 480px;
  562. overflow-y: auto;
  563. -webkit-overflow-scrolling: touch;
  564. }
  565. .erl-add-more-menu__item {
  566. text-align: center;
  567. width: 33%;
  568. }
  569. .erl-add-more-menu__item a {
  570. text-align: center;
  571. display: block;
  572. padding: 10px 0;
  573. margin: 10px;
  574. text-decoration: none;
  575. font-size: 14px;
  576. color: #0074bd;
  577. }
  578. .erl-add-more-menu__item a:hover {
  579. background-color: #e7f1f7;
  580. }
  581. .erl-add-more-menu__item img {
  582. width: 24px;
  583. height: 24px;
  584. }
  585. /**
  586. * Disabled items.
  587. */
  588. .erl-disabled-items.form-item.form-wrapper {
  589. color: gray;
  590. position: relative;
  591. margin-top: 60px;
  592. border: 1px dashed #e5e5e3;
  593. }
  594. .erl-disabled-items .fieldset-wrapper {
  595. margin-top: 10px;
  596. }
  597. .erl-disabled-items__title {
  598. margin: 0;
  599. padding: 10px;
  600. }
  601. .erl-disabled-items__description {
  602. position: absolute;
  603. width: 100%;
  604. margin: 20px 0 0 0;
  605. top: 0;
  606. left: 0;
  607. text-align: center;
  608. }
  609. .erl-disabled-wrapper {
  610. position: relative;
  611. min-height: 60px;
  612. padding-bottom: 0;
  613. padding-top: 0;
  614. border: 1px dashed #e5e5e3;
  615. }
  616. /* -- Dragula Specific Styles -- */
  617. .gu-mirror {
  618. background: #fff;
  619. border: 1px solid #0074bd;
  620. box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
  621. cursor: grabbing;
  622. padding: 30px;
  623. box-sizing: border-box;
  624. overflow: hidden;
  625. }
  626. .gu-mirror:before {
  627. content: "";
  628. position: absolute;
  629. height: 30px;
  630. width: 30px;
  631. left: 0;
  632. top: 0;
  633. background: url(../img/icon-move.png) 0 0 no-repeat;
  634. background-size: cover;
  635. }
  636. .reversed .gu-mirror:before {
  637. background-image: url(../img/icon-move--reversed.png);
  638. }
  639. .erl-field .erl-item.gu-transit {
  640. background: #0074bd;
  641. }
  642. .erl-field .erl-item.gu-transit > * {
  643. visibility: hidden;
  644. }
  645. .paragraph-type-label {
  646. position: absolute;
  647. bottom: 0;
  648. right: 0;
  649. padding: 5px;
  650. margin: 0;
  651. border-top: 1px dashed #e5e5e3;
  652. border-left: 1px dashed #e5e5e3;
  653. font-style: italic;
  654. font-weight: normal !important;
  655. color: darkgray;
  656. }
  657. .paragraph-layout-label {
  658. position: absolute;
  659. top: 0;
  660. left: 50%;
  661. padding: 0;
  662. margin: auto;
  663. font-style: italic;
  664. font-weight: normal !important;
  665. color: darkgray;
  666. }
  667. /* -- Un-Published Layout and Items. -- */
  668. .erl-field .erl-layout .erl-item--unpublished,
  669. .erl-field .erl-layout.erl-item--unpublished {
  670. background: #fff4f4;
  671. border: lightgray dashed 1px;
  672. opacity: 0.7;
  673. }