editor-blocks.css 16 KB

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