paragraphs.actions.css

.paragraphs-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.paragraphs-actions > .button {
  margin-left: 5px;
  margin-right: 0;
}

.paragraphs-actions > .button + .paragraphs-dropdown {
  margin-left: 5px;
}

.paragraphs-actions .paragraphs-icon {
  margin-left: 5px;
  margin-right: 5px;
}

.paragraphs-dropdown {
  position: relative;
}

.paragraphs-dropdown-toggle {
  display: block;
  height: 36px;
  width: 36px;
  background: url("../icons/icon-actions.svg") no-repeat center;
  background-size: 26px 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-transition: all 0.1s;
  transition: all 0.1s;
}

@media (min-width: 768px) {
  .paragraphs-dropdown-toggle {
    height: 26px;
    width: 26px;
  }
}

.paragraphs-dropdown-toggle:hover, .paragraphs-dropdown-toggle:focus {
  background-color: #f9f8f6;
  border: 1px solid #a6a6a6;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125);
  outline: none;
}

.paragraphs-dropdown-actions {
  display: none;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 100;
  background: #f9f8f6;
  border: 1px solid #a6a6a6;
  border-radius: 5px 0 5px 5px;
  -webkit-box-shadow: 0 2px 6px 0 #aaa;
          box-shadow: 0 2px 6px 0 #aaa;
}

@media (min-width: 768px) {
  .paragraphs-dropdown-actions {
    top: 26px;
  }
}

.item-list .paragraphs-dropdown-actions {
  list-style: none;
}

.item-list .paragraphs-dropdown-actions li {
  margin: 0;
  list-style: none;
}

.paragraphs-dropdown.open .paragraphs-dropdown-actions {
  display: block;
}

.paragraphs-dropdown-action {
  width: 100%;
}

.paragraphs-dropdown-action.button {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.paragraphs-dropdown-action.button:focus {
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
}

.form-wrapper .paragraphs-dropdown-action.button {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .form-wrapper .paragraphs-dropdown-action.button {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.paragraphs-actions-item-icon {
  height: 20px;
  padding: 0 10px;
}

File

paragraphs/css/paragraphs.actions.css
View source
  1. .paragraphs-actions {
  2. display: -webkit-box;
  3. display: -webkit-flex;
  4. display: -ms-flexbox;
  5. display: flex;
  6. -webkit-box-align: center;
  7. -webkit-align-items: center;
  8. -ms-flex-align: center;
  9. align-items: center;
  10. }
  11. .paragraphs-actions > .button {
  12. margin-left: 5px;
  13. margin-right: 0;
  14. }
  15. .paragraphs-actions > .button + .paragraphs-dropdown {
  16. margin-left: 5px;
  17. }
  18. .paragraphs-actions .paragraphs-icon {
  19. margin-left: 5px;
  20. margin-right: 5px;
  21. }
  22. .paragraphs-dropdown {
  23. position: relative;
  24. }
  25. .paragraphs-dropdown-toggle {
  26. display: block;
  27. height: 36px;
  28. width: 36px;
  29. background: url("../icons/icon-actions.svg") no-repeat center;
  30. background-size: 26px 26px;
  31. border: 1px solid transparent;
  32. border-radius: 4px;
  33. -webkit-transition: all 0.1s;
  34. transition: all 0.1s;
  35. }
  36. @media (min-width: 768px) {
  37. .paragraphs-dropdown-toggle {
  38. height: 26px;
  39. width: 26px;
  40. }
  41. }
  42. .paragraphs-dropdown-toggle:hover, .paragraphs-dropdown-toggle:focus {
  43. background-color: #f9f8f6;
  44. border: 1px solid #a6a6a6;
  45. -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125);
  46. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125);
  47. outline: none;
  48. }
  49. .paragraphs-dropdown-actions {
  50. display: none;
  51. overflow: hidden;
  52. position: absolute;
  53. right: 0;
  54. top: 36px;
  55. z-index: 100;
  56. background: #f9f8f6;
  57. border: 1px solid #a6a6a6;
  58. border-radius: 5px 0 5px 5px;
  59. -webkit-box-shadow: 0 2px 6px 0 #aaa;
  60. box-shadow: 0 2px 6px 0 #aaa;
  61. }
  62. @media (min-width: 768px) {
  63. .paragraphs-dropdown-actions {
  64. top: 26px;
  65. }
  66. }
  67. .item-list .paragraphs-dropdown-actions {
  68. list-style: none;
  69. }
  70. .item-list .paragraphs-dropdown-actions li {
  71. margin: 0;
  72. list-style: none;
  73. }
  74. .paragraphs-dropdown.open .paragraphs-dropdown-actions {
  75. display: block;
  76. }
  77. .paragraphs-dropdown-action {
  78. width: 100%;
  79. }
  80. .paragraphs-dropdown-action.button {
  81. margin-right: 0;
  82. margin-left: 0;
  83. text-align: left;
  84. background: transparent;
  85. border: 0;
  86. border-radius: 0;
  87. font-weight: 600;
  88. line-height: 18px;
  89. white-space: nowrap;
  90. }
  91. .paragraphs-dropdown-action.button:focus {
  92. border: none;
  93. -webkit-box-shadow: none;
  94. box-shadow: none;
  95. outline: none;
  96. }
  97. .form-wrapper .paragraphs-dropdown-action.button {
  98. margin-top: 0;
  99. margin-bottom: 0;
  100. }
  101. @media (max-width: 768px) {
  102. .form-wrapper .paragraphs-dropdown-action.button {
  103. padding-top: 10px;
  104. padding-bottom: 10px;
  105. }
  106. }
  107. .paragraphs-actions-item-icon {
  108. height: 20px;
  109. padding: 0 10px;
  110. }