editor-rtl.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /**
  2. * Colors
  3. */
  4. /**
  5. * Breakpoints & Media Queries
  6. */
  7. /**
  8. * SCSS Variables.
  9. *
  10. * Please use variables from this sheet to ensure consistency across the UI.
  11. * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
  12. * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  13. */
  14. /**
  15. * Colors
  16. */
  17. /**
  18. * Fonts & basic variables.
  19. */
  20. /**
  21. * Grid System.
  22. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
  23. */
  24. /**
  25. * Dimensions.
  26. */
  27. /**
  28. * Shadows.
  29. */
  30. /**
  31. * Editor widths.
  32. */
  33. /**
  34. * Block & Editor UI.
  35. */
  36. /**
  37. * Block paddings.
  38. */
  39. /**
  40. * React Native specific.
  41. * These variables do not appear to be used anywhere else.
  42. */
  43. /**
  44. * Converts a hex value into the rgb equivalent.
  45. *
  46. * @param {string} hex - the hexadecimal value to convert
  47. * @return {string} comma separated rgb values
  48. */
  49. /**
  50. * Breakpoint mixins
  51. */
  52. /**
  53. * Long content fade mixin
  54. *
  55. * Creates a fading overlay to signify that the content is longer
  56. * than the space allows.
  57. */
  58. /**
  59. * Focus styles.
  60. */
  61. /**
  62. * Applies editor left position to the selector passed as argument
  63. */
  64. /**
  65. * Styles that are reused verbatim in a few places
  66. */
  67. /**
  68. * Allows users to opt-out of animations via OS-level preferences.
  69. */
  70. /**
  71. * Reset default styles for JavaScript UI based pages.
  72. * This is a WP-admin agnostic reset
  73. */
  74. /**
  75. * Reset the WP Admin page styles for Gutenberg-like pages.
  76. */
  77. figure.wp-block-gallery {
  78. display: block;
  79. }
  80. figure.wp-block-gallery.has-nested-images .components-drop-zone {
  81. display: none;
  82. pointer-events: none;
  83. }
  84. figure.wp-block-gallery > .blocks-gallery-caption {
  85. flex: 0 0 100%;
  86. }
  87. figure.wp-block-gallery > .blocks-gallery-media-placeholder-wrapper {
  88. flex-basis: 100%;
  89. }
  90. figure.wp-block-gallery .wp-block-image .components-notice.is-error {
  91. display: block;
  92. }
  93. figure.wp-block-gallery .wp-block-image .components-notice__content {
  94. margin: 4px 0;
  95. }
  96. figure.wp-block-gallery .wp-block-image .components-notice__dismiss {
  97. position: absolute;
  98. top: 0;
  99. left: 5px;
  100. }
  101. figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
  102. display: none;
  103. }
  104. figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
  105. margin-bottom: 0;
  106. }
  107. figure.wp-block-gallery .block-editor-media-placeholder {
  108. margin: 0;
  109. }
  110. figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label {
  111. display: flex;
  112. }
  113. figure.wp-block-gallery .block-editor-media-placeholder figcaption {
  114. z-index: 2;
  115. }
  116. figure.wp-block-gallery .components-spinner {
  117. position: absolute;
  118. top: 50%;
  119. right: 50%;
  120. margin-top: -9px;
  121. margin-right: -9px;
  122. }
  123. /**
  124. * Gallery inspector controls settings.
  125. */
  126. .gallery-settings-buttons .components-button:first-child {
  127. margin-left: 8px;
  128. }
  129. .gallery-image-sizes .components-base-control__label {
  130. display: block;
  131. margin-bottom: 4px;
  132. }
  133. .gallery-image-sizes .gallery-image-sizes__loading {
  134. display: flex;
  135. align-items: center;
  136. color: #757575;
  137. font-size: 12px;
  138. }
  139. .gallery-image-sizes .components-spinner {
  140. margin: 0 4px 0 8px;
  141. }
  142. /**
  143. * Deprecated css past this point. This can be removed once all galleries are migrated
  144. * to V2.
  145. */
  146. .blocks-gallery-item figure:not(.is-selected):focus,
  147. .blocks-gallery-item img:focus {
  148. outline: none;
  149. }
  150. .blocks-gallery-item figure.is-selected::before {
  151. box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
  152. content: "";
  153. outline: 2px solid transparent;
  154. position: absolute;
  155. top: 0;
  156. left: 0;
  157. bottom: 0;
  158. right: 0;
  159. z-index: 1;
  160. pointer-events: none;
  161. }
  162. .blocks-gallery-item figure.is-transient img {
  163. opacity: 0.3;
  164. }
  165. .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
  166. display: inline-flex;
  167. }
  168. .blocks-gallery-item .block-editor-media-placeholder {
  169. margin: 0;
  170. height: 100%;
  171. }
  172. .blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
  173. display: flex;
  174. }
  175. .block-library-gallery-item__inline-menu {
  176. display: none;
  177. position: absolute;
  178. top: -2px;
  179. margin: 8px;
  180. z-index: 20;
  181. transition: box-shadow 0.2s ease-out;
  182. border-radius: 2px;
  183. background: #fff;
  184. border: 1px solid #1e1e1e;
  185. }
  186. @media (prefers-reduced-motion: reduce) {
  187. .block-library-gallery-item__inline-menu {
  188. transition-duration: 0s;
  189. transition-delay: 0s;
  190. }
  191. }
  192. .block-library-gallery-item__inline-menu:hover {
  193. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  194. }
  195. @media (min-width: 600px) {
  196. .columns-7 .block-library-gallery-item__inline-menu, .columns-8 .block-library-gallery-item__inline-menu {
  197. padding: 2px;
  198. }
  199. }
  200. .block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus) {
  201. border: none;
  202. box-shadow: none;
  203. }
  204. @media (min-width: 600px) {
  205. .columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon, .columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon {
  206. padding: 0;
  207. width: inherit;
  208. height: inherit;
  209. }
  210. }
  211. .block-library-gallery-item__inline-menu.is-left {
  212. right: -2px;
  213. }
  214. .block-library-gallery-item__inline-menu.is-right {
  215. left: -2px;
  216. }
  217. .wp-block-gallery ul.blocks-gallery-grid {
  218. padding: 0;
  219. margin: 0;
  220. }
  221. @media (min-width: 600px) {
  222. .wp-block-update-gallery-modal {
  223. max-width: 480px;
  224. }
  225. }
  226. .wp-block-update-gallery-modal-buttons {
  227. display: flex;
  228. justify-content: flex-end;
  229. gap: 12px;
  230. }