paragraphs.widget.css

.paragraphs-badge {
  display: inline-block;
  padding: 0.15em 0.3em;
  background: #787878;
  border-radius: 4px;
  color: #fff;
  cursor: default;
  font-size: 90%;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  margin: 3px 0;
}

.paragraphs-badge:empty {
  display: none;
}

.js .paragraphs-description .paragraphs-content-wrapper,
.js .paragraphs-description .paragraphs-plugin-wrapper {
  position: relative;
  height: 1.538em;
  overflow: hidden;
  word-break: break-all;
  line-height: 1.538em;
  text-overflow: ellipsis;
}

.js .paragraphs-description .summary-plugin-label::after {
  content: ": ";
}

.js .paragraphs-description .summary-content {
  color: #666666;
}

.js .paragraphs-description .summary-plugin {
  display: inline-block;
  padding-right: 5px;
  font-size: 0.7rem;
  color: #888888;
}

.js .paragraphs-description .summary-plugin:not(:last-child) {
  border-right: 2px solid #e5e3de;
}

.js .paragraphs-description .summary-plugin:not(:first-child) {
  padding: 0 5px;
}

.js .behavior-active .paragraphs-expanded-description .paragraphs-plugin-wrapper,
.js .behavior-active .paragraphs-content {
  display: none;
}

.js .behavior-active .paragraphs-behavior {
  display: block;
}

.js .content-active .paragraphs-expanded-description .paragraphs-content-wrapper {
  display: none;
}

.paragraphs-icon {
  display: inline-block;
  height: 20px;
  width: 20px;
  background: no-repeat center;
  background-size: 16px 16px;
  vertical-align: middle;
}

.paragraphs-icon-view {
  background-image: url("../icons/icon-view.svg");
}

.paragraphs-icon-edit-info {
  background-image: url("../icons/icon-edit-info.svg");
}

.paragraphs-icon-edit-disabled {
  background-image: url("../icons/icon-edit-disabled.svg");
}

.paragraphs-icon-delete {
  background-image: url("../icons/icon-delete.svg");
}

.paragraphs-icon-delete-disabled {
  background-image: url("../icons/icon-delete-disabled.svg");
}

.paragraphs-icon-lock {
  background-image: url("../icons/icon-lock.svg");
}

.paragraphs-icon-changed {
  background-image: url("../icons/icon-changed.svg");
}

.paragraphs-icon-collapse {
  background-image: url("../icons/icon-collapse.svg");
}

.paragraphs-icon-warning {
  background-image: url("../icons/icon-warning.svg");
}

.paragraphs-icon-error {
  background-image: url("../icons/icon-error.svg");
}

@media (max-width: 768px) {
  .button.paragraphs-icon-button {
    padding: 0;
    width: 36px !important;
    height: 36px;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px;
    border-radius: 4px;
    text-indent: -9999em;
  }
  .button.paragraphs-icon-button-collapse, .button.paragraphs-icon-button-collapse:active, .button.paragraphs-icon-button-collapse:hover, .button.paragraphs-icon-button-collapse:focus {
    background-image: url("../icons/icon-collapse.svg");
  }
  .button.paragraphs-icon-button-collapse:disabled, .button.paragraphs-icon-button-collapse:disabled:active {
    background-image: url("../icons/icon-collapse-disabled.svg");
  }
  .button.paragraphs-icon-button-edit, .button.paragraphs-icon-button-edit:active, .button.paragraphs-icon-button-edit:hover, .button.paragraphs-icon-button-edit:focus {
    background-image: url("../icons/icon-edit.svg");
  }
  .button.paragraphs-icon-button-edit:disabled, .button.paragraphs-icon-button-edit:disabled:active {
    background-image: url("../icons/icon-edit-disabled.svg");
  }
}

.paragraphs-tabs-wrapper .paragraphs-tabs-hide {
  display: none;
}

.paragraph-bullet {
  text-align: center;
}

.paragraph-bullet:after {
  content: "\25cf";
  padding: 0 10px;
  color: #777;
  font-size: 0.75em;
  line-height: 3.5em;
}

@media (min-width: 768px) {
  .paragraph-bullet:after {
    line-height: 2.5em;
  }
}

