You are here

layout-paragraphs-widget.css in Layout Paragraphs 1.0.x

fieldset.layout-paragraphs-field {
  background: #f5f5f3;
  border: none;
  margin: 30px 0;
  padding: 60px 30px;
  position: relative;
}
fieldset.layout-paragraphs-field > .fieldset-wrapper,
fieldset.layout-paragraphs-field > .fieldset__wrapper  {
  margin-top: 20px;
  padding-bottom: 20px;
  position: relative;
}

fieldset.layout-paragraphs-field > legend {
  line-height: 30px;
  top: 15px;
}
.layout-paragraphs-field .active-items {
  min-height: 40px;
}
.layout-paragraphs-field .layout-paragraphs-item {
  position: relative;
  padding: 25px 0 0 0;
}
.layout-paragraphs-field .layout-paragraphs-layout {
  position: relative;
  padding: 25px 0 0 0;
}
.layout-paragraphs-field .layout-paragraphs-layout__content {
  padding: 0 30px 15px 30px;
}
.layout-paragraphs-field .layout-paragraphs-layout__regions,
.layout-paragraphs-field .layout-paragraphs-disabled-wrapper {
  background: #fff;
}
.layout-paragraphs-field .layout-select {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.layout-paragraphs-field .layout-select__item label {
  display: flex;
  align-items: center;
  font-size: small;
  padding: 10px;
  background: none;
  cursor: pointer;
  margin: 0 10px 10px 0;
  text-align: left;
  width: 150px;
  border: 1px solid #d0d0d0;
}
.layout-paragraphs-field .layout-select__item input.layout-paragraphs-layout-select {
  position: absolute;
  opacity: 0;
}

.layout-paragraphs-field .layout-select__item input:checked + label {
  border: 1px solid blue;
}

.layout-paragraphs-field input:focus + label {
  outline: auto 5px Highlight;
  outline: auto 5px -webkit-focus-ring-color;
}
.layout-paragraphs-field .layout-select__item-icon {
  margin-right: 10px;
  padding: 0;
  display: block;
}
.layout-paragraphs-field .layout-select__item-icon svg {
  display: block;
}
.layout-paragraphs-field .layout-paragraphs-add-item {
  text-align: center;
}
.layout-paragraphs-field .layout-paragraphs-item,
.layout-paragraphs-field.is-moving .layout-paragraphs-item:hover,
.layout-paragraphs-field .layout-paragraphs-disabled-items .layout-paragraphs-item {
  border: 1px solid #ffffff;
  box-sizing: border-box;
  padding: 30px;
  transition: all .15s linear;
  position: relative;
}
.layout-paragraphs-field .reversed .layout-paragraphs-item {
  border-color: rgba(0, 0, 0, .25);
}
.layout-paragraphs-field .layout-paragraphs-item .layout-paragraphs-actions .form-wrapper {
  background: none;
}
.layout-paragraphs-field .layout-paragraphs-layout-region:hover,
.layout-paragraphs-field .layout-paragraphs-layout-region:focus-within{
  border: 1px solid #ccc;
}
.layout-paragraphs-field .layout-paragraphs-item:hover,
.layout-paragraphs-field.is-moving .layout-paragraphs-item.is-moving:hover,
.layout-paragraphs-field .layout-paragraphs-item:focus-within,
.layout-paragraphs-field .layout-paragraphs-item.is-moving {
  border-color: #0074bd;
}
.layout-paragraphs-field .reversed .layout-paragraphs-item:hover {
  border-color: #fff;
}
.layout-paragraphs-field .layout-paragraphs-item:hover:before {
  opacity: 1;
}
.layout-paragraphs-field .layout-paragraphs-layout-region {
  box-sizing: border-box;
  position: relative;
  border: 1px dashed #e5e5e3;
  transition: all .15s linear;
  min-height: 50px;
  padding: 10px;
}

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

/* -- Layout Controls -- */

.layout-paragraphs-field .layout-paragraphs-layout .layout-paragraphs-item .layout-controls,
.layout-paragraphs-field .layout-paragraphs-layout .layout-paragraphs-item .layout-paragraphs-actions {
  background: none;
}
.layout-paragraphs-field .layout-controls {
  height: 28px;
  left: 2px;
  position: absolute;
  top: 2px;
  width: 90px;
  opacity: 0;
}
.layout-paragraphs-field .layout-paragraphs-moving-message {
  position: absolute;
  padding: 3px 0;
  width: 100%;
  text-align: center;
  background: #efefef;
  top: 0px;
  left: 0;
}

.layout-paragraphs-field .layout-paragraphs-item:hover > .layout-controls,
.layout-paragraphs-field .layout-paragraphs-item:focus-within > .layout-controls {
  opacity: 1;
}
.layout-paragraphs-field .layout-paragraphs-layout-section .layout-paragraphs-item:hover > .layout-controls {
  opacity: 1;
}
.layout-paragraphs-field .layout-paragraphs-layout-section .layout-paragraphs-item .layout-controls {
  background: none;
}
.layout-handle,
.layout-down,
.layout-up {
  cursor: pointer;
  display: block;
  height: 28px;
  left: 0;
  overflow: hidden;
  opacity: .75;
  position: absolute;
  top: 0;
  text-indent: 100%;
  width: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  text-indent: -9999px;
}
.layout-handle:hover,
.layout-down:hover,
.layout-up:hover {
  opacity: 1;
  cursor: pointer;
}
.layout-handle:hover {
  cursor: grab;
}
.layout-handle:focus,
.layout-down:focus,
.layout-up:focus {
  opacity: 1;
}
.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);
}
.layout-down:disabled,
.layout-up:disabled {
  pointer-events: none;
  opacity: .15;
}
.gu-mirror .layout-down,
.gu-mirror .layout-up {
  opacity: .25;
}

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

