style-child-theme-editor.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /**
  2. * These styles should be loaded by the Block Editor only
  3. */
  4. /**
  5. * Abstracts
  6. * - Mixins, variables and functions
  7. */
  8. @import "../../varia/sass/abstracts/imports";
  9. /**
  10. * Child Theme Name
  11. */
  12. @import "config-child-theme-deep";
  13. /**
  14. * Base
  15. * - Reset the browser
  16. */
  17. @import "../../varia/sass/base/editor";
  18. /**
  19. * Elements
  20. * - Styles for basic HTML elemants
  21. */
  22. @import "../../varia/sass/elements/editor";
  23. /**
  24. * Blocks
  25. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  26. * spacing with CSS-variables overrides
  27. */
  28. @import "../../varia/sass/blocks/editor";
  29. /**
  30. * Extra Editor Styles
  31. *
  32. * 1. General Styles
  33. * 2. Block Specific Styles
  34. * 2.1. Column Block
  35. * 2.2. Quote Block
  36. * 2.3. File Block
  37. * 2.4. Pre Block and Verse Block
  38. * 2.5. Button Block
  39. * 2.6. Search Block
  40. */
  41. .editor-post-title__input {
  42. text-align: center;
  43. }
  44. /**
  45. * 1. General Styles
  46. */
  47. body {
  48. background-color: #{map-deep-get($config-global, "color", "white")};
  49. font-weight: 300;
  50. }
  51. a {
  52. text-decoration: none;
  53. }
  54. /**
  55. * 2. Block Specific Styles
  56. */
  57. /**
  58. * 2.1. Column Block
  59. */
  60. .wp-block-coblocks-column {
  61. h1,
  62. h2,
  63. h3,
  64. h4,
  65. h5,
  66. h6 {
  67. margin-bottom: .857em;
  68. }
  69. a {
  70. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  71. &:hover {
  72. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  73. }
  74. }
  75. }
  76. /**
  77. * 2.2. Quote Block
  78. */
  79. .wp-block-quote,
  80. .wp-block-quote[style*="text-align:center"],
  81. .wp-block-quote[style*="text-align:right"] {
  82. border: 1px solid #f2f2f2;
  83. padding: #{map-deep-get($config-global, "spacing", "horizontal")};;
  84. p {
  85. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  86. }
  87. .wp-block-quote__citation {
  88. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  89. }
  90. }
  91. /**
  92. * 2.3. File Block
  93. */
  94. .wp-block-file {
  95. div {
  96. &.wp-block-file__button {
  97. text-transform: uppercase;
  98. line-height: #{map-deep-get($config-button, "font", "line-height")};
  99. color: #{map-deep-get($config-button, "color", "text")};
  100. cursor: pointer;
  101. font-weight: #{map-deep-get($config-button, "font", "weight")};
  102. @include font-family( map-deep-get($config-button, "font", "family") );
  103. font-size: #{map-deep-get($config-button, "font", "size")};
  104. background-color: #{map-deep-get($config-button, "color", "background")};
  105. border-radius: #{map-deep-get($config-button, "border-radius")};
  106. border-width: #{map-deep-get($config-button, "border-width")};
  107. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  108. display: inline-block;
  109. &:focus,
  110. &:hover,
  111. &:visited {
  112. color: #{map-deep-get($config-button, "color", "text-hover")};
  113. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  114. opacity: 1;
  115. }
  116. }
  117. }
  118. }
  119. /**
  120. * 2.4. Pre Block and Verse Block
  121. */
  122. .wp-block-preformatted,
  123. .wp-block-verse {
  124. pre {
  125. font-family: #{map-deep-get($config-global, "font", "family", "code")};
  126. }
  127. }
  128. /**
  129. * 2.5. Button Block
  130. */
  131. .wp-block-button {
  132. div {
  133. &.wp-block-button__link {
  134. text-transform: uppercase;
  135. }
  136. }
  137. }
  138. /**
  139. * 2.6. Search Block
  140. */
  141. .wp-block-search {
  142. .wp-block-search__button {
  143. text-transform: uppercase;
  144. line-height: #{map-deep-get($config-button, "font", "line-height")};
  145. color: #{map-deep-get($config-button, "color", "text")};
  146. cursor: pointer;
  147. font-weight: #{map-deep-get($config-button, "font", "weight")};
  148. @include font-family( map-deep-get($config-button, "font", "family") );
  149. font-size: #{map-deep-get($config-button, "font", "size")};
  150. background-color: #{map-deep-get($config-button, "color", "background")};
  151. border-radius: #{map-deep-get($config-button, "border-radius")};
  152. border-width: #{map-deep-get($config-button, "border-width")};
  153. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  154. display: inline-block;
  155. &:focus,
  156. &:hover,
  157. &:visited {
  158. color: #{map-deep-get($config-button, "color", "text-hover")};
  159. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  160. opacity: 1;
  161. }
  162. border: none;
  163. box-shadow: none;
  164. }
  165. }