common-rtl.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. /**
  92. * Element styles.
  93. */
  94. .wp-element-button {
  95. cursor: pointer;
  96. }
  97. :root {
  98. /*
  99. * Our classes uses the same values we set for gradient value attributes,
  100. * and we can not use spacing because of WP multi site kses rule.
  101. */
  102. /* stylelint-disable function-comma-space-after */
  103. /* stylelint-enable function-comma-space-after */
  104. --wp--preset--font-size--normal: 16px;
  105. --wp--preset--font-size--huge: 42px;
  106. }
  107. :root .has-very-light-gray-background-color {
  108. background-color: #eee;
  109. }
  110. :root .has-very-dark-gray-background-color {
  111. background-color: #313131;
  112. }
  113. :root .has-very-light-gray-color {
  114. color: #eee;
  115. }
  116. :root .has-very-dark-gray-color {
  117. color: #313131;
  118. }
  119. :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
  120. background: linear-gradient(-135deg, #00d084 0%, #0693e3 100%);
  121. }
  122. :root .has-purple-crush-gradient-background {
  123. background: linear-gradient(-135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%);
  124. }
  125. :root .has-hazy-dawn-gradient-background {
  126. background: linear-gradient(-135deg, #faaca8 0%, #dad0ec 100%);
  127. }
  128. :root .has-subdued-olive-gradient-background {
  129. background: linear-gradient(-135deg, #fafae1 0%, #67a671 100%);
  130. }
  131. :root .has-atomic-cream-gradient-background {
  132. background: linear-gradient(-135deg, #fdd79a 0%, #004a59 100%);
  133. }
  134. :root .has-nightshade-gradient-background {
  135. background: linear-gradient(-135deg, #330968 0%, #31cdcf 100%);
  136. }
  137. :root .has-midnight-gradient-background {
  138. background: linear-gradient(-135deg, #020381 0%, #2874fc 100%);
  139. }
  140. .has-regular-font-size {
  141. font-size: 1em;
  142. }
  143. .has-larger-font-size {
  144. font-size: 2.625em;
  145. }
  146. .has-normal-font-size {
  147. font-size: var(--wp--preset--font-size--normal);
  148. }
  149. .has-huge-font-size {
  150. font-size: var(--wp--preset--font-size--huge);
  151. }
  152. .has-text-align-center {
  153. text-align: center;
  154. }
  155. .has-text-align-left {
  156. text-align: left;
  157. }
  158. .has-text-align-right {
  159. text-align: right;
  160. }
  161. #end-resizable-editor-section {
  162. display: none;
  163. }
  164. .aligncenter {
  165. clear: both;
  166. }
  167. .items-justified-left {
  168. justify-content: flex-start;
  169. }
  170. .items-justified-center {
  171. justify-content: center;
  172. }
  173. .items-justified-right {
  174. justify-content: flex-end;
  175. }
  176. .items-justified-space-between {
  177. justify-content: space-between;
  178. }
  179. .screen-reader-text {
  180. border: 0;
  181. clip: rect(1px, 1px, 1px, 1px);
  182. clip-path: inset(50%);
  183. height: 1px;
  184. margin: -1px;
  185. overflow: hidden;
  186. padding: 0;
  187. position: absolute;
  188. width: 1px;
  189. word-wrap: normal !important;
  190. }
  191. .screen-reader-text:focus {
  192. background-color: #ddd;
  193. clip: auto !important;
  194. clip-path: none;
  195. color: #444;
  196. display: block;
  197. font-size: 1em;
  198. height: auto;
  199. right: 5px;
  200. line-height: normal;
  201. padding: 15px 23px 14px;
  202. text-decoration: none;
  203. top: 5px;
  204. width: auto;
  205. z-index: 100000;
  206. }
  207. /**
  208. * The following provide a simple means of applying a default border style when
  209. * a user first makes a selection in the border block support panel.
  210. * This prevents issues such as where the user could set a border width
  211. * and see no border due there being no border style set.
  212. *
  213. * This is intended to be removed once intelligent defaults can be set while
  214. * making border selections via the block support.
  215. *
  216. * See: https://github.com/WordPress/gutenberg/pull/33743
  217. */
  218. html :where(.has-border-color) {
  219. border-style: solid;
  220. }
  221. html :where([style*="border-top-color"]) {
  222. border-top-style: solid;
  223. }
  224. html :where([style*="border-right-color"]) {
  225. border-left-style: solid;
  226. }
  227. html :where([style*="border-bottom-color"]) {
  228. border-bottom-style: solid;
  229. }
  230. html :where([style*="border-left-color"]) {
  231. border-right-style: solid;
  232. }
  233. html :where([style*="border-width"]) {
  234. border-style: solid;
  235. }
  236. html :where([style*="border-top-width"]) {
  237. border-top-style: solid;
  238. }
  239. html :where([style*="border-right-width"]) {
  240. border-left-style: solid;
  241. }
  242. html :where([style*="border-bottom-width"]) {
  243. border-bottom-style: solid;
  244. }
  245. html :where([style*="border-left-width"]) {
  246. border-right-style: solid;
  247. }
  248. /**
  249. * Provide baseline responsiveness for images.
  250. */
  251. html :where(img[class*="wp-image-"]) {
  252. height: auto;
  253. max-width: 100%;
  254. }
  255. /**
  256. * Reset user agent styles for figure element margins.
  257. */
  258. figure {
  259. margin: 0 0 1em 0;
  260. }