editor-blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. /*
  2. Theme Name: Lodestar
  3. Description: Used to style Gutenberg Blocks in the editor.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 General Typography
  9. 2.0 General Block Settings
  10. 3.0 Blocks - Common Blocks
  11. 4.0 Blocks - Formatting
  12. 5.0 Blocks - Layout Elements
  13. 6.0 Blocks - Widgets
  14. --------------------------------------------------------------*/
  15. /*--------------------------------------------------------------
  16. 1.0 General Typography
  17. --------------------------------------------------------------*/
  18. .edit-post-visual-editor .editor-block-list__block,
  19. .editor-default-block-appender textarea.editor-default-block-appender__content {
  20. font-family: "Karla", "Helvetica Neue", helvetica, arial, sans-serif;
  21. }
  22. .edit-post-visual-editor .editor-block-list__block,
  23. .edit-post-visual-editor .editor-block-list__block p,
  24. .editor-default-block-appender textarea.editor-default-block-appender__content {
  25. font-size: 16px;
  26. line-height: 1.5;
  27. }
  28. .edit-post-visual-editor .editor-block-list__block {
  29. color: #333;
  30. }
  31. /* Post title */
  32. .editor-post-title__block .editor-post-title__input {
  33. font-family: "Work Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  34. font-size: 34px;
  35. font-weight: 800;
  36. letter-spacing: 0.1em;
  37. line-height: 1.25;
  38. }
  39. /* Headings */
  40. .edit-post-visual-editor h1,
  41. .wp-block-freeform.block-library-rich-text__tinymce h1,
  42. .edit-post-visual-editor h2,
  43. .wp-block-freeform.block-library-rich-text__tinymce h2,
  44. .edit-post-visual-editor h3,
  45. .wp-block-freeform.block-library-rich-text__tinymce h3,
  46. .edit-post-visual-editor h4,
  47. .wp-block-freeform.block-library-rich-text__tinymce h4,
  48. .edit-post-visual-editor h5,
  49. .wp-block-freeform.block-library-rich-text__tinymce h5,
  50. .edit-post-visual-editor h6,
  51. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  52. font-family: "Work Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  53. font-weight: 800;
  54. letter-spacing: 0.1em;
  55. line-height: 1.25;
  56. text-transform: uppercase;
  57. }
  58. .edit-post-visual-editor h1,
  59. .wp-block-freeform.block-library-rich-text__tinymce h1,
  60. .edit-post-visual-editor h2,
  61. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  62. color: #ccc;
  63. }
  64. .edit-post-visual-editor h3,
  65. .wp-block-freeform.block-library-rich-text__tinymce h3,
  66. .edit-post-visual-editor h4,
  67. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  68. color: #333;
  69. }
  70. .edit-post-visual-editor h5,
  71. .wp-block-freeform.block-library-rich-text__tinymce h5,
  72. .edit-post-visual-editor h6,
  73. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  74. color: #666;
  75. }
  76. .edit-post-visual-editor h1,
  77. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  78. font-size: 30px;
  79. }
  80. .edit-post-visual-editor h2,
  81. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  82. font-size: 26px;
  83. }
  84. .edit-post-visual-editor h3,
  85. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  86. font-size: 22px;
  87. }
  88. .edit-post-visual-editor h4,
  89. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  90. font-size: 18px;
  91. }
  92. .edit-post-visual-editor h5,
  93. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  94. font-size: 16px;
  95. }
  96. .edit-post-visual-editor h6,
  97. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  98. font-size: 14px;
  99. }
  100. /*--------------------------------------------------------------
  101. 2.0 General Block Settings
  102. --------------------------------------------------------------*/
  103. /* Main content width */
  104. .wp-block {
  105. max-width: 730px; /* 700px + 30px to account for padding */
  106. }
  107. /* Link styles */
  108. .edit-post-visual-editor a,
  109. .editor-block-list__block a,
  110. .wp-block-freeform.block-library-rich-text__tinymce a {
  111. color: #999;
  112. border-bottom: 2px solid transparent;
  113. text-decoration: none;
  114. transition: border-bottom-color 0.2s;
  115. }
  116. .edit-post-visual-editor a:hover,
  117. .edit-post-visual-editor a:focus,
  118. .editor-block-list__block a:hover,
  119. .editor-block-list__block a:focus,
  120. .wp-block-freeform.block-library-rich-text__tinymce a:hover,
  121. .wp-block-freeform.block-library-rich-text__tinymce a:focus {
  122. color: #333;
  123. border-bottom-color: currentColor;
  124. }
  125. /* Table styles */
  126. .wp-block-freeform.block-library-rich-text__tinymce table {
  127. border-collapse: collapse;
  128. }
  129. .wp-block-freeform.block-library-rich-text__tinymce table,
  130. .wp-block-freeform.block-library-rich-text__tinymce table th,
  131. .wp-block-freeform.block-library-rich-text__tinymce table td {
  132. border-color: #ddd;
  133. border-style: solid;
  134. }
  135. .wp-block-freeform.block-library-rich-text__tinymce table th,
  136. .wp-block-freeform.block-library-rich-text__tinymce table td {
  137. padding: 0.5em;
  138. }
  139. .rtl .wp-block-freeform.block-library-rich-text__tinymce td,
  140. .rtl .wp-block-freeform.block-library-rich-text__tinymce th {
  141. text-align: right;
  142. }
  143. /* Quote styles */
  144. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  145. border-left: 4px solid #ddd;
  146. margin-left: 2em;
  147. padding-left: 1.5em;
  148. }
  149. .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
  150. font-style: italic;
  151. }
  152. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  153. border-left: 0;
  154. border-right: 4px solid #ddd;
  155. margin-left: 0;
  156. margin-right: 2em;
  157. padding-left: 0;
  158. padding-right: 1.5em;
  159. }
  160. /* List styles */
  161. .wp-block-freeform.block-library-rich-text__tinymce li,
  162. .editor-styles-wrapper li {
  163. margin-bottom: 0;
  164. }
  165. /* Code styles */
  166. .wp-block-freeform.block-library-rich-text__tinymce code {
  167. background: transparent;
  168. }
  169. /* Caption styles */
  170. [class^="wp-block-"] figcaption {
  171. font-size: 16px;
  172. line-height: 1.5;
  173. }
  174. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  175. color: #333;
  176. }
  177. /* Definition List styles */
  178. .wp-block-freeform.block-library-rich-text__tinymce dt {
  179. font-weight: bold;
  180. }
  181. /* Pre styles */
  182. .wp-block-freeform.block-library-rich-text__tinymce pre {
  183. background: #eee;
  184. padding: 1.6em;
  185. }
  186. /*--------------------------------------------------------------
  187. 3.0 Blocks - Common Blocks
  188. --------------------------------------------------------------*/
  189. /* Paragraph */
  190. p.has-drop-cap:not(:focus)::first-letter {
  191. font-size: 5em;
  192. margin-top: 0.15em;
  193. }
  194. /* Quote */
  195. .editor-styles-wrapper .wp-block-quote,
  196. .wp-block-quote:not(.is-large):not(.is-style-large),
  197. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"],
  198. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"] {
  199. border-left: 4px solid #ddd;
  200. border-right: 0;
  201. padding-left: 1.5em;
  202. padding-right: 0;
  203. }
  204. .rtl .editor-styles-wrapper .wp-block-quote,
  205. .rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
  206. border-left: 0;
  207. border-right: 4px solid #ddd;
  208. margin-left: 0;
  209. margin-right: 2em;
  210. padding-left: 0;
  211. padding-right: 1.5em;
  212. }
  213. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"],
  214. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"] {
  215. border: 0;
  216. padding: 0;
  217. }
  218. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"],
  219. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"] {
  220. border-left: 0;
  221. border-right: 4px solid #ddd;
  222. padding-left: 0;
  223. padding-right: 1.5em;
  224. }
  225. .wp-block-quote .wp-block-quote__citation {
  226. color: inherit;
  227. font-size: inherit;
  228. font-style: italic;
  229. }
  230. .wp-block-quote.is-large p,
  231. .wp-block-quote.is-style-large p {
  232. font-size: 24px;
  233. }
  234. .wp-block-quote.is-large .wp-block-quote__citation,
  235. .wp-block-quote.is-style-large .wp-block-quote__citation {
  236. font-size: 18px;
  237. }
  238. /* Cover */
  239. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  240. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  241. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  242. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  243. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  244. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  245. font-size: 1.5em;
  246. }
  247. /* File */
  248. .wp-block-file__textlink {
  249. color: #999;
  250. border-bottom: 2px solid transparent;
  251. text-decoration: none;
  252. transition: border-bottom-color 0.2s;
  253. }
  254. .wp-block-file__textlink:hover,
  255. .wp-block-file__textlink:focus {
  256. color: #333;
  257. border-bottom-color: currentColor;
  258. }
  259. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  260. line-height: 14px;
  261. }
  262. .wp-block-file .wp-block-file__button,
  263. .wp-block-file .wp-block-file__button:visited {
  264. background: #29292a;
  265. border: 0;
  266. border-radius: 0;
  267. box-shadow: none;
  268. color: #fff;
  269. font-size: 14px;
  270. font-size: 0.875rem;
  271. letter-spacing: 0.05em;
  272. line-height: 1;
  273. padding: 1em 1.5em;
  274. text-shadow: none;
  275. text-transform: uppercase;
  276. transition: background 0.2s;
  277. }
  278. /*--------------------------------------------------------------
  279. 4.0 Blocks - Formatting
  280. --------------------------------------------------------------*/
  281. /* Verse */
  282. .wp-block-verse {
  283. font-style: italic;
  284. }
  285. .wp-block-verse pre {
  286. padding: 0;
  287. }
  288. /* Code */
  289. .wp-block-code {
  290. background: #eee;
  291. border: none;
  292. border-radius: 0;
  293. padding: 1.6em;
  294. }
  295. .wp-block-code textarea {
  296. background: transparent;
  297. }
  298. /* Preformatted */
  299. .wp-block-preformatted {
  300. background: #eee;
  301. padding: 1.6em;
  302. }
  303. /* Pullquote */
  304. .wp-block-pullquote {
  305. border: 0;
  306. }
  307. .wp-block-pullquote__citation {
  308. color: inherit;
  309. font-size: 16px;
  310. font-style: italic;
  311. text-transform: none;
  312. }
  313. .wp-block-pullquote.alignleft blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  314. .wp-block-pullquote.alignright blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  315. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  316. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  317. font-size: 20px;
  318. }
  319. /* Table */
  320. .wp-block-table th,
  321. .wp-block-table td {
  322. border-color: #ddd;
  323. }
  324. .wp-block-table th {
  325. text-align: left;
  326. }
  327. .rtl .wp-block-table th {
  328. text-align: right;
  329. }
  330. .wp-block-table__cell-content {
  331. padding: 0.5em;
  332. }
  333. /*--------------------------------------------------------------
  334. 5.0 Blocks - Layout Elements
  335. --------------------------------------------------------------*/
  336. /* Buttons */
  337. .wp-block-button .wp-block-button__link {
  338. background: #29292a;
  339. box-shadow: none;
  340. color: #fff;
  341. font-size: 14px;
  342. font-size: 0.875rem;
  343. letter-spacing: 0.05em;
  344. line-height: 1;
  345. padding: 1em 1.5em;
  346. text-transform: uppercase;
  347. transition: background 0.2s;
  348. }
  349. .wp-block-button.is-style-outline .wp-block-button__link {
  350. border: 2px solid currentColor;
  351. background: transparent;
  352. }
  353. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  354. color: #29292a;
  355. }
  356. /* Separator */
  357. .wp-block-separator {
  358. background-color: #ccc;
  359. border: 0;
  360. height: 1px;
  361. }
  362. /*--------------------------------------------------------------
  363. 6.0 Blocks - Widgets
  364. --------------------------------------------------------------*/
  365. /* General Widget styles */
  366. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  367. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  368. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  369. list-style-position: inside;
  370. }
  371. /* Latest Comments */
  372. .editor-styles-wrapper .wp-block-latest-comments {
  373. padding-left: 0;
  374. padding-right: 0;
  375. }
  376. .wp-block-latest-comments__comment-date,
  377. .wp-block-latest-comments__comment-excerpt p {
  378. color: inherit;
  379. font-size: inherit;
  380. }