You are here

paragraphs_browser.css in Paragraphs Browser 8

/**
 * For custom styles.
 */

.field--widget-entity-reference-paragraphs-browser {
  margin-bottom: 2em;
}

.field--widget-entity-reference-paragraphs-browser .js-hide {
  display: none !important;
}

.paragraphs-browser-wrapper .form-item-filters {
  display: inline-block;
}

.paragraphs-browser-wrapper .form-item-pb-modal-text {
  margin: 0.75em 0 1.75em;
}

@media screen and (min-width: 480px) {
  .paragraphs-browser-wrapper .form-item-pb-modal-text {
    display: inline-block;
    margin: 0.75em 0 0.75em 15px;
  }
}

.paragraphs-browser-wrapper .form-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.paragraphs-browser-wrapper .form-wrapper {
  margin: 1em 0 3em;
}

.paragraphs-browser-wrapper .form-wrapper:last-child {
  margin: 1em 0;
}

.paragraphs-browser-wrapper h2 {
  width: 100%;
  margin: 0;
}

.paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 10px 35px;
  margin-right: 0;
  position: relative;
}

@media screen and (min-width: 480px) {
  .paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
    width: 48%;
    margin-left: 2.99%;
  }

  .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
    margin-left: 0;
  }
}

@media screen and (min-width: 600px) {
  .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
    margin-left: 1.99%;
  }

  .paragraphs-browser-wrapper fieldset:nth-of-type(2n+1) {
    margin-left: 0;
  }
}

@media screen and (min-width: 800px) {
  .paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
    margin-left: 1.99%;
    width: 32%;
  }

  .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
    margin-left: 1.99%;
  }

  .paragraphs-browser-wrapper fieldset:nth-of-type(3n+1) {
    margin-left: 0;
  }
}

.paragraphs-browser-wrapper fieldset:not(.fieldgroup) legend {
  text-align: center;
  position: relative;
  letter-spacing: 0;
  margin: 0;
  top: 0;
  width: 100%;
}

.paragraphs-browser-wrapper fieldset div {
  text-align: center;
}

.paragraphs-browser-wrapper fieldset input {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -85%);
  max-width: 30%;
  margin: 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .25);
}

@media screen and (min-width: 480px) {
  .paragraphs-browser-wrapper fieldset input {
    max-width: 50%;
  }
}

@media screen and (min-width: 600px) {
  .paragraphs-browser-wrapper fieldset input {
    transform: translate(-50%, -50%);
  }
}

.paragraphs-browser-wrapper img {
  max-width: 100%;
  height: auto;
}

.paragraphs-browser-paragraph-type {
  cursor: pointer;
}

.paragraphs-browser-paragraph-type:hover {
  border-color: #00a5e3;
}

.paragraph-type-title .paragraph-group {
  font-weight: bold;
}

.paragraphs-browser-settings-form .draggable a.tabledrag-handle {
  margin-top: 10px;
}

.paragraphs-browser-settings-form .draggable a.tabledrag-handle + div {
  display: inline-block;
}

File

css/paragraphs_browser.css
View source
  1. /**
  2. * For custom styles.
  3. */
  4. .field--widget-entity-reference-paragraphs-browser {
  5. margin-bottom: 2em;
  6. }
  7. .field--widget-entity-reference-paragraphs-browser .js-hide {
  8. display: none !important;
  9. }
  10. .paragraphs-browser-wrapper .form-item-filters {
  11. display: inline-block;
  12. }
  13. .paragraphs-browser-wrapper .form-item-pb-modal-text {
  14. margin: 0.75em 0 1.75em;
  15. }
  16. @media screen and (min-width: 480px) {
  17. .paragraphs-browser-wrapper .form-item-pb-modal-text {
  18. display: inline-block;
  19. margin: 0.75em 0 0.75em 15px;
  20. }
  21. }
  22. .paragraphs-browser-wrapper .form-wrapper {
  23. display: flex;
  24. flex-wrap: wrap;
  25. }
  26. .paragraphs-browser-wrapper .form-wrapper {
  27. margin: 1em 0 3em;
  28. }
  29. .paragraphs-browser-wrapper .form-wrapper:last-child {
  30. margin: 1em 0;
  31. }
  32. .paragraphs-browser-wrapper h2 {
  33. width: 100%;
  34. margin: 0;
  35. }
  36. .paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
  37. width: 100%;
  38. box-sizing: border-box;
  39. padding: 24px 10px 35px;
  40. margin-right: 0;
  41. position: relative;
  42. }
  43. @media screen and (min-width: 480px) {
  44. .paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
  45. width: 48%;
  46. margin-left: 2.99%;
  47. }
  48. .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
  49. margin-left: 0;
  50. }
  51. }
  52. @media screen and (min-width: 600px) {
  53. .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
  54. margin-left: 1.99%;
  55. }
  56. .paragraphs-browser-wrapper fieldset:nth-of-type(2n+1) {
  57. margin-left: 0;
  58. }
  59. }
  60. @media screen and (min-width: 800px) {
  61. .paragraphs-browser-wrapper fieldset:not(.fieldgroup) {
  62. margin-left: 1.99%;
  63. width: 32%;
  64. }
  65. .paragraphs-browser-wrapper fieldset:nth-of-type(odd) {
  66. margin-left: 1.99%;
  67. }
  68. .paragraphs-browser-wrapper fieldset:nth-of-type(3n+1) {
  69. margin-left: 0;
  70. }
  71. }
  72. .paragraphs-browser-wrapper fieldset:not(.fieldgroup) legend {
  73. text-align: center;
  74. position: relative;
  75. letter-spacing: 0;
  76. margin: 0;
  77. top: 0;
  78. width: 100%;
  79. }
  80. .paragraphs-browser-wrapper fieldset div {
  81. text-align: center;
  82. }
  83. .paragraphs-browser-wrapper fieldset input {
  84. position: absolute;
  85. top: 100%;
  86. left: 50%;
  87. transform: translate(-50%, -85%);
  88. max-width: 30%;
  89. margin: 0;
  90. box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .25);
  91. }
  92. @media screen and (min-width: 480px) {
  93. .paragraphs-browser-wrapper fieldset input {
  94. max-width: 50%;
  95. }
  96. }
  97. @media screen and (min-width: 600px) {
  98. .paragraphs-browser-wrapper fieldset input {
  99. transform: translate(-50%, -50%);
  100. }
  101. }
  102. .paragraphs-browser-wrapper img {
  103. max-width: 100%;
  104. height: auto;
  105. }
  106. .paragraphs-browser-paragraph-type {
  107. cursor: pointer;
  108. }
  109. .paragraphs-browser-paragraph-type:hover {
  110. border-color: #00a5e3;
  111. }
  112. .paragraph-type-title .paragraph-group {
  113. font-weight: bold;
  114. }
  115. .paragraphs-browser-settings-form .draggable a.tabledrag-handle {
  116. margin-top: 10px;
  117. }
  118. .paragraphs-browser-settings-form .draggable a.tabledrag-handle + div {
  119. display: inline-block;
  120. }