.js .field--widget-paragraphs .paragraphs-nested .tabledrag-toggle-weight-wrapper {
  display: none;
}

.js .field--widget-paragraphs th .paragraphs-actions {
  float: right;
  margin-right: -11px;
}

.js .field--widget-paragraphs .form-actions {
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.js .field--widget-paragraphs .form-actions .dropbutton-multiple {
  margin-right: .5rem;
}

.js .field--widget-paragraphs .form-actions .placeholder {
  margin-left: .25em;
}

.js .field--widget-paragraphs .paragraphs-dropbutton-wrapper {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.js .field--widget-paragraphs .paragraphs-dropbutton-wrapper .dropbutton-multiple {
  margin: 0;
}

.js .field--widget-paragraphs .dropbutton-wrapper {
  width: auto;
  margin-right: 0;
  padding-right: 0;
}

.js .field--widget-paragraphs .field-multiple-table {
  margin-bottom: 10px;
}

.js .field--widget-paragraphs td {
  padding: 10px 0;
}

.js .field--widget-paragraphs .field-multiple-drag {
  vertical-align: middle;
  min-width: 40px;
}

.js .field--widget-paragraphs .draggable .tabledrag-handle {
  margin-left: 0;
  margin-top: 3px;
  padding-right: .25em;
  width: 23px;
}

.js .field--widget-paragraphs .draggable .tabledrag-handle:focus::before {
  margin-left: .1em;
  margin-right: .1em;
}

.js .field--widget-paragraphs .draggable .tabledrag-handle::after {
  margin-left: 0;
  padding: .5rem;
}

.js .field--widget-paragraphs .draggable .tabledrag-handle:hover .handle {
  -webkit-transform: scale(1.25);
          transform: scale(1.25);
}

.js .field--widget-paragraphs .tabledrag-changed {
  text-decoration: none;
}

.js .field--widget-paragraphs .tabledrag-handle .handle {
  height: 22px;
  margin-left: 0;
  margin-right: 0;
}

.js .field--widget-paragraphs .delta-order {
  padding-right: 10px;
  text-align: right;
}

.js .paragraph-top {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100px auto 1fr auto;
      grid-template-columns: 100px auto 1fr auto;
  -ms-grid-rows: auto auto;
      grid-template-rows: auto auto;
  grid-gap: 0 5px;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
}

@media (min-width: 992px) {
  .js .paragraph-top {
    -ms-grid-columns: 150px auto 1fr auto;
        grid-template-columns: 150px auto 1fr auto;
  }
}

.js .paragraph-top .paragraph-type {
  grid-column: 1 / 2;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1 / span 1;
}

.js .paragraph-top .paragraph-info {
  grid-column: 2 / 3;
  -ms-grid-column: 2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1 / span 1;
}

.js .paragraph-top .paragraph-summary {
  grid-column: 1 / 5;
  -ms-grid-column: 1;
  -ms-grid-column-span: 5;
  -ms-grid-row: 2;
  -ms-grid-row-span: 1;
  grid-row: 2 / span 1;
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .js .paragraph-top .paragraph-summary {
    grid-column: 3 / 4;
    -ms-grid-column: 3;
    -ms-grid-column-span: 1;
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1 / span 2;
  }
}

.js .paragraph-top .paragraphs-actions {
  grid-column: 3 / 5;
  -ms-grid-column: 3;
  -ms-grid-column-span: 2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1 / span 1;
  justify-self: end;
  -ms-grid-column-align: end;
}

@media (min-width: 600px) {
  .js .paragraph-top .paragraphs-actions {
    grid-column: 4 / 5;
    -ms-grid-column: 4;
    -ms-grid-column-span: 1;
  }
}

.js .paragraphs-subform {
  margin-top: 5px;
}

.draggable:hover .paragraphs-description::after {
  background: -webkit-gradient(linear, left top, right top, from(rgba(247, 252, 255, 0)), to(#f7fcff));
  background: linear-gradient(to right, rgba(247, 252, 255, 0) 0%, #f7fcff 100%);
}

.drag-previous .paragraphs-description::after {
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 221, 0)), to(#ffd));
  background: linear-gradient(to right, rgba(255, 255, 221, 0) 0%, #ffd 100%);
}

tr:hover .paragraphs-description::after {
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 221, 0)), to(#f7fcff));
  background: linear-gradient(to right, rgba(255, 255, 221, 0) 0%, #f7fcff 100%);
}

.js .paragraph-type {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.js .paragraph-type-title {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-basis: 100px;
      -ms-flex-preferred-size: 100px;
          flex-basis: 100px;
  min-width: 100px;
}

.js .paragraph-type-icon {
  padding-right: 5px;
  height: 16px;
  width: 16px;
  vertical-align: middle;
}

.js .paragraph-type-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@media (min-width: 600px) {
  .js .paragraph-type-add-modal {
    display: inline-block;
  }
}

.js .paragraph-type-add-modal-button {
  display: inline-block;
}

.js .paragraph-type-add-modal-button:hover {
  color: #ffffff;
  background: #057ec7 none;
}

.paragraphs-dragdrop__item .paragraphs-summary-wrapper .paragraphs-description .paragraphs-content-wrapper,
.paragraphs-dragdrop__item .paragraphs-summary-wrapper .paragraphs-description .paragraphs-plugin-wrapper {
  font-size: 81.3%;
}

.js .paragraphs-convert-button {
  margin-left: 0;
}

.paragraph--view-mode--preview {
  padding-right: 1em;
}

.is-horizontal .paragraphs-tabs .tabs__tab {
  border-bottom: 0;
}

.paragraphs-behavior {
  display: none;
}

.first-paragraph {
  -webkit-transition: background-color .3s linear;
  transition: background-color .3s linear;
}

.paragraph-hover {
  background-color: #f7fcff;
}

@media (min-width: 768px) {
  /* Basic node form sticky paragraph tabs implementation. */
  .is-horizontal .paragraphs-tabs:first-of-type {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    margin-top: 0;
    padding-top: 5px !important;
    /* Toolbar bar minimum z-index is 501 so we need to be lower, other way
       our sticky tabs will be on top of toolbar menu. */
    z-index: 500;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .toolbar-fixed .is-horizontal .paragraphs-tabs:first-of-type {
    top: 39px;
  }
  .toolbar-fixed.toolbar-horizontal.toolbar-tray-open .is-horizontal .paragraphs-tabs:first-of-type {
    top: 79px;
  }
}

File

paragraphs/css/paragraphs.widget.css
View source
  1. .paragraphs-badge {
  2. display: inline-block;
  3. padding: 0.15em 0.3em;
  4. background: #787878;
  5. border-radius: 4px;
  6. color: #fff;
  7. cursor: default;
  8. font-size: 90%;
  9. line-height: 1;
  10. text-align: center;
  11. white-space: nowrap;
  12. vertical-align: baseline;
  13. margin: 3px 0;
  14. }
  15. .paragraphs-badge:empty {
  16. display: none;
  17. }
  18. .js .paragraphs-description .paragraphs-content-wrapper,
  19. .js .paragraphs-description .paragraphs-plugin-wrapper {
  20. position: relative;
  21. height: 1.538em;
  22. overflow: hidden;
  23. word-break: break-all;
  24. line-height: 1.538em;
  25. text-overflow: ellipsis;
  26. }
  27. .js .paragraphs-description .summary-plugin-label::after {
  28. content: ": ";
  29. }
  30. .js .paragraphs-description .summary-content {
  31. color: #666666;
  32. }
  33. .js .paragraphs-description .summary-plugin {
  34. display: inline-block;
  35. padding-right: 5px;
  36. font-size: 0.7rem;
  37. color: #888888;
  38. }
  39. .js .paragraphs-description .summary-plugin:not(:last-child) {
  40. border-right: 2px solid #e5e3de;
  41. }
  42. .js .paragraphs-description .summary-plugin:not(:first-child) {
  43. padding: 0 5px;
  44. }
  45. .js .behavior-active .paragraphs-expanded-description .paragraphs-plugin-wrapper,
  46. .js .behavior-active .paragraphs-content {
  47. display: none;
  48. }
  49. .js .behavior-active .paragraphs-behavior {
  50. display: block;
  51. }
  52. .js .content-active .paragraphs-expanded-description .paragraphs-content-wrapper {
  53. display: none;
  54. }
  55. .paragraphs-icon {
  56. display: inline-block;
  57. height: 20px;
  58. width: 20px;
  59. background: no-repeat center;
  60. background-size: 16px 16px;
  61. vertical-align: middle;
  62. }
  63. .paragraphs-icon-view {
  64. background-image: url("../icons/icon-view.svg");
  65. }
  66. .paragraphs-icon-edit-info {
  67. background-image: url("../icons/icon-edit-info.svg");
  68. }
  69. .paragraphs-icon-edit-disabled {
  70. background-image: url("../icons/icon-edit-disabled.svg");
  71. }
  72. .paragraphs-icon-delete {
  73. background-image: url("../icons/icon-delete.svg");
  74. }
  75. .paragraphs-icon-delete-disabled {
  76. background-image: url("../icons/icon-delete-disabled.svg");
  77. }
  78. .paragraphs-icon-lock {
  79. background-image: url("../icons/icon-lock.svg");
  80. }
  81. .paragraphs-icon-changed {
  82. background-image: url("../icons/icon-changed.svg");
  83. }
  84. .paragraphs-icon-collapse {
  85. background-image: url("../icons/icon-collapse.svg");
  86. }
  87. .paragraphs-icon-warning {
  88. background-image: url("../icons/icon-warning.svg");
  89. }
  90. .paragraphs-icon-error {
  91. background-image: url("../icons/icon-error.svg");
  92. }
  93. @media (max-width: 768px) {
  94. .button.paragraphs-icon-button {
  95. padding: 0;
  96. width: 36px !important;
  97. height: 36px;
  98. background-position: center !important;
  99. background-repeat: no-repeat !important;
  100. background-size: 24px 24px;
  101. border-radius: 4px;
  102. text-indent: -9999em;
  103. }
  104. .button.paragraphs-icon-button-collapse, .button.paragraphs-icon-button-collapse:active, .button.paragraphs-icon-button-collapse:hover, .button.paragraphs-icon-button-collapse:focus {
  105. background-image: url("../icons/icon-collapse.svg");
  106. }
  107. .button.paragraphs-icon-button-collapse:disabled, .button.paragraphs-icon-button-collapse:disabled:active {
  108. background-image: url("../icons/icon-collapse-disabled.svg");
  109. }
  110. .button.paragraphs-icon-button-edit, .button.paragraphs-icon-button-edit:active, .button.paragraphs-icon-button-edit:hover, .button.paragraphs-icon-button-edit:focus {
  111. background-image: url("../icons/icon-edit.svg");
  112. }
  113. .button.paragraphs-icon-button-edit:disabled, .button.paragraphs-icon-button-edit:disabled:active {
  114. background-image: url("../icons/icon-edit-disabled.svg");
  115. }
  116. }
  117. .paragraphs-tabs-wrapper .paragraphs-tabs-hide {
  118. display: none;
  119. }
  120. .paragraph-bullet {
  121. text-align: center;
  122. }
  123. .paragraph-bullet:after {
  124. content: "\25cf";
  125. padding: 0 10px;
  126. color: #777;
  127. font-size: 0.75em;
  128. line-height: 3.5em;
  129. }
  130. @media (min-width: 768px) {
  131. .paragraph-bullet:after {
  132. line-height: 2.5em;
  133. }
  134. }
  135. .js .field--widget-paragraphs .paragraphs-nested .tabledrag-toggle-weight-wrapper {
  136. display: none;
  137. }
  138. .js .field--widget-paragraphs th .paragraphs-actions {
  139. float: right;
  140. margin-right: -11px;
  141. }
  142. .js .field--widget-paragraphs .form-actions {
  143. -webkit-box-align: center;
  144. -webkit-align-items: center;
  145. -ms-flex-align: center;
  146. align-items: center;
  147. }
  148. .js .field--widget-paragraphs .form-actions .dropbutton-multiple {
  149. margin-right: .5rem;
  150. }
  151. .js .field--widget-paragraphs .form-actions .placeholder {
  152. margin-left: .25em;
  153. }
  154. .js .field--widget-paragraphs .paragraphs-dropbutton-wrapper {
  155. display: -webkit-inline-box;
  156. display: -webkit-inline-flex;
  157. display: -ms-inline-flexbox;
  158. display: inline-flex;
  159. margin: 0;
  160. padding: 0;
  161. }
  162. .js .field--widget-paragraphs .paragraphs-dropbutton-wrapper .dropbutton-multiple {
  163. margin: 0;
  164. }
  165. .js .field--widget-paragraphs .dropbutton-wrapper {
  166. width: auto;
  167. margin-right: 0;
  168. padding-right: 0;
  169. }
  170. .js .field--widget-paragraphs .field-multiple-table {
  171. margin-bottom: 10px;
  172. }
  173. .js .field--widget-paragraphs td {
  174. padding: 10px 0;
  175. }
  176. .js .field--widget-paragraphs .field-multiple-drag {
  177. vertical-align: middle;
  178. min-width: 40px;
  179. }
  180. .js .field--widget-paragraphs .draggable .tabledrag-handle {
  181. margin-left: 0;
  182. margin-top: 3px;
  183. padding-right: .25em;
  184. width: 23px;
  185. }
  186. .js .field--widget-paragraphs .draggable .tabledrag-handle:focus::before {
  187. margin-left: .1em;
  188. margin-right: .1em;
  189. }
  190. .js .field--widget-paragraphs .draggable .tabledrag-handle::after {
  191. margin-left: 0;
  192. padding: .5rem;
  193. }
  194. .js .field--widget-paragraphs .draggable .tabledrag-handle:hover .handle {
  195. -webkit-transform: scale(1.25);
  196. transform: scale(1.25);
  197. }
  198. .js .field--widget-paragraphs .tabledrag-changed {
  199. text-decoration: none;
  200. }
  201. .js .field--widget-paragraphs .tabledrag-handle .handle {
  202. height: 22px;
  203. margin-left: 0;
  204. margin-right: 0;
  205. }
  206. .js .field--widget-paragraphs .delta-order {
  207. padding-right: 10px;
  208. text-align: right;
  209. }
  210. .js .paragraph-top {
  211. display: -ms-grid;
  212. display: grid;
  213. -ms-grid-columns: 100px auto 1fr auto;
  214. grid-template-columns: 100px auto 1fr auto;
  215. -ms-grid-rows: auto auto;
  216. grid-template-rows: auto auto;
  217. grid-gap: 0 5px;
  218. -webkit-box-align: baseline;
  219. -webkit-align-items: baseline;
  220. -ms-flex-align: baseline;
  221. align-items: baseline;
  222. }
  223. @media (min-width: 992px) {
  224. .js .paragraph-top {
  225. -ms-grid-columns: 150px auto 1fr auto;
  226. grid-template-columns: 150px auto 1fr auto;
  227. }
  228. }
  229. .js .paragraph-top .paragraph-type {
  230. grid-column: 1 / 2;
  231. -ms-grid-column: 1;
  232. -ms-grid-row: 1;
  233. -ms-grid-row-span: 1;
  234. grid-row: 1 / span 1;
  235. }
  236. .js .paragraph-top .paragraph-info {
  237. grid-column: 2 / 3;
  238. -ms-grid-column: 2;
  239. -ms-grid-row: 1;
  240. -ms-grid-row-span: 1;
  241. grid-row: 1 / span 1;
  242. }
  243. .js .paragraph-top .paragraph-summary {
  244. grid-column: 1 / 5;
  245. -ms-grid-column: 1;
  246. -ms-grid-column-span: 5;
  247. -ms-grid-row: 2;
  248. -ms-grid-row-span: 1;
  249. grid-row: 2 / span 1;
  250. overflow: hidden;
  251. white-space: nowrap;
  252. }
  253. @media (min-width: 600px) {
  254. .js .paragraph-top .paragraph-summary {
  255. grid-column: 3 / 4;
  256. -ms-grid-column: 3;
  257. -ms-grid-column-span: 1;
  258. -ms-grid-row: 1;
  259. -ms-grid-row-span: 2;
  260. grid-row: 1 / span 2;
  261. }
  262. }
  263. .js .paragraph-top .paragraphs-actions {
  264. grid-column: 3 / 5;
  265. -ms-grid-column: 3;
  266. -ms-grid-column-span: 2;
  267. -ms-grid-row: 1;
  268. -ms-grid-row-span: 1;
  269. grid-row: 1 / span 1;
  270. justify-self: end;
  271. -ms-grid-column-align: end;
  272. }
  273. @media (min-width: 600px) {
  274. .js .paragraph-top .paragraphs-actions {
  275. grid-column: 4 / 5;
  276. -ms-grid-column: 4;
  277. -ms-grid-column-span: 1;
  278. }
  279. }
  280. .js .paragraphs-subform {
  281. margin-top: 5px;
  282. }
  283. .draggable:hover .paragraphs-description::after {
  284. background: -webkit-gradient(linear, left top, right top, from(rgba(247, 252, 255, 0)), to(#f7fcff));
  285. background: linear-gradient(to right, rgba(247, 252, 255, 0) 0%, #f7fcff 100%);
  286. }
  287. .drag-previous .paragraphs-description::after {
  288. background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 221, 0)), to(#ffd));
  289. background: linear-gradient(to right, rgba(255, 255, 221, 0) 0%, #ffd 100%);
  290. }
  291. tr:hover .paragraphs-description::after {
  292. background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 221, 0)), to(#f7fcff));
  293. background: linear-gradient(to right, rgba(255, 255, 221, 0) 0%, #f7fcff 100%);
  294. }
  295. .js .paragraph-type {
  296. text-overflow: ellipsis;
  297. overflow: hidden;
  298. white-space: nowrap;
  299. }
  300. .js .paragraph-type-title {
  301. display: -webkit-box;
  302. display: -webkit-flex;
  303. display: -ms-flexbox;
  304. display: flex;
  305. -webkit-flex-basis: 100px;
  306. -ms-flex-preferred-size: 100px;
  307. flex-basis: 100px;
  308. min-width: 100px;
  309. }
  310. .js .paragraph-type-icon {
  311. padding-right: 5px;
  312. height: 16px;
  313. width: 16px;
  314. vertical-align: middle;
  315. }
  316. .js .paragraph-type-label {
  317. text-overflow: ellipsis;
  318. white-space: nowrap;
  319. overflow: hidden;
  320. }
  321. @media (min-width: 600px) {
  322. .js .paragraph-type-add-modal {
  323. display: inline-block;
  324. }
  325. }
  326. .js .paragraph-type-add-modal-button {
  327. display: inline-block;
  328. }
  329. .js .paragraph-type-add-modal-button:hover {
  330. color: #ffffff;
  331. background: #057ec7 none;
  332. }
  333. .paragraphs-dragdrop__item .paragraphs-summary-wrapper .paragraphs-description .paragraphs-content-wrapper,
  334. .paragraphs-dragdrop__item .paragraphs-summary-wrapper .paragraphs-description .paragraphs-plugin-wrapper {
  335. font-size: 81.3%;
  336. }
  337. .js .paragraphs-convert-button {
  338. margin-left: 0;
  339. }
  340. .paragraph--view-mode--preview {
  341. padding-right: 1em;
  342. }
  343. .is-horizontal .paragraphs-tabs .tabs__tab {
  344. border-bottom: 0;
  345. }
  346. .paragraphs-behavior {
  347. display: none;
  348. }
  349. .first-paragraph {
  350. -webkit-transition: background-color .3s linear;
  351. transition: background-color .3s linear;
  352. }
  353. .paragraph-hover {
  354. background-color: #f7fcff;
  355. }
  356. @media (min-width: 768px) {
  357. /* Basic node form sticky paragraph tabs implementation. */
  358. .is-horizontal .paragraphs-tabs:first-of-type {
  359. position: -webkit-sticky;
  360. position: sticky;
  361. top: 0;
  362. margin-top: 0;
  363. padding-top: 5px !important;
  364. /* Toolbar bar minimum z-index is 501 so we need to be lower, other way
  365. our sticky tabs will be on top of toolbar menu. */
  366. z-index: 500;
  367. background-color: rgba(255, 255, 255, 0.9);
  368. }
  369. .toolbar-fixed .is-horizontal .paragraphs-tabs:first-of-type {
  370. top: 39px;
  371. }
  372. .toolbar-fixed.toolbar-horizontal.toolbar-tray-open .is-horizontal .paragraphs-tabs:first-of-type {
  373. top: 79px;
  374. }
  375. }