style-rtl.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. :root {
  78. --wp-admin-theme-color: #007cba;
  79. --wp-admin-theme-color--rgb: 0, 124, 186;
  80. --wp-admin-theme-color-darker-10: #006ba1;
  81. --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
  82. --wp-admin-theme-color-darker-20: #005a87;
  83. --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
  84. --wp-admin-border-width-focus: 2px;
  85. }
  86. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  87. :root {
  88. --wp-admin-border-width-focus: 1.5px;
  89. }
  90. }
  91. #customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector {
  92. background: #fff;
  93. box-sizing: border-box;
  94. }
  95. #customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector * {
  96. box-sizing: inherit;
  97. }
  98. #customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector {
  99. margin: -12px;
  100. }
  101. #customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3 {
  102. margin-bottom: 0;
  103. }
  104. #customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open {
  105. transform: translateX(100%);
  106. }
  107. .customize-widgets-header {
  108. display: flex;
  109. justify-content: flex-end;
  110. margin: -15px -12px 0 -12px;
  111. background: #f0f0f1;
  112. border-bottom: 1px solid #e0e0e0;
  113. z-index: 8;
  114. }
  115. @media (min-width: 782px) {
  116. .customize-widgets-header {
  117. margin-bottom: 44px;
  118. }
  119. }
  120. .customize-widgets-header.is-fixed-toolbar-active {
  121. margin-bottom: 0;
  122. }
  123. .customize-widgets-header-toolbar {
  124. display: flex;
  125. border: none;
  126. width: 100%;
  127. align-items: center;
  128. }
  129. .customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon {
  130. border-radius: 2px;
  131. color: #fff;
  132. padding: 0;
  133. min-width: 24px;
  134. height: 24px;
  135. margin: 12px auto 12px 0;
  136. }
  137. .customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon::before {
  138. content: none;
  139. }
  140. .customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed {
  141. background: #1e1e1e;
  142. }
  143. .customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button {
  144. margin-right: -12px;
  145. }
  146. #customize-sidebar-outer-content {
  147. width: auto;
  148. min-width: 100%;
  149. }
  150. #customize-outer-theme-controls .widgets-inserter {
  151. padding: 0;
  152. }
  153. #customize-outer-theme-controls .widgets-inserter .customize-section-description-container {
  154. display: none;
  155. }
  156. .customize-widgets-layout__inserter-panel {
  157. background: #fff;
  158. }
  159. .customize-widgets-layout__inserter-panel-header {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. padding: 16px;
  164. height: 46px;
  165. box-sizing: border-box;
  166. border-bottom: 1px solid #ddd;
  167. }
  168. .customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title {
  169. margin: 0;
  170. }
  171. .block-editor-inserter__quick-inserter .block-editor-inserter__panel-content {
  172. background: #fff;
  173. }
  174. .customize-widgets-keyboard-shortcut-help-modal__section {
  175. margin: 0 0 2rem 0;
  176. }
  177. .customize-widgets-keyboard-shortcut-help-modal__section-title {
  178. font-size: 0.9rem;
  179. font-weight: 600;
  180. }
  181. .customize-widgets-keyboard-shortcut-help-modal__shortcut {
  182. display: flex;
  183. align-items: baseline;
  184. padding: 0.6rem 0;
  185. border-top: 1px solid #ddd;
  186. margin-bottom: 0;
  187. }
  188. .customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child {
  189. border-bottom: 1px solid #ddd;
  190. }
  191. .customize-widgets-keyboard-shortcut-help-modal__shortcut:empty {
  192. display: none;
  193. }
  194. .customize-widgets-keyboard-shortcut-help-modal__shortcut-term {
  195. font-weight: 600;
  196. margin: 0 1rem 0 0;
  197. text-align: left;
  198. }
  199. .customize-widgets-keyboard-shortcut-help-modal__shortcut-description {
  200. flex: 1;
  201. margin: 0;
  202. flex-basis: auto;
  203. }
  204. .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  205. display: block;
  206. background: none;
  207. margin: 0;
  208. padding: 0;
  209. }
  210. .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination + .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  211. margin-top: 10px;
  212. }
  213. .customize-widgets-keyboard-shortcut-help-modal__shortcut-key {
  214. padding: 0.25rem 0.5rem;
  215. border-radius: 8%;
  216. margin: 0 0.2rem 0 0.2rem;
  217. }
  218. .customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child {
  219. margin: 0 0.2rem 0 0;
  220. }
  221. .block-editor-block-contextual-toolbar.is-fixed {
  222. top: 0;
  223. margin-right: -12px;
  224. margin-left: -12px;
  225. width: calc(100% + 24px);
  226. overflow-y: auto;
  227. z-index: 7;
  228. }
  229. .customize-control-sidebar_block_editor .block-editor-block-list__block-popover {
  230. position: fixed !important;
  231. z-index: 7;
  232. }
  233. .customize-widgets-popover .components-popover,
  234. .customize-control-sidebar_block_editor .components-popover {
  235. position: fixed !important;
  236. }
  237. .customize-widgets-welcome-guide__image__wrapper {
  238. background: #00a0d2;
  239. text-align: center;
  240. margin-bottom: 8px;
  241. }
  242. .customize-widgets-welcome-guide__image {
  243. height: auto;
  244. }
  245. .wrap .customize-widgets-welcome-guide__heading {
  246. font-size: 18px;
  247. font-weight: 600;
  248. }
  249. .customize-widgets-welcome-guide__text {
  250. line-height: 1.7;
  251. }
  252. .customize-widgets-welcome-guide__button {
  253. justify-content: center;
  254. margin: 1em 0;
  255. width: 100%;
  256. }
  257. .customize-widgets-welcome-guide__separator {
  258. margin: 1em 0;
  259. }
  260. .customize-widgets-welcome-guide__more-info {
  261. line-height: 1.4;
  262. }
  263. #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
  264. min-height: 100%;
  265. background-color: #fff;
  266. padding-top: 12px !important;
  267. }
  268. #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
  269. overflow: unset;
  270. }
  271. #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
  272. position: static !important;
  273. margin-top: -12px !important;
  274. width: unset !important;
  275. }
  276. .components-modal__screen-overlay {
  277. z-index: 999999;
  278. }
  279. .customize-control-sidebar_block_editor,
  280. .customize-widgets-layout__inspector,
  281. .customize-widgets-popover {
  282. box-sizing: border-box;
  283. }
  284. .customize-control-sidebar_block_editor *,
  285. .customize-control-sidebar_block_editor *::before,
  286. .customize-control-sidebar_block_editor *::after,
  287. .customize-widgets-layout__inspector *,
  288. .customize-widgets-layout__inspector *::before,
  289. .customize-widgets-layout__inspector *::after,
  290. .customize-widgets-popover *,
  291. .customize-widgets-popover *::before,
  292. .customize-widgets-popover *::after {
  293. box-sizing: inherit;
  294. }