editor-rtl.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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-image:not(.wp-block) {
  78. margin: 0;
  79. }
  80. .wp-block-image {
  81. position: relative;
  82. }
  83. .wp-block-image .is-applying img, .wp-block-image.is-transient img {
  84. opacity: 0.3;
  85. }
  86. .wp-block-image figcaption img {
  87. display: inline;
  88. }
  89. .wp-block-image .components-spinner {
  90. position: absolute;
  91. top: 50%;
  92. right: 50%;
  93. margin-top: -9px;
  94. margin-right: -9px;
  95. }
  96. .wp-block-image:not(.is-style-rounded) > div:not(.components-placeholder) {
  97. border-radius: inherit;
  98. }
  99. .wp-block-image .components-resizable-box__container {
  100. display: inline-block;
  101. }
  102. .wp-block-image .components-resizable-box__container img {
  103. display: block;
  104. width: inherit;
  105. height: inherit;
  106. }
  107. .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
  108. position: absolute;
  109. right: 0;
  110. left: 0;
  111. margin: -1px 0;
  112. }
  113. @media (min-width: 600px) {
  114. .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
  115. margin: -1px;
  116. }
  117. }
  118. [data-align=wide] > .wp-block-image img,
  119. [data-align=full] > .wp-block-image img {
  120. height: auto;
  121. width: 100%;
  122. }
  123. .wp-block[data-align=left] > .wp-block-image,
  124. .wp-block[data-align=center] > .wp-block-image,
  125. .wp-block[data-align=right] > .wp-block-image {
  126. display: table;
  127. }
  128. .wp-block[data-align=left] > .wp-block-image > figcaption,
  129. .wp-block[data-align=center] > .wp-block-image > figcaption,
  130. .wp-block[data-align=right] > .wp-block-image > figcaption {
  131. display: table-caption;
  132. caption-side: bottom;
  133. }
  134. .wp-block[data-align=left] > .wp-block-image {
  135. margin-left: 1em;
  136. margin-right: 0;
  137. margin-top: 0.5em;
  138. margin-bottom: 0.5em;
  139. }
  140. .wp-block[data-align=right] > .wp-block-image {
  141. margin-right: 1em;
  142. margin-left: 0;
  143. margin-top: 0.5em;
  144. margin-bottom: 0.5em;
  145. }
  146. .wp-block[data-align=center] > .wp-block-image {
  147. margin-right: auto;
  148. margin-left: auto;
  149. text-align: center;
  150. }
  151. .wp-block-image__crop-area {
  152. position: relative;
  153. max-width: 100%;
  154. width: 100%;
  155. }
  156. .wp-block-image__crop-icon {
  157. padding: 0 8px;
  158. min-width: 48px;
  159. display: flex;
  160. justify-content: center;
  161. align-items: center;
  162. }
  163. .wp-block-image__crop-icon svg {
  164. fill: currentColor;
  165. }
  166. .wp-block-image__zoom .components-popover__content {
  167. overflow: visible;
  168. min-width: 260px;
  169. }
  170. .wp-block-image__zoom .components-range-control {
  171. flex: 1;
  172. }
  173. .wp-block-image__zoom .components-base-control__field {
  174. display: flex;
  175. margin-bottom: 0;
  176. flex-direction: column;
  177. align-items: flex-start;
  178. }
  179. .wp-block-image__aspect-ratio {
  180. height: 46px;
  181. margin-bottom: -8px;
  182. display: flex;
  183. align-items: center;
  184. }
  185. .wp-block-image__aspect-ratio .components-button {
  186. width: 36px;
  187. padding-right: 0;
  188. padding-left: 0;
  189. }