editor-blocks.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /*
  2. Theme Name: Textbook
  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: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, 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: 14.4px;
  27. font-weight: 300;
  28. line-height: 1.65;
  29. }
  30. @media screen and (min-width: 50em) {
  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: 16px;
  35. }
  36. }
  37. /* Color */
  38. .edit-post-visual-editor .editor-block-list__block {
  39. color: #434343;
  40. }
  41. /* Post title */
  42. .editor-post-title__block .editor-post-title__input {
  43. color: #222;
  44. font-family: "Playfair Display SC", "Times New Roman", Times, serif;
  45. font-size: 20px;
  46. letter-spacing: 0.15em;
  47. line-height: 1.25;
  48. }
  49. @media (min-width: 50em) {
  50. .editor-post-title__block .editor-post-title__input {
  51. font-size: 30px;
  52. }
  53. }
  54. /* Headings */
  55. .edit-post-visual-editor h1,
  56. .wp-block-freeform.block-library-rich-text__tinymce h1,
  57. .edit-post-visual-editor h2,
  58. .wp-block-freeform.block-library-rich-text__tinymce h2,
  59. .edit-post-visual-editor h3,
  60. .wp-block-freeform.block-library-rich-text__tinymce h3,
  61. .edit-post-visual-editor h4,
  62. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  63. font-family: "Playfair Display SC", "Times New Roman", Times, serif;
  64. letter-spacing: 0.15em;
  65. line-height: 1.25em;
  66. }
  67. .edit-post-visual-editor h5,
  68. .wp-block-freeform.block-library-rich-text__tinymce h5,
  69. .edit-post-visual-editor h6,
  70. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  71. font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  72. text-transform: uppercase;
  73. }
  74. .edit-post-visual-editor h1,
  75. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  76. font-size: 32px;
  77. }
  78. .edit-post-visual-editor h2,
  79. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  80. font-size: 26.72px;
  81. }
  82. .edit-post-visual-editor h3,
  83. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  84. font-size: 22.8px;
  85. }
  86. .edit-post-visual-editor h4,
  87. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  88. font-size: 20px;
  89. }
  90. .edit-post-visual-editor h5,
  91. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  92. font-size: 18px;
  93. }
  94. .edit-post-visual-editor h6,
  95. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  96. font-size: 16px;
  97. }
  98. /*--------------------------------------------------------------
  99. 2.0 General Block Settings
  100. --------------------------------------------------------------*/
  101. /* Main content width */
  102. .wp-block {
  103. max-width: 663px; /* 633px + 30px to account for padding */
  104. }
  105. /* Link styles */
  106. .edit-post-visual-editor a,
  107. .editor-block-list__block a,
  108. .wp-block-freeform.block-library-rich-text__tinymce a {
  109. color: #ce4639;
  110. text-decoration: none;
  111. }
  112. /* Table styles */
  113. .wp-block-freeform.block-library-rich-text__tinymce table {
  114. border-collapse: collapse;
  115. }
  116. .wp-block-freeform.block-library-rich-text__tinymce table th {
  117. padding-bottom: 0;
  118. padding-top: 0;
  119. }
  120. .wp-block-freeform.block-library-rich-text__tinymce table th,
  121. .wp-block-freeform.block-library-rich-text__tinymce table td {
  122. border: 1px solid #ce4639;
  123. padding: .5em;
  124. text-align: left;
  125. }
  126. .wp-block-freeform.block-library-rich-text__tinymce table tbody {
  127. background: #fff;
  128. border: 1px solid #ce4639;
  129. -webkit-border-bottom-left-radius: 0.5em;
  130. -moz-border-bottom-left-radius: 0.5em;
  131. border-bottom-left-radius: 0.5em;
  132. -webkit-border-bottom-right-radius: 0.5em;
  133. -moz-border-bottom-right-radius: 0.5em;
  134. border-bottom-right-radius: 0.5em;
  135. }
  136. .wp-block-freeform.block-library-rich-text__tinymce table tbody tr:nth-child(odd) {
  137. background: #fff;
  138. }
  139. .wp-block-freeform.block-library-rich-text__tinymce table tbody tr:nth-child(even) {
  140. background: #f0eeec;
  141. }
  142. .wp-block-freeform.block-library-rich-text__tinymce table thead tr {
  143. background: #222;
  144. color: #fff;
  145. font-size: 12.8px;
  146. font-weight: 700;
  147. letter-spacing: .075em;
  148. line-height: 1.2375em;
  149. text-transform: uppercase;
  150. }
  151. .rtl .wp-block-freeform.block-library-rich-text__tinymce table th,
  152. .rtl .wp-block-freeform.block-library-rich-text__tinymce table td {
  153. text-align: right;
  154. }
  155. /* Quote styles */
  156. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  157. border: 0;
  158. color: #222;
  159. font-family: "Playfair Display", "Times New Roman", Times, serif;
  160. line-height: 1.5;
  161. font-style: italic;
  162. padding: 0;
  163. margin-left: 30px;
  164. }
  165. .wp-block-freeform.block-library-rich-text__tinymce cite {
  166. color: #222;
  167. }
  168. .edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  169. font-size: 17.6px;
  170. }
  171. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  172. margin-left: 0;
  173. margin-right: 30px;
  174. }
  175. @media (min-width: 50em) {
  176. .edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  177. font-size: 20px;
  178. }
  179. }
  180. /* List styles */
  181. .wp-block-freeform.block-library-rich-text__tinymce li,
  182. .editor-styles-wrapper li {
  183. margin-bottom: 0;
  184. }
  185. /* Caption styles */
  186. [class^="wp-block-"] figcaption {
  187. font-size: 14px;
  188. line-height: 1.65em;
  189. font-weight: 400;
  190. }
  191. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  192. }
  193. /* Definition List styles */
  194. .wp-block-freeform.block-library-rich-text__tinymce dt {
  195. font-weight: bold;
  196. }
  197. /* Pre styles */
  198. .wp-block-freeform.block-library-rich-text__tinymce pre {
  199. background: #eee;
  200. font-family: "Courier 10 Pitch", Courier, monospace;
  201. font-size: 15px;
  202. line-height: 1.8;
  203. padding: 1.6em;
  204. }
  205. /* Code, etc styles */
  206. .wp-block-freeform.block-library-rich-text__tinymce code,
  207. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  208. .wp-block-freeform.block-library-rich-text__tinymce tt,
  209. .wp-block-freeform.block-library-rich-text__tinymce var {
  210. background: transparent;
  211. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  212. font-size: 15px;
  213. }
  214. /* Mark & Ins styles */
  215. .wp-block-freeform.block-library-rich-text__tinymce mark,
  216. .wp-block-freeform.block-library-rich-text__tinymce ins {
  217. background: #fff9c0;
  218. text-decoration: none;
  219. }
  220. /*--------------------------------------------------------------
  221. 3.0 Blocks - Common Blocks
  222. --------------------------------------------------------------*/
  223. /* Paragraph */
  224. p.has-drop-cap:not(:focus)::first-letter {
  225. font-size: 5em;
  226. margin-top: 0.125em;
  227. }
  228. /* Gallery */
  229. .wp-block-gallery {
  230. margin: 0 0 ;
  231. }
  232. /* Quote */
  233. .wp-block-quote:not(.is-large):not(.is-style-large),
  234. .wp-block-quote.is-large,
  235. .wp-block-quote.is-style-large {
  236. border: 0;
  237. color: #222;
  238. font-family: "Playfair Display", "Times New Roman", Times, serif;
  239. line-height: 1.5;
  240. font-style: italic;
  241. padding: 0;
  242. margin-left: 30px;
  243. }
  244. .wp-block-quote .wp-block-quote__citation {
  245. color: #222;
  246. }
  247. .wp-block-quote:not(.is-large):not(.is-style-large) p,
  248. .wp-block-quote .wp-block-quote__citation {
  249. font-size: 17.6px;
  250. }
  251. .wp-block-quote.is-large p,
  252. .wp-block-quote.is-style-large p {
  253. font-size: 22px;
  254. }
  255. .wp-block-quote.is-large .wp-block-quote__citation,
  256. .wp-block-quote.is-style-large .wp-block-quote__citation {
  257. font-size: 18px;
  258. }
  259. .rtl .wp-block-quote:not(.is-large):not(.is-style-large),
  260. .rtl .wp-block-quote.is-large,
  261. .rtl .wp-block-quote.is-style-large {
  262. margin-left: 0;
  263. margin-right: 30px;
  264. }
  265. @media (min-width: 50em) {
  266. .wp-block-quote:not(.is-large):not(.is-style-large) p,
  267. .wp-block-quote .wp-block-quote__citation {
  268. font-size: 20px;
  269. }
  270. .wp-block-quote.is-large p,
  271. .wp-block-quote.is-style-large p {
  272. font-size: 26px;
  273. }
  274. .wp-block-quote.is-large .wp-block-quote__citation,
  275. .wp-block-quote.is-style-large .wp-block-quote__citation {
  276. font-size: 20px;
  277. }
  278. }
  279. /* Cover */
  280. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  281. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  282. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  283. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  284. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  285. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  286. font-size: 1.5em;
  287. }
  288. /* File */
  289. .wp-block-file__textlink {
  290. color: #ce4639;
  291. }
  292. .wp-block-file .wp-block-file__button {
  293. background: #fff;
  294. -webkit-border-radius: 0.333em;
  295. -moz-border-radius: 0.333em;
  296. border-radius: 0.333em;
  297. border: 1px solid #ce4639;
  298. color: #ce4639;
  299. font-size: 16px;
  300. font-size: 1rem;
  301. font-weight: 600;
  302. line-height: 1;
  303. outline: none;
  304. padding: 0.825em 13.5px;
  305. -webkit-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  306. -moz-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  307. -o-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  308. transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  309. }
  310. /*--------------------------------------------------------------
  311. 4.0 Blocks - Formatting
  312. --------------------------------------------------------------*/
  313. /* Verse */
  314. .wp-block-verse pre {
  315. font-family: "Playfair Display", "Times New Roman", Times, serif;
  316. font-size: inherit;
  317. font-style: italic;
  318. padding: 0;
  319. }
  320. /* Code */
  321. .wp-block-code {
  322. border: 0;
  323. border-radius: 0;
  324. background: #eee;
  325. padding: 1.6em;
  326. }
  327. .wp-block-code .editor-plain-text {
  328. background: transparent;
  329. font-family: "Courier 10 Pitch", Courier, monospace;
  330. font-size: 15px;
  331. line-height: 1.8;
  332. }
  333. /* Preformatted */
  334. .wp-block-preformatted {
  335. background: #eee;
  336. font-family: "Courier 10 Pitch", Courier, monospace;
  337. font-size: 15px;
  338. line-height: 1.8;
  339. padding: 1.6em;
  340. }
  341. /* Pullquote */
  342. .wp-block-pullquote {
  343. border: 0;
  344. color: #222;
  345. }
  346. .wp-block-pullquote blockquote {
  347. font-family: "Playfair Display", "Times New Roman", Times, serif;
  348. font-size: 28px;
  349. font-style: italic;
  350. line-height: 1.6;
  351. }
  352. .wp-block-pullquote__citation {
  353. font-family: "Playfair Display", "Times New Roman", Times, serif;
  354. font-size: 20px;
  355. font-style: italic;
  356. text-transform: none;
  357. }
  358. /* Table */
  359. .wp-block-table {
  360. border-collapse: collapse;
  361. }
  362. .editor-styles-wrapper .wp-block-table th {
  363. padding-bottom: 0.25em;
  364. padding-top: 0.25em;
  365. }
  366. .wp-block-table th,
  367. .wp-block-table td {
  368. border: 1px solid #ce4639;
  369. padding: .5em;
  370. text-align: left;
  371. }
  372. .wp-block-table tbody {
  373. background: #fff;
  374. border: 1px solid #ce4639;
  375. -webkit-border-bottom-left-radius: 0.5em;
  376. -moz-border-bottom-left-radius: 0.5em;
  377. border-bottom-left-radius: 0.5em;
  378. -webkit-border-bottom-right-radius: 0.5em;
  379. -moz-border-bottom-right-radius: 0.5em;
  380. border-bottom-right-radius: 0.5em;
  381. }
  382. .wp-block-table tbody tr:nth-child(odd) {
  383. background: #fff;
  384. }
  385. .wp-block-table tbody tr:nth-child(even) {
  386. background: #f0eeec;
  387. }
  388. .wp-block-table thead tr {
  389. background: #222;
  390. color: #fff;
  391. font-size: 12.8px;
  392. font-weight: 700;
  393. letter-spacing: .075em;
  394. line-height: 1.2375em;
  395. text-transform: uppercase;
  396. }
  397. .wp-block-table__cell-content {
  398. padding: 0;
  399. }
  400. .rtl .wp-block-table th,
  401. .rtl .wp-block-table td {
  402. text-align: right;
  403. }
  404. /*--------------------------------------------------------------
  405. 5.0 Blocks - Layout Elements
  406. --------------------------------------------------------------*/
  407. /* Buttons */
  408. .wp-block-button .wp-block-button__link {
  409. font-size: 16px;
  410. font-size: 1rem;
  411. font-weight: 600;
  412. line-height: 1;
  413. outline: none;
  414. padding: 0.825em 20px;
  415. }
  416. .wp-block-button__link {
  417. background: #ce4639;
  418. color: #fff;
  419. }
  420. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  421. color: #ce4639;
  422. }
  423. /* Separator */
  424. .wp-block-separator {
  425. border-color: #ccc;
  426. border-width: 1px;
  427. }
  428. /*--------------------------------------------------------------
  429. 6.0 Blocks - Widgets
  430. --------------------------------------------------------------*/
  431. /* General Widget styles */
  432. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  433. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  434. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  435. list-style-position: inside;
  436. }
  437. /* Latest Comments */
  438. .wp-block-latest-comments {
  439. margin-left: 0;
  440. margin-right: 0;
  441. }
  442. .wp-block-latest-comments__comment-date {
  443. }
  444. .wp-block-latest-comments__comment {
  445. font-size: 80%;
  446. }
  447. .wp-block-latest-comments__comment-excerpt p {
  448. font-size: inherit;
  449. }