Нет описания

style.css 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. * Breakpoint mixins
  45. */
  46. /**
  47. * Long content fade mixin
  48. *
  49. * Creates a fading overlay to signify that the content is longer
  50. * than the space allows.
  51. */
  52. /**
  53. * Focus styles.
  54. */
  55. /**
  56. * Applies editor left position to the selector passed as argument
  57. */
  58. /**
  59. * Styles that are reused verbatim in a few places
  60. */
  61. /**
  62. * Allows users to opt-out of animations via OS-level preferences.
  63. */
  64. /**
  65. * Reset default styles for JavaScript UI based pages.
  66. * This is a WP-admin agnostic reset
  67. */
  68. /**
  69. * Reset the WP Admin page styles for Gutenberg-like pages.
  70. */
  71. :root {
  72. --wp-admin-theme-color: #007cba;
  73. --wp-admin-theme-color-darker-10: #006ba1;
  74. --wp-admin-theme-color-darker-20: #005a87;
  75. --wp-admin-border-width-focus: 2px;
  76. }
  77. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  78. :root {
  79. --wp-admin-border-width-focus: 1.5px;
  80. }
  81. }
  82. .block-directory-block-ratings > span {
  83. display: flex;
  84. }
  85. .block-directory-block-ratings svg {
  86. fill: #1e1e1e;
  87. margin-left: -4px;
  88. }
  89. .block-directory-block-ratings .block-directory-block-ratings__star-empty {
  90. fill: #ccc;
  91. }
  92. .block-directory-compact-list {
  93. margin: 0;
  94. list-style: none;
  95. }
  96. .block-directory-compact-list__item {
  97. display: flex;
  98. flex-direction: row;
  99. align-items: center;
  100. margin-bottom: 16px;
  101. }
  102. .block-directory-compact-list__item:last-child {
  103. margin-bottom: 0;
  104. }
  105. .block-directory-compact-list__item-details {
  106. margin-left: 8px;
  107. }
  108. .block-directory-compact-list__item-title {
  109. font-weight: 500;
  110. }
  111. .block-directory-compact-list__item-author {
  112. color: #757575;
  113. font-size: 11px;
  114. }
  115. .block-directory-downloadable-block-icon {
  116. min-width: 54px;
  117. width: 54px;
  118. height: 54px;
  119. vertical-align: middle;
  120. border: 1px solid #ddd;
  121. }
  122. .block-directory-downloadable-block-list-item {
  123. padding: 12px;
  124. width: 100%;
  125. height: auto;
  126. text-align: left;
  127. display: grid;
  128. grid-template-columns: auto 1fr;
  129. }
  130. .block-directory-downloadable-block-list-item:hover {
  131. box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
  132. }
  133. .block-directory-downloadable-block-list-item.is-busy {
  134. background: transparent;
  135. }
  136. .block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author {
  137. border: 0;
  138. clip: rect(1px, 1px, 1px, 1px);
  139. -webkit-clip-path: inset(50%);
  140. clip-path: inset(50%);
  141. height: 1px;
  142. margin: -1px;
  143. overflow: hidden;
  144. padding: 0;
  145. position: absolute;
  146. width: 1px;
  147. word-wrap: normal !important;
  148. }
  149. .block-directory-downloadable-block-list-item:disabled, .block-directory-downloadable-block-list-item[aria-disabled] {
  150. opacity: 1;
  151. }
  152. .block-directory-downloadable-block-list-item__icon {
  153. position: relative;
  154. margin-right: 16px;
  155. align-self: flex-start;
  156. }
  157. .block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner {
  158. position: absolute;
  159. top: 0;
  160. right: 0;
  161. bottom: 0;
  162. left: 0;
  163. background: rgba(255, 255, 255, 0.75);
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. }
  168. .block-directory-block-ratings {
  169. display: block;
  170. margin-top: 4px;
  171. }
  172. .block-directory-downloadable-block-list-item__details {
  173. color: #1e1e1e;
  174. }
  175. .block-directory-downloadable-block-list-item__title {
  176. display: block;
  177. font-weight: 600;
  178. }
  179. .block-directory-downloadable-block-list-item__author {
  180. display: block;
  181. margin-top: 4px;
  182. font-weight: normal;
  183. }
  184. .block-directory-downloadable-block-list-item__desc {
  185. display: block;
  186. margin-top: 8px;
  187. }
  188. .block-directory-downloadable-block-notice {
  189. margin: 8px 0 0;
  190. color: #cc1818;
  191. }
  192. .block-directory-downloadable-block-notice__content {
  193. padding-right: 12px;
  194. margin-bottom: 8px;
  195. }
  196. .block-directory-downloadable-blocks-panel {
  197. padding: 16px;
  198. }
  199. .block-directory-downloadable-blocks-panel.has-blocks-loading {
  200. font-style: normal;
  201. padding: 0;
  202. margin: 112px 0;
  203. text-align: center;
  204. color: #757575;
  205. }
  206. .block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner {
  207. float: inherit;
  208. }
  209. .block-directory-downloadable-blocks-panel__no-local {
  210. margin: 48px 0;
  211. padding: 0 64px;
  212. color: #757575;
  213. text-align: center;
  214. }
  215. .block-directory-downloadable-blocks-panel__title {
  216. margin: 0 0 4px;
  217. font-size: 14px;
  218. }
  219. .block-directory-downloadable-blocks-panel__description {
  220. margin-top: 0;
  221. }
  222. .block-directory-downloadable-blocks-panel button {
  223. margin-top: 4px;
  224. }
  225. .installed-blocks-pre-publish-panel__copy {
  226. margin-top: 0;
  227. }