style-rtl.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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-table {
  78. overflow-x: auto;
  79. }
  80. .wp-block-table table {
  81. border-collapse: collapse;
  82. width: 100%;
  83. }
  84. .wp-block-table td,
  85. .wp-block-table th {
  86. border: 1px solid;
  87. padding: 0.5em;
  88. }
  89. .wp-block-table .has-fixed-layout {
  90. table-layout: fixed;
  91. width: 100%;
  92. }
  93. .wp-block-table .has-fixed-layout td,
  94. .wp-block-table .has-fixed-layout th {
  95. word-break: break-word;
  96. }
  97. .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
  98. display: table;
  99. width: auto;
  100. }
  101. .wp-block-table.alignleft td,
  102. .wp-block-table.alignleft th, .wp-block-table.aligncenter td,
  103. .wp-block-table.aligncenter th, .wp-block-table.alignright td,
  104. .wp-block-table.alignright th {
  105. word-break: break-word;
  106. }
  107. .wp-block-table .has-subtle-light-gray-background-color {
  108. background-color: #f3f4f5;
  109. }
  110. .wp-block-table .has-subtle-pale-green-background-color {
  111. background-color: #e9fbe5;
  112. }
  113. .wp-block-table .has-subtle-pale-blue-background-color {
  114. background-color: #e7f5fe;
  115. }
  116. .wp-block-table .has-subtle-pale-pink-background-color {
  117. background-color: #fcf0ef;
  118. }
  119. .wp-block-table.is-style-stripes {
  120. border-spacing: 0;
  121. border-collapse: inherit;
  122. background-color: transparent;
  123. border-bottom: 1px solid #f0f0f0;
  124. }
  125. .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  126. background-color: #f0f0f0;
  127. }
  128. .wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) {
  129. background-color: #f3f4f5;
  130. }
  131. .wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
  132. background-color: #e9fbe5;
  133. }
  134. .wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
  135. background-color: #e7f5fe;
  136. }
  137. .wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
  138. background-color: #fcf0ef;
  139. }
  140. .wp-block-table.is-style-stripes th,
  141. .wp-block-table.is-style-stripes td {
  142. border-color: transparent;
  143. }
  144. .wp-block-table .has-border-color > *,
  145. .wp-block-table .has-border-color tr,
  146. .wp-block-table .has-border-color th,
  147. .wp-block-table .has-border-color td {
  148. border-color: inherit;
  149. }
  150. .wp-block-table table[style*=border-top-color] > *,
  151. .wp-block-table table[style*=border-top-color] tr:first-child {
  152. border-top-color: inherit;
  153. }
  154. .wp-block-table table[style*=border-top-color] > * th,
  155. .wp-block-table table[style*=border-top-color] > * td,
  156. .wp-block-table table[style*=border-top-color] tr:first-child th,
  157. .wp-block-table table[style*=border-top-color] tr:first-child td {
  158. border-top-color: inherit;
  159. }
  160. .wp-block-table table[style*=border-top-color] tr:not(:first-child) {
  161. border-top-color: currentColor;
  162. }
  163. .wp-block-table table[style*=border-right-color] > *,
  164. .wp-block-table table[style*=border-right-color] tr,
  165. .wp-block-table table[style*=border-right-color] th,
  166. .wp-block-table table[style*=border-right-color] td:last-child {
  167. border-left-color: inherit;
  168. }
  169. .wp-block-table table[style*=border-bottom-color] > *,
  170. .wp-block-table table[style*=border-bottom-color] tr:last-child {
  171. border-bottom-color: inherit;
  172. }
  173. .wp-block-table table[style*=border-bottom-color] > * th,
  174. .wp-block-table table[style*=border-bottom-color] > * td,
  175. .wp-block-table table[style*=border-bottom-color] tr:last-child th,
  176. .wp-block-table table[style*=border-bottom-color] tr:last-child td {
  177. border-bottom-color: inherit;
  178. }
  179. .wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
  180. border-bottom-color: currentColor;
  181. }
  182. .wp-block-table table[style*=border-left-color] > *,
  183. .wp-block-table table[style*=border-left-color] tr,
  184. .wp-block-table table[style*=border-left-color] th,
  185. .wp-block-table table[style*=border-left-color] td:first-child {
  186. border-right-color: inherit;
  187. }
  188. .wp-block-table table[style*=border-style] > *,
  189. .wp-block-table table[style*=border-style] tr,
  190. .wp-block-table table[style*=border-style] th,
  191. .wp-block-table table[style*=border-style] td {
  192. border-style: inherit;
  193. }
  194. .wp-block-table table[style*=border-width] > *,
  195. .wp-block-table table[style*=border-width] tr,
  196. .wp-block-table table[style*=border-width] th,
  197. .wp-block-table table[style*=border-width] td {
  198. border-width: inherit;
  199. border-style: inherit;
  200. }