editor-blocks.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. /*
  2. Theme Name: Shoreditch
  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: Lato, sans-serif;
  21. }
  22. /* Font size */
  23. .edit-post-visual-editor .editor-block-list__block,
  24. .edit-post-visual-editor .editor-block-list__block p,
  25. .editor-default-block-appender textarea.editor-default-block-appender__content {
  26. font-size: 16px;
  27. line-height: 1.5;
  28. }
  29. @media screen and (min-width: 768px) {
  30. .edit-post-visual-editor .editor-block-list__block,
  31. .edit-post-visual-editor .editor-block-list__block p,
  32. .editor-default-block-appender textarea.editor-default-block-appender__content {
  33. font-size: 20px;
  34. }
  35. }
  36. /* Color */
  37. .edit-post-visual-editor .editor-block-list__block {
  38. color: #73757D;
  39. }
  40. /* Post title */
  41. .editor-post-title__block .editor-post-title__input {
  42. color: #2c313f;
  43. font-family: Poppins, sans-serif;
  44. font-weight: bold;
  45. font-size: 40px;
  46. }
  47. @media screen and (min-width: 768px) {
  48. .editor-post-title__block .editor-post-title__input {
  49. font-size: 49px;
  50. }
  51. }
  52. /* Headings */
  53. .edit-post-visual-editor h1,
  54. .wp-block-freeform.block-library-rich-text__tinymce h1,
  55. .edit-post-visual-editor h2,
  56. .wp-block-freeform.block-library-rich-text__tinymce h2,
  57. .edit-post-visual-editor h3,
  58. .wp-block-freeform.block-library-rich-text__tinymce h3,
  59. .edit-post-visual-editor h4,
  60. .wp-block-freeform.block-library-rich-text__tinymce h4,
  61. .edit-post-visual-editor h5,
  62. .wp-block-freeform.block-library-rich-text__tinymce h5,
  63. .edit-post-visual-editor h6,
  64. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  65. color: #2c313f;
  66. font-family: Poppins, sans-serif;
  67. font-weight: bold;
  68. margin: 0 0 1.875rem;
  69. }
  70. .edit-post-visual-editor h1,
  71. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  72. font-size: 40px;
  73. }
  74. .edit-post-visual-editor h2,
  75. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  76. font-size: 32px;
  77. }
  78. .edit-post-visual-editor h3,
  79. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  80. font-size: 25px;
  81. }
  82. .edit-post-visual-editor h4,
  83. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  84. font-size: 20px;
  85. }
  86. .edit-post-visual-editor h5,
  87. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  88. font-size: 16px;
  89. }
  90. .edit-post-visual-editor h6,
  91. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  92. font-size: 13px;
  93. }
  94. @media screen and (min-width: 768px) {
  95. .edit-post-visual-editor h1,
  96. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  97. font-size: 49px;
  98. }
  99. .edit-post-visual-editor h2,
  100. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  101. font-size: 40px;
  102. }
  103. .edit-post-visual-editor h3,
  104. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  105. font-size: 32px;
  106. }
  107. .edit-post-visual-editor h4,
  108. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  109. font-size: 25px;
  110. }
  111. .edit-post-visual-editor h5,
  112. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  113. font-size: 20px;
  114. }
  115. .edit-post-visual-editor h6,
  116. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  117. font-size: 16px;
  118. }
  119. }
  120. /*--------------------------------------------------------------
  121. 2.0 General Block Settings
  122. --------------------------------------------------------------*/
  123. /* Main content width */
  124. .wp-block {
  125. max-width: 610px; /* 580px + 30px to account for padding */
  126. }
  127. /* Link styles */
  128. .edit-post-visual-editor a,
  129. .editor-block-list__block a,
  130. .wp-block-freeform.block-library-rich-text__tinymce a {
  131. color: #2c313f;
  132. text-decoration: underline;
  133. }
  134. /* Table styles */
  135. .wp-block-freeform.block-library-rich-text__tinymce table {
  136. border-collapse: collapse;
  137. }
  138. .wp-block-freeform.block-library-rich-text__tinymce table th,
  139. .wp-block-freeform.block-library-rich-text__tinymce table td {
  140. border-color: #f3f3f3;
  141. }
  142. .wp-block-freeform.block-library-rich-text__tinymce table th {
  143. text-align: center;
  144. }
  145. /* Quote styles */
  146. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  147. border: 0 solid #3e69dc;
  148. border-left-width: 2px;
  149. color: inherit;
  150. font-style: italic;
  151. line-height: 1.5;
  152. margin: 0 0 1.5rem;
  153. padding-left: 1.5rem;
  154. }
  155. .wp-block-freeform.block-library-rich-text__tinymce cite {
  156. color: #2c313f;
  157. font-size: 20px;
  158. font-style: italic;
  159. }
  160. .edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  161. font-size: 20px;
  162. }
  163. @media (min-width: 768px) {
  164. .edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p,
  165. .wp-block-freeform.block-library-rich-text__tinymce cite {
  166. font-size: 25px;
  167. }
  168. }
  169. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  170. border-left-width: 0;
  171. border-right-width: 2px;
  172. padding-left: 0;
  173. padding-right: 1.5rem;
  174. }
  175. /* List styles */
  176. .wp-block-freeform.block-library-rich-text__tinymce li,
  177. .editor-styles-wrapper li {
  178. margin-bottom: 0;
  179. }
  180. /* Code styles */
  181. .wp-block-freeform.block-library-rich-text__tinymce code {
  182. background: transparent;
  183. }
  184. /* Caption styles */
  185. [class^="wp-block-"] figcaption {
  186. color: inherit;
  187. font-size: 16px;
  188. font-style: italic;
  189. }
  190. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  191. border-bottom: 1px solid #f3f3f3;
  192. margin-top: 0.25em;
  193. padding-bottom: 0.25em;
  194. }
  195. .wp-block:not([data-align="full"]) [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  196. text-align: left;
  197. }
  198. .rtl .wp-block:not([data-align="full"]) [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  199. text-align: right;
  200. }
  201. /* Definition List styles */
  202. .wp-block-freeform.block-library-rich-text__tinymce dt {
  203. font-weight: bold;
  204. }
  205. .wp-block-freeform.block-library-rich-text__tinymce dd {
  206. margin-left: 1.5em;
  207. margin-right: 1.5em;
  208. }
  209. /* Pre styles */
  210. .wp-block-freeform.block-library-rich-text__tinymce pre {
  211. border: 1px solid #f3f3f3;
  212. color: #73757D;
  213. font-family: Inconsolata, monospace;
  214. font-size: 16px;
  215. padding: 1.5em;
  216. }
  217. @media (min-width: 768px) {
  218. .wp-block-freeform.block-library-rich-text__tinymce pre {
  219. font-size: 20px;
  220. }
  221. }
  222. /* Code, etc styles */
  223. .wp-block-freeform.block-library-rich-text__tinymce code,
  224. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  225. .wp-block-freeform.block-library-rich-text__tinymce tt,
  226. .wp-block-freeform.block-library-rich-text__tinymce var {
  227. background: #f3f3f3;
  228. font-family: Inconsolata, monospace;
  229. font-size: inherit;
  230. padding: 0 0.25em;
  231. }
  232. /* Mark & Ins styles */
  233. .wp-block-freeform.block-library-rich-text__tinymce mark,
  234. .wp-block-freeform.block-library-rich-text__tinymce ins {
  235. background: #3e69dc;
  236. color: #fff;
  237. padding: 0 0.25em;
  238. text-decoration: none;
  239. }
  240. /*--------------------------------------------------------------
  241. 3.0 Blocks - Common Blocks
  242. --------------------------------------------------------------*/
  243. /* Paragraph */
  244. p.has-drop-cap:not(:focus)::first-letter {
  245. font-size: 5em;
  246. margin-top: 0.15em;
  247. }
  248. /* Quote */
  249. .wp-block-quote:not(.is-large):not(.is-style-large),
  250. .wp-block-quote.is-large,
  251. .wp-block-quote.is-style-large,
  252. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"],
  253. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"],
  254. .rtl .wp-block-quote.is-large[style*="text-align:left"],
  255. .rtl .wp-block-quote.is-large[style*="text-align: left"],
  256. .rtl .wp-block-quote.is-style-large[style*="text-align:left"],
  257. .rtl .wp-block-quote.is-style-large[style*="text-align: left"] {
  258. border: 0 solid #3e69dc;
  259. border-left-width: 2px;
  260. color: inherit;
  261. font-style: italic;
  262. line-height: 1.5;
  263. margin: 0 0 1.5rem;
  264. padding-left: 1.5rem;
  265. }
  266. .wp-block-quote:not(.is-large):not(.is-style-large) p {
  267. font-size: 20px;
  268. }
  269. .editor-styles-wrapper .wp-block-quote.is-large p,
  270. .editor-styles-wrapper .wp-block-quote.is-style-large p {
  271. font-size: 26px;
  272. }
  273. .wp-block-quote .wp-block-quote__citation {
  274. color: #2c313f;
  275. font-style: italic;
  276. }
  277. .wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
  278. font-size: 20px;
  279. }
  280. .wp-block-quote.is-large .wp-block-quote__citation,
  281. .wp-block-quote.is-style-large .wp-block-quote__citation {
  282. font-size: 26px
  283. }
  284. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"],
  285. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"],
  286. .wp-block-quote.is-large[style*="text-align:right"],
  287. .wp-block-quote.is-large[style*="text-align: right"],
  288. .wp-block-quote.is-style-large[style*="text-align:right"],
  289. .wp-block-quote.is-style-large[style*="text-align:right"],
  290. .rtl .wp-block-quote:not(.is-large):not(.is-style-large),
  291. .rtl .wp-block-quote.is-large,
  292. .rtl .wp-block-quote.is-style-large {
  293. border-left-width: 0;
  294. border-right-width: 2px;
  295. padding-left: 0;
  296. padding-right: 1.5rem;
  297. }
  298. .rtl .wp-block-quote .wp-block-quote__citation {
  299. text-align: right;
  300. }
  301. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"],
  302. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"],
  303. .wp-block-quote.is-large[style*="text-align:center"],
  304. .wp-block-quote.is-large[style*="text-align: center"],
  305. .wp-block-quote.is-style-large[style*="text-align:center"],
  306. .wp-block-quote.is-style-large[style*="text-align:center"] {
  307. border: 0;
  308. padding-left: 0;
  309. padding-right: 0;
  310. }
  311. @media (min-width: 768px) {
  312. .wp-block-quote:not(.is-large):not(.is-style-large) p {
  313. font-size: 25px;
  314. }
  315. .editor-styles-wrapper .wp-block-quote.is-large p,
  316. .editor-styles-wrapper .wp-block-quote.is-style-large p {
  317. font-size: 32px;
  318. }
  319. .wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
  320. font-size: 26px;
  321. }
  322. .wp-block-quote.is-large .wp-block-quote__citation,
  323. .wp-block-quote.is-style-large .wp-block-quote__citation {
  324. font-size: 26px
  325. }
  326. }
  327. /* Cover */
  328. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  329. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  330. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  331. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  332. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  333. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  334. font-size: 1.5em;
  335. }
  336. /* File */
  337. .wp-block-file__textlink {
  338. color: #2c313f;
  339. text-decoration: underline;
  340. }
  341. .wp-block-file .wp-block-file__button {
  342. background: #3e69dc;
  343. border: 0;
  344. border-radius: 5em;
  345. color: #fff;
  346. font-size: 13px;
  347. font-size: 0.8125rem;
  348. font-weight: bold;
  349. letter-spacing: 0.0625em;
  350. line-height: 1.3847;
  351. padding: 0.5625rem 1.5em;
  352. text-transform: uppercase;
  353. }
  354. @media (min-width: 768px) {
  355. .wp-block-file .wp-block-file__button {
  356. font-size: 16px;
  357. }
  358. }
  359. /*--------------------------------------------------------------
  360. 4.0 Blocks - Formatting
  361. --------------------------------------------------------------*/
  362. /* Verse */
  363. .wp-block-verse pre {
  364. color: #73757D;
  365. font-style: italic;
  366. }
  367. /* Code */
  368. .wp-block-code {
  369. border: 1px solid #f3f3f3;
  370. border-radius: 0;
  371. padding: 1.5em;
  372. position: relative;
  373. }
  374. .wp-block-code .editor-plain-text {
  375. background: transparent;
  376. color: #73757D;
  377. font-family: Inconsolata, monospace;
  378. font-size: 16px;
  379. }
  380. @media (min-width: 768px) {
  381. .wp-block-code .editor-plain-text {
  382. font-size: 20px;
  383. }
  384. }
  385. /* Preformatted */
  386. .wp-block-preformatted {
  387. border: 1px solid #f3f3f3;
  388. border-radius: 0;
  389. padding: 1.5em;
  390. position: relative;
  391. }
  392. .wp-block-preformatted pre {
  393. background: transparent;
  394. color: #73757D;
  395. font-family: Inconsolata, monospace;
  396. font-size: 16px;
  397. }
  398. @media (min-width: 768px) {
  399. .wp-block-preformatted pre {
  400. font-size: 20px;
  401. }
  402. }
  403. /* Pullquote */
  404. .wp-block-pullquote {
  405. border: 0;
  406. padding-left: 0;
  407. padding-right: 0;
  408. }
  409. .wp-block-pullquote blockquote {
  410. color: #73757D;
  411. font-style: italic;
  412. }
  413. .wp-block-pullquote__citation {
  414. font-style: italic;
  415. text-transform: none;
  416. }
  417. .wp-block-pullquote.alignleft blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  418. .wp-block-pullquote.alignright blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  419. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  420. .wp-block-pullquote.alignright blockquote > .editor-rich-text p,
  421. .wp-block-pullquote__citation{
  422. font-size: 28px;
  423. }
  424. /* Table */
  425. .wp-block-table th,
  426. .wp-block-table td {
  427. border-color: #f3f3f3;
  428. text-align: center;
  429. }
  430. .wp-block-table__cell-content {
  431. padding: 0.1em 0.25em;
  432. }
  433. /*--------------------------------------------------------------
  434. 5.0 Blocks - Layout Elements
  435. --------------------------------------------------------------*/
  436. /* Buttons */
  437. .wp-block-button__link {
  438. background: #3e69dc;
  439. color: #fff;
  440. }
  441. .wp-block-button .wp-block-button__link {
  442. font-size: 13px;
  443. font-size: 0.8125rem;
  444. font-weight: bold;
  445. letter-spacing: 0.0625em;
  446. line-height: 22.15px;
  447. padding: 0.5625rem 1.5em;
  448. text-transform: uppercase;
  449. }
  450. .is-style-outline .wp-block-button__link {
  451. color: #3e69dc;
  452. }
  453. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  454. line-height: 22.15px;
  455. }
  456. @media (min-width: 768px) {
  457. .wp-block-button .wp-block-button__link {
  458. font-size: 16px;
  459. }
  460. }
  461. /* Separator */
  462. .wp-block-separator {
  463. border-color: #f3f3f3;
  464. border-width: 1px;
  465. }
  466. /*--------------------------------------------------------------
  467. 6.0 Blocks - Widgets
  468. --------------------------------------------------------------*/
  469. /* General Widget styles */
  470. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  471. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  472. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  473. list-style-position: inside;
  474. }
  475. /* Latest Comments */
  476. .wp-block-latest-comments {
  477. margin-left: 0;
  478. margin-right: 0;
  479. }
  480. .wp-block-latest-comments__comment-date {
  481. color: inherit;
  482. }
  483. .wp-block-latest-comments__comment-meta a {
  484. box-shadow: none;
  485. }
  486. .wp-block-latest-comments__comment,
  487. .wp-block-latest-comments__comment-date,
  488. .wp-block-latest-comments__comment-excerpt p {
  489. font-size: inherit;
  490. }
  491. .wp-block-latest-comments__comment-date {
  492. font-size: 80%;
  493. }