/* -- Add content and add section buttons. -- */
.layout-paragraphs-add-content-wrapper {
  position: relative;
}
.layout-paragraphs-add-content__container {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
}
.layout-paragraphs-add-content__toggle {
  position: absolute;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  border: none;
  color: #fff;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
  padding: 0;
  opacity: .75;
  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;
  border-radius: 50%;
}
.layout-paragraphs-field > .layout-paragraphs-add-content__toggle {
  top: 50%;
}
.layout-paragraphs-loading .layout-paragraphs-add-content__toggle {
  opacity: 0 !important;
}
.layout-paragraphs-layout-region > .layout-paragraphs-add-content__toggle {
  top: 25px;
}
.layout-paragraphs-item > .layout-paragraphs-add-content__toggle:first-of-type {
  top: 0;
}
.layout-paragraphs-item > .layout-paragraphs-add-content__toggle:last-of-type {
  bottom: -17px;
}
.reversed .layout-paragraphs-add-content__toggle {
  background-image: url(../img/icon-add--reversed.png);
}
.layout-paragraphs-add-content__toggle.active {
  transform: rotate(45deg);
}
.layout-paragraphs-item button.layout-paragraphs-add-content__toggle {
  opacity: 0;
}
.layout-paragraphs-layout-region:hover > button.layout-paragraphs-add-content__toggle,
.layout-paragraphs-item:hover > button.layout-paragraphs-add-content__toggle,
.layout-paragraphs-item:focus-within > button.layout-paragraphs-add-content__toggle {
  opacity: .75;
}
.layout-paragraphs-item button.layout-paragraphs-add-content__toggle:hover,
.layout-paragraphs-item button.layout-paragraphs-add-content__toggle.active,
.layout-paragraphs-item button.layout-paragraphs-add-content__toggle.active,
.layout-paragraphs-item button.layout-paragraphs-add-content__toggle:focus {
  opacity: 1;
  cursor: pointer;
}

.layout-paragraphs-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;
}
.layout-paragraphs-add-content__group.hidden {
  visibility: hidden !important;
}
.layout-paragraphs-add-content__group .layout-paragraphs-add-content__search {
  width: 100%;
  padding: 12px;
  position: sticky;
  top: 0;
  background: #fafbfd;
  border-bottom: 1px solid rgba(216, 217, 224, 0.8);
}
.layout-paragraphs-add-content__group .layout-paragraphs-add-content__input {
  width: 100%;
}
.layout-paragraphs-add-content__item {
  display: block;
  width: 100%;
  border: none;
  color: #0074bd;
  flex-basis: 25%;
  text-align: left;
  padding: 9px 18px;
  margin-bottom: 16px;
}
.layout-paragraphs-add-content__group--has-icons button {
  text-align: center;
}
.layout-paragraphs-add-content__item {
  display: block;
  text-align: left;
}
.layout-paragraphs-empty {
  position: relative;
}
.layout-paragraphs-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);
}
.layout-paragraphs-add-more-menu.beneath::before {
  content: " ";
  width: 16px;
  height: 16px;
  display: block;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  position: absolute;
  background: #fff;
  transform: rotate(45deg);
}
.layout-paragraphs-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);
}
.layout-paragraphs-loading div.loading {
  background: rgba(255, 255, 255, .8);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1005;
}
.layout-paragraphs-loading div.spinner {
  text-indent: 0;
  font-size: 0;
  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);
  }
}
.layout-paragraphs-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;
  }
}
.layout-paragraphs-add-more-menu__search {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}
.layout-paragraphs-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;
}
.layout-paragraphs-add-more-menu__group hr {
  margin: 0 20px;
  border: none;
  height: 1px;
  background-color: #e7e7e7;;
}
.layout-paragraphs-add-more-menu__group--layout,
.layout-paragraphs-add-more-menu__group--content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.layout-paragraphs-add-more-menu__item {
  text-align: center;
  width: 33%;
}
.layout-paragraphs-add-more-menu__item a {
  text-align: center;
  display: block;
  padding: 10px 0;
  margin: 10px;
  text-decoration: none;
  font-size: 14px;
  color: #0074bd;
}
.layout-paragraphs-add-more-menu__item a:hover {
  background-color: #e7f1f7;
}
.layout-paragraphs-add-more-menu__item img {
  width: 24px;
  height: 24px;
}
/**
 * Disabled items.
 */
.layout-paragraphs-disabled-items.form-item.form-wrapper {
  color: gray;
  position: relative;
  margin-top: 60px;
  border: 1px dashed #e5e5e3;
}
.layout-paragraphs-disabled-items__title {
  margin: 0;
  padding: 10px;
}
.layout-paragraphs-disabled-items__description {
  text-align: center;
  padding: 20px;
}
.layout-paragraphs-disabled-items__items {
  padding: 10px;
}
.layout-paragraphs-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);
}
.layout-paragraphs-field .layout-paragraphs-item.gu-transit {
  background: #0074bd;
}
.layout-paragraphs-field .layout-paragraphs-item.gu-transit > * {
  visibility: hidden;
}

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

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

/* -- Paragraphs and Layout Labels. -- */

.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: 26px 0 0 0;
  margin: auto;
  font-style: italic;
  font-weight: normal !important;
  color: darkgray;
}

/**
 * Ensures that autocomplete elements
 * appear above, not below, the Layout Paragraphs dialog.
 */
.ui-autocomplete.ui-front {
  z-index: 1300;
}

File

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