Нет описания

editor.css 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. * Breakpoint mixins
  45. */
  46. /**
  47. * Long content fade mixin
  48. *
  49. * Creates a fading overlay to signify that the content is longer
  50. * than the space allows.
  51. */
  52. /**
  53. * Focus styles.
  54. */
  55. /**
  56. * Applies editor left position to the selector passed as argument
  57. */
  58. /**
  59. * Styles that are reused verbatim in a few places
  60. */
  61. /**
  62. * Allows users to opt-out of animations via OS-level preferences.
  63. */
  64. /**
  65. * Reset default styles for JavaScript UI based pages.
  66. * This is a WP-admin agnostic reset
  67. */
  68. /**
  69. * Reset the WP Admin page styles for Gutenberg-like pages.
  70. */
  71. figure.wp-block-image:not(.wp-block) {
  72. margin: 0;
  73. }
  74. .wp-block-image {
  75. position: relative;
  76. }
  77. .wp-block-image .is-applying img, .wp-block-image.is-transient img {
  78. opacity: 0.3;
  79. }
  80. .wp-block-image figcaption img {
  81. display: inline;
  82. }
  83. .wp-block-image .components-spinner {
  84. position: absolute;
  85. top: 50%;
  86. left: 50%;
  87. margin-top: -9px;
  88. margin-left: -9px;
  89. }
  90. .wp-block-image:not(.is-style-rounded) > div {
  91. border-radius: inherit;
  92. }
  93. .wp-block-image .components-resizable-box__container {
  94. display: inline-block;
  95. }
  96. .wp-block-image .components-resizable-box__container img {
  97. display: block;
  98. width: inherit;
  99. height: inherit;
  100. }
  101. .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
  102. position: absolute;
  103. left: 0;
  104. right: 0;
  105. margin: -1px 0;
  106. }
  107. @media (min-width: 600px) {
  108. .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
  109. margin: -1px;
  110. }
  111. }
  112. [data-align=wide] > .wp-block-image img,
  113. [data-align=full] > .wp-block-image img {
  114. width: 100%;
  115. }
  116. .wp-block[data-align=left] > .wp-block-image,
  117. .wp-block[data-align=center] > .wp-block-image,
  118. .wp-block[data-align=right] > .wp-block-image {
  119. display: table;
  120. }
  121. .wp-block[data-align=left] > .wp-block-image > figcaption,
  122. .wp-block[data-align=center] > .wp-block-image > figcaption,
  123. .wp-block[data-align=right] > .wp-block-image > figcaption {
  124. display: table-caption;
  125. caption-side: bottom;
  126. }
  127. .wp-block[data-align=left] > .wp-block-image {
  128. margin-right: 1em;
  129. margin-left: 0;
  130. margin-top: 0.5em;
  131. margin-bottom: 0.5em;
  132. }
  133. .wp-block[data-align=right] > .wp-block-image {
  134. margin-left: 1em;
  135. margin-right: 0;
  136. margin-top: 0.5em;
  137. margin-bottom: 0.5em;
  138. }
  139. .wp-block[data-align=center] > .wp-block-image {
  140. margin-left: auto;
  141. margin-right: auto;
  142. text-align: center;
  143. }
  144. .wp-block-image__crop-area {
  145. position: relative;
  146. max-width: 100%;
  147. width: 100%;
  148. }
  149. .wp-block-image__crop-icon {
  150. padding: 0 8px;
  151. min-width: 48px;
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. }
  156. .wp-block-image__crop-icon svg {
  157. fill: currentColor;
  158. }
  159. .wp-block-image__zoom .components-popover__content {
  160. overflow: visible;
  161. min-width: 260px;
  162. }
  163. .wp-block-image__zoom .components-range-control {
  164. flex: 1;
  165. }
  166. .wp-block-image__zoom .components-base-control__field {
  167. display: flex;
  168. margin-bottom: 0;
  169. flex-direction: column;
  170. align-items: flex-start;
  171. }
  172. .wp-block-image__aspect-ratio {
  173. height: 46px;
  174. margin-bottom: -8px;
  175. display: flex;
  176. align-items: center;
  177. }
  178. .wp-block-image__aspect-ratio .components-button {
  179. width: 36px;
  180. padding-left: 0;
  181. padding-right: 0;
  182. }