Nessuna descrizione

editor-rtl.css 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. .wp-block-gallery li {
  72. list-style-type: none;
  73. }
  74. .wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
  75. display: none;
  76. }
  77. .wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
  78. margin-bottom: 0;
  79. }
  80. figure.wp-block-gallery {
  81. display: block;
  82. margin: 0;
  83. }
  84. .blocks-gallery-grid.blocks-gallery-grid {
  85. padding-right: 0;
  86. margin-right: 0;
  87. margin-bottom: 0;
  88. }
  89. .blocks-gallery-item figure:not(.is-selected):focus,
  90. .blocks-gallery-item img:focus {
  91. outline: none;
  92. }
  93. .blocks-gallery-item figure.is-selected::before {
  94. box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
  95. content: "";
  96. outline: 2px solid transparent;
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. bottom: 0;
  101. right: 0;
  102. z-index: 1;
  103. pointer-events: none;
  104. }
  105. .blocks-gallery-item figure.is-selected figcaption {
  106. z-index: 2;
  107. }
  108. .blocks-gallery-item figure.is-transient img {
  109. opacity: 0.3;
  110. }
  111. .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
  112. display: inline-flex;
  113. }
  114. .blocks-gallery-item .block-editor-media-placeholder {
  115. margin: 0;
  116. height: 100%;
  117. }
  118. .blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
  119. display: flex;
  120. }
  121. .block-library-gallery-item__inline-menu {
  122. display: none;
  123. position: absolute;
  124. top: -2px;
  125. margin: 8px;
  126. z-index: 20;
  127. transition: box-shadow 0.2s ease-out;
  128. border-radius: 2px;
  129. background: #fff;
  130. border: 1px solid #1e1e1e;
  131. }
  132. @media (prefers-reduced-motion: reduce) {
  133. .block-library-gallery-item__inline-menu {
  134. transition-duration: 0s;
  135. transition-delay: 0s;
  136. }
  137. }
  138. .block-library-gallery-item__inline-menu:hover {
  139. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  140. }
  141. @media (min-width: 600px) {
  142. .columns-7 .block-library-gallery-item__inline-menu, .columns-8 .block-library-gallery-item__inline-menu {
  143. padding: 2px;
  144. }
  145. }
  146. .block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus) {
  147. border: none;
  148. box-shadow: none;
  149. }
  150. @media (min-width: 600px) {
  151. .columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon, .columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon {
  152. padding: 0;
  153. width: inherit;
  154. height: inherit;
  155. }
  156. }
  157. .block-library-gallery-item__inline-menu.is-left {
  158. right: -2px;
  159. }
  160. .block-library-gallery-item__inline-menu.is-right {
  161. left: -2px;
  162. }
  163. .blocks-gallery-item .components-spinner {
  164. position: absolute;
  165. top: 50%;
  166. right: 50%;
  167. margin-top: -9px;
  168. margin-right: -9px;
  169. }