暫無描述

style-rtl.css 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. .block-directory-block-ratings > span {
  92. display: flex;
  93. }
  94. .block-directory-block-ratings svg {
  95. fill: #1e1e1e;
  96. margin-right: -4px;
  97. }
  98. .block-directory-block-ratings .block-directory-block-ratings__star-empty {
  99. fill: #ccc;
  100. }
  101. .block-directory-compact-list {
  102. margin: 0;
  103. list-style: none;
  104. }
  105. .block-directory-compact-list__item {
  106. display: flex;
  107. flex-direction: row;
  108. align-items: center;
  109. margin-bottom: 16px;
  110. }
  111. .block-directory-compact-list__item:last-child {
  112. margin-bottom: 0;
  113. }
  114. .block-directory-compact-list__item-details {
  115. margin-right: 8px;
  116. }
  117. .block-directory-compact-list__item-title {
  118. font-weight: 500;
  119. }
  120. .block-directory-compact-list__item-author {
  121. color: #757575;
  122. font-size: 11px;
  123. }
  124. .block-directory-downloadable-block-icon {
  125. min-width: 54px;
  126. width: 54px;
  127. height: 54px;
  128. vertical-align: middle;
  129. border: 1px solid #ddd;
  130. }
  131. .block-directory-downloadable-block-list-item {
  132. padding: 12px;
  133. width: 100%;
  134. height: auto;
  135. text-align: right;
  136. display: grid;
  137. grid-template-columns: auto 1fr;
  138. }
  139. .block-directory-downloadable-block-list-item:hover {
  140. box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
  141. }
  142. .block-directory-downloadable-block-list-item.is-busy {
  143. background: transparent;
  144. }
  145. .block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author {
  146. border: 0;
  147. clip: rect(1px, 1px, 1px, 1px);
  148. -webkit-clip-path: inset(50%);
  149. clip-path: inset(50%);
  150. height: 1px;
  151. margin: -1px;
  152. overflow: hidden;
  153. padding: 0;
  154. position: absolute;
  155. width: 1px;
  156. word-wrap: normal !important;
  157. }
  158. .block-directory-downloadable-block-list-item:disabled, .block-directory-downloadable-block-list-item[aria-disabled] {
  159. opacity: 1;
  160. }
  161. .block-directory-downloadable-block-list-item__icon {
  162. position: relative;
  163. margin-left: 16px;
  164. align-self: flex-start;
  165. }
  166. .block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner {
  167. position: absolute;
  168. top: 0;
  169. left: 0;
  170. bottom: 0;
  171. right: 0;
  172. background: rgba(255, 255, 255, 0.75);
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. }
  177. .block-directory-block-ratings {
  178. display: block;
  179. margin-top: 4px;
  180. }
  181. .block-directory-downloadable-block-list-item__details {
  182. color: #1e1e1e;
  183. }
  184. .block-directory-downloadable-block-list-item__title {
  185. display: block;
  186. font-weight: 600;
  187. }
  188. .block-directory-downloadable-block-list-item__author {
  189. display: block;
  190. margin-top: 4px;
  191. font-weight: normal;
  192. }
  193. .block-directory-downloadable-block-list-item__desc {
  194. display: block;
  195. margin-top: 8px;
  196. }
  197. .block-directory-downloadable-block-notice {
  198. margin: 8px 0 0;
  199. color: #cc1818;
  200. }
  201. .block-directory-downloadable-block-notice__content {
  202. padding-left: 12px;
  203. margin-bottom: 8px;
  204. }
  205. .block-directory-downloadable-blocks-panel {
  206. padding: 16px;
  207. }
  208. .block-directory-downloadable-blocks-panel.has-blocks-loading {
  209. font-style: normal;
  210. padding: 0;
  211. margin: 112px 0;
  212. text-align: center;
  213. color: #757575;
  214. }
  215. .block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner {
  216. float: inherit;
  217. }
  218. .block-directory-downloadable-blocks-panel__no-local {
  219. margin: 48px 0;
  220. padding: 0 64px;
  221. color: #757575;
  222. text-align: center;
  223. }
  224. .block-directory-downloadable-blocks-panel__title {
  225. margin: 0 0 4px;
  226. font-size: 14px;
  227. }
  228. .block-directory-downloadable-blocks-panel__description {
  229. margin-top: 0;
  230. }
  231. .block-directory-downloadable-blocks-panel button {
  232. margin-top: 4px;
  233. }
  234. .installed-blocks-pre-publish-panel__copy {
  235. margin-top: 0;
  236. }