style.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. margin: 0 0 1em 0;
  79. overflow-x: auto;
  80. }
  81. .wp-block-table table {
  82. border-collapse: collapse;
  83. width: 100%;
  84. }
  85. .wp-block-table .has-fixed-layout {
  86. table-layout: fixed;
  87. width: 100%;
  88. }
  89. .wp-block-table .has-fixed-layout td,
  90. .wp-block-table .has-fixed-layout th {
  91. word-break: break-word;
  92. }
  93. .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
  94. display: table;
  95. width: auto;
  96. }
  97. .wp-block-table.alignleft td,
  98. .wp-block-table.alignleft th, .wp-block-table.aligncenter td,
  99. .wp-block-table.aligncenter th, .wp-block-table.alignright td,
  100. .wp-block-table.alignright th {
  101. word-break: break-word;
  102. }
  103. .wp-block-table .has-subtle-light-gray-background-color {
  104. background-color: #f3f4f5;
  105. }
  106. .wp-block-table .has-subtle-pale-green-background-color {
  107. background-color: #e9fbe5;
  108. }
  109. .wp-block-table .has-subtle-pale-blue-background-color {
  110. background-color: #e7f5fe;
  111. }
  112. .wp-block-table .has-subtle-pale-pink-background-color {
  113. background-color: #fcf0ef;
  114. }
  115. .wp-block-table.is-style-stripes {
  116. border-spacing: 0;
  117. border-collapse: inherit;
  118. background-color: transparent;
  119. border-bottom: 1px solid #f0f0f0;
  120. }
  121. .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  122. background-color: #f0f0f0;
  123. }
  124. .wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) {
  125. background-color: #f3f4f5;
  126. }
  127. .wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
  128. background-color: #e9fbe5;
  129. }
  130. .wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
  131. background-color: #e7f5fe;
  132. }
  133. .wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
  134. background-color: #fcf0ef;
  135. }
  136. .wp-block-table.is-style-stripes th,
  137. .wp-block-table.is-style-stripes td {
  138. border-color: transparent;
  139. }
  140. .wp-block-table .has-border-color > *,
  141. .wp-block-table .has-border-color tr,
  142. .wp-block-table .has-border-color th,
  143. .wp-block-table .has-border-color td {
  144. border-color: inherit;
  145. }
  146. .wp-block-table table[style*=border-style] > *,
  147. .wp-block-table table[style*=border-style] tr,
  148. .wp-block-table table[style*=border-style] th,
  149. .wp-block-table table[style*=border-style] td {
  150. border-style: inherit;
  151. }
  152. .wp-block-table table[style*=border-width] > *,
  153. .wp-block-table table[style*=border-width] tr,
  154. .wp-block-table table[style*=border-width] th,
  155. .wp-block-table table[style*=border-width] td {
  156. border-width: inherit;
  157. border-style: inherit;
  158. }