editor-rtl.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,
  78. .wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container {
  79. border-radius: inherit;
  80. }
  81. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
  82. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder {
  83. justify-content: center;
  84. align-items: center;
  85. box-shadow: none;
  86. padding: 0;
  87. color: currentColor;
  88. background: transparent;
  89. min-height: 200px;
  90. }
  91. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload,
  92. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload {
  93. display: none;
  94. }
  95. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview,
  96. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview {
  97. position: absolute;
  98. top: 4px;
  99. left: 4px;
  100. bottom: 4px;
  101. right: 4px;
  102. background: rgba(255, 255, 255, 0.8);
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. }
  107. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before,
  108. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before {
  109. content: "";
  110. display: block;
  111. position: absolute;
  112. top: 0;
  113. left: 0;
  114. bottom: 0;
  115. right: 0;
  116. border: 1px dashed currentColor;
  117. opacity: 0.4;
  118. pointer-events: none;
  119. border-radius: inherit;
  120. }
  121. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset,
  122. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset {
  123. width: auto;
  124. }
  125. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
  126. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
  127. color: inherit;
  128. padding: 0;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. width: 48px;
  133. height: 48px;
  134. border-radius: 50%;
  135. position: relative;
  136. visibility: hidden;
  137. background: transparent;
  138. transition: all 0.1s linear;
  139. }
  140. @media (prefers-reduced-motion: reduce) {
  141. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
  142. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
  143. transition-duration: 0s;
  144. transition-delay: 0s;
  145. }
  146. }
  147. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg,
  148. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg {
  149. color: #fff;
  150. }
  151. .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration,
  152. .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration {
  153. position: absolute;
  154. top: 0;
  155. left: 0;
  156. bottom: 0;
  157. right: 0;
  158. width: 100%;
  159. height: 100%;
  160. stroke: currentColor;
  161. stroke-dasharray: 3;
  162. opacity: 0.4;
  163. }
  164. .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder {
  165. min-height: 48px;
  166. min-width: 48px;
  167. height: 100%;
  168. width: 100%;
  169. }
  170. .wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button {
  171. background: var(--wp-admin-theme-color);
  172. border-color: var(--wp-admin-theme-color);
  173. border-style: solid;
  174. color: #fff;
  175. opacity: 1;
  176. visibility: visible;
  177. }
  178. div[data-type="core/post-featured-image"] img {
  179. max-width: 100%;
  180. height: auto;
  181. display: block;
  182. }