editor-rtl.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. /**
  78. * Submenus.
  79. */
  80. .wp-block-navigation .has-child {
  81. cursor: pointer;
  82. }
  83. .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  84. z-index: 28;
  85. }
  86. .wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container {
  87. z-index: 29;
  88. }
  89. .wp-block-navigation .has-child.is-selected > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child.has-child-selected > .wp-block-navigation__submenu-container {
  90. visibility: visible !important;
  91. opacity: 1 !important;
  92. min-width: 200px !important;
  93. height: auto !important;
  94. width: auto !important;
  95. overflow: visible !important;
  96. }
  97. /**
  98. * Navigation Items.
  99. */
  100. .wp-block-navigation-item .wp-block-navigation-item__content {
  101. cursor: text;
  102. }
  103. .wp-block-navigation-item.is-editing, .wp-block-navigation-item.is-selected {
  104. min-width: 20px;
  105. }
  106. .wp-block-navigation-item .block-list-appender {
  107. margin-top: 16px;
  108. margin-left: auto;
  109. margin-bottom: 16px;
  110. margin-right: 16px;
  111. }
  112. .wp-block-navigation-link__invalid-item {
  113. color: #000;
  114. }
  115. .wp-block-navigation-link__missing_text-tooltip {
  116. position: absolute;
  117. width: 1px;
  118. height: 1px;
  119. padding: 0;
  120. margin: -1px;
  121. overflow: hidden;
  122. }
  123. /**
  124. * Menu item setup state. Is shown when a menu item has no URL configured.
  125. */
  126. .wp-block-navigation-link__placeholder {
  127. position: relative;
  128. text-decoration: none !important;
  129. box-shadow: none !important;
  130. background-image: none !important;
  131. }
  132. .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
  133. --wp-underline-color: var(--wp-admin-theme-color);
  134. background-image: linear-gradient(-45deg, transparent 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, transparent 46%), linear-gradient(-135deg, transparent 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, transparent 80%);
  135. background-position: 100% 100%;
  136. background-size: 6px 3px;
  137. background-repeat: repeat-x;
  138. padding-bottom: 0.1em;
  139. }
  140. .is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
  141. --wp-underline-color: #fff;
  142. }
  143. .wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
  144. cursor: pointer;
  145. }
  146. /**
  147. * Link Control Transforms
  148. */
  149. .link-control-transform {
  150. border-top: 1px solid #ccc;
  151. padding: 0 16px 8px 16px;
  152. }
  153. .link-control-transform__subheading {
  154. font-size: 11px;
  155. text-transform: uppercase;
  156. font-weight: 500;
  157. color: #1e1e1e;
  158. margin-bottom: 1.5em;
  159. }
  160. .link-control-transform__items {
  161. display: flex;
  162. justify-content: space-between;
  163. }
  164. .link-control-transform__item {
  165. flex-basis: 33%;
  166. flex-direction: column;
  167. gap: 8px;
  168. height: auto;
  169. }