editor.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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-social-links div.block-editor-url-input {
  78. display: inline-block;
  79. margin-left: 8px;
  80. }
  81. .wp-block-social-links.wp-block-social-links {
  82. background: none;
  83. }
  84. .wp-social-link:hover {
  85. transform: none;
  86. }
  87. .editor-styles-wrapper .wp-block-social-links {
  88. padding: 0;
  89. }
  90. .wp-block-social-links__social-placeholder {
  91. display: flex;
  92. opacity: 0.8;
  93. list-style: none;
  94. }
  95. .wp-block-social-links__social-placeholder > .wp-social-link {
  96. padding-left: 0 !important;
  97. margin-left: 0 !important;
  98. padding-right: 0 !important;
  99. margin-right: 0 !important;
  100. width: 0 !important;
  101. visibility: hidden;
  102. }
  103. .wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
  104. display: flex;
  105. }
  106. .wp-block-social-links__social-placeholder .wp-social-link {
  107. padding: 0.25em;
  108. }
  109. .is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
  110. padding-left: calc((2/3) * 1em);
  111. padding-right: calc((2/3) * 1em);
  112. }
  113. .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link {
  114. padding: 0;
  115. }
  116. .wp-block-social-links__social-placeholder .wp-social-link::before {
  117. content: "";
  118. display: block;
  119. width: 1em;
  120. height: 1em;
  121. border-radius: 50%;
  122. }
  123. .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before {
  124. background: currentColor;
  125. }
  126. .wp-block-social-links .wp-block-social-links__social-prompt {
  127. min-height: 24px;
  128. list-style: none;
  129. order: 2;
  130. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  131. font-size: 13px;
  132. line-height: 24px;
  133. margin-top: auto;
  134. margin-bottom: auto;
  135. cursor: default;
  136. padding-right: 8px;
  137. }
  138. .wp-block[data-align=center] > .wp-block-social-links {
  139. justify-content: center;
  140. }
  141. .block-editor-block-preview__content .components-button:disabled {
  142. opacity: 1;
  143. }
  144. .wp-social-link.wp-social-link__is-incomplete {
  145. opacity: 0.5;
  146. }
  147. @media (prefers-reduced-motion: reduce) {
  148. .wp-social-link.wp-social-link__is-incomplete {
  149. transition-duration: 0s;
  150. transition-delay: 0s;
  151. }
  152. }
  153. .wp-block-social-links .is-selected .wp-social-link__is-incomplete,
  154. .wp-social-link.wp-social-link__is-incomplete:hover,
  155. .wp-social-link.wp-social-link__is-incomplete:focus {
  156. opacity: 1;
  157. }