editor-style.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. /*
  2. Theme Name: Radcliffe 2
  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: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",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: 18px;
  27. line-height: 1.8;
  28. }
  29. @media (min-width: 600px) {
  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. .blocks-rich-text__tinymce.mce-content-body {
  37. line-height: inherit;
  38. }
  39. /* Color */
  40. .edit-post-visual-editor .editor-block-list__block {
  41. color: #222;
  42. }
  43. /* Post title */
  44. .editor-post-title__block .editor-post-title__input {
  45. font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",serif;
  46. font-size: 36px;
  47. line-height: 1.2;
  48. text-align: center;
  49. }
  50. @media all and (min-width: 600px) {
  51. .editor-post-title__block .editor-post-title__input {
  52. font-size: 50px;
  53. }
  54. }
  55. @media screen and (min-width: 768px) {
  56. .editor-post-title__block .editor-post-title__input {
  57. font-size: 60px;
  58. }
  59. }
  60. .edit-post-visual-editor .editor-post-title {
  61. max-width: 100%;
  62. }
  63. /* Headings */
  64. .edit-post-visual-editor h1,
  65. .wp-block-freeform.block-library-rich-text__tinymce h1,
  66. .edit-post-visual-editor h2,
  67. .wp-block-freeform.block-library-rich-text__tinymce h2,
  68. .edit-post-visual-editor h3,
  69. .wp-block-freeform.block-library-rich-text__tinymce h3,
  70. .edit-post-visual-editor h4,
  71. .wp-block-freeform.block-library-rich-text__tinymce h4,
  72. .edit-post-visual-editor h5,
  73. .wp-block-freeform.block-library-rich-text__tinymce h5,
  74. .edit-post-visual-editor h6,
  75. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  76. clear: both;
  77. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  78. font-weight: 700;
  79. line-height: 1.1;
  80. }
  81. .edit-post-visual-editor h1,
  82. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  83. font-size: 36px;
  84. line-height: 1.25;
  85. }
  86. .edit-post-visual-editor h2,
  87. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  88. font-size: 30px;
  89. line-height: 1.2;
  90. }
  91. .edit-post-visual-editor h3,
  92. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  93. font-size: 25px;
  94. line-height: 1.44;
  95. }
  96. .edit-post-visual-editor h4,
  97. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  98. font-size: 20px;
  99. line-height: 1.8em
  100. }
  101. .edit-post-visual-editor h5,
  102. .wp-block-freeform.block-library-rich-text__tinymce h5,
  103. .edit-post-visual-editor h6,
  104. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  105. font-size: 15px;
  106. line-height: 2.4em;
  107. text-transform: uppercase;
  108. }
  109. @media screen and (min-width: 768px) {
  110. .edit-post-visual-editor h1,
  111. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  112. font-size: 40px;
  113. }
  114. }
  115. /*--------------------------------------------------------------
  116. 2.0 General Block Settings
  117. --------------------------------------------------------------*/
  118. /* Main content width */
  119. @media screen and ( min-width: 788px ) {
  120. .wp-block {
  121. max-width: 770px; /* 740px + 30px for editor block margins */
  122. }
  123. }
  124. /* All elements */
  125. .edit-post-visual-editor *,
  126. .edit-post-visual-editor *:before,
  127. .edit-post-visual-editor *:after {
  128. /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
  129. box-sizing: inherit;
  130. }
  131. .mce-content-body *[class^="wp-block-"] {
  132. margin-bottom: 1.5em;
  133. }
  134. .mce-content-body *[class^="wp-block-"].alignleft,
  135. .mce-content-body *[class^="wp-block-"].alignright {
  136. max-width: 50%;
  137. }
  138. .mce-content-body .alignfull,
  139. .mce-content-body .alignwide,
  140. .mce-content-body .aligncenter {
  141. clear: both;
  142. }
  143. /* Link styles */
  144. .edit-post-visual-editor a,
  145. .editor-block-list__block a,
  146. .wp-block-freeform.block-library-rich-text__tinymce a {
  147. color: #ca2017;
  148. text-decoration: none;
  149. }
  150. /* Caption styles */
  151. [class^="wp-block-"] figcaption {
  152. font-size: 80%;
  153. }
  154. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  155. color: inherit;
  156. opacity: 0.8;
  157. }
  158. /* Address styles */
  159. .wp-block-freeform.block-library-rich-text__tinymce address {
  160. margin: 0 0 1.8em;
  161. }
  162. /* Preformatted styles */
  163. .wp-block-freeform.block-library-rich-text__tinymce pre {
  164. background: #eee;
  165. font-family: "Courier 10 Pitch", Courier, monospace;
  166. font-size: 16px;
  167. line-height: 1.6;
  168. margin-bottom: 1.6em;
  169. padding: 1.6em;
  170. }
  171. /* HR styles */
  172. .wp-block-freeform.block-library-rich-text__tinymce hr {
  173. background-color: #ccc;
  174. border: 0;
  175. height: 1px;
  176. margin-bottom: 1.6em;
  177. }
  178. /* List styles */
  179. .wp-block-freeform.block-library-rich-text__tinymce ul ul,
  180. .wp-block-freeform.block-library-rich-text__tinymce ol ul {
  181. list-style: disc;
  182. }
  183. /* Definition list styles */
  184. .wp-block-freeform.block-library-rich-text__tinymce dt {
  185. font-weight: bold;
  186. }
  187. .wp-block-freeform.block-library-rich-text__tinymce dd {
  188. margin: 0 1.5em 1.5em;
  189. }
  190. /* Figure styles */
  191. .wp-block-freeform.block-library-rich-text__tinymce figure {
  192. margin: 1em 0;
  193. }
  194. /* Table styles */
  195. .wp-block-freeform.block-library-rich-text__tinymce table {
  196. border-collapse: collapse;
  197. border-spacing: 0;
  198. border: 0;
  199. empty-cells: show;
  200. font-size: 0.9em;
  201. margin: 0 0 1.6em;
  202. width: 100%;
  203. }
  204. .wp-block-freeform.block-library-rich-text__tinymce thead {
  205. vertical-align: bottom;
  206. }
  207. .wp-block-freeform.block-library-rich-text__tinymce tbody {
  208. border-bottom: 1px solid #eee;
  209. border-top: 1px solid #eee;
  210. }
  211. .wp-block-freeform.block-library-rich-text__tinymce th {
  212. color: #444;
  213. font-weight: bold;
  214. text-align: left;
  215. }
  216. .wp-block-freeform.block-library-rich-text__tinymce th,
  217. .wp-block-freeform.block-library-rich-text__tinymce td {
  218. border: 0;
  219. border-bottom: 1px solid #eee;
  220. line-height: 120%;
  221. margin: 0;
  222. padding: 0.75em;
  223. }
  224. .wp-block-freeform.block-library-rich-text__tinymce tr:last-child td {
  225. border-bottom: none;
  226. }
  227. .wp-block-freeform.block-library-rich-text__tinymce table tbody > tr:nth-child(odd) > th,
  228. .wp-block-freeform.block-library-rich-text__tinymce table tbody > tr:nth-child(odd) > td {
  229. background: #f9f9f9;
  230. }
  231. .rtl .wp-block-freeform.block-library-rich-text__tinymce th {
  232. text-align: right;
  233. }
  234. /* Code, KBD, TT and Var styles */
  235. .wp-block-freeform.block-library-rich-text__tinymce code,
  236. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  237. .wp-block-freeform.block-library-rich-text__tinymce tt,
  238. .wp-block-freeform.block-library-rich-text__tinymce var {
  239. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  240. font-size: 16px;
  241. }
  242. /* DFN, Cite, Em, i styles */
  243. .wp-block-freeform.block-library-rich-text__tinymce dfn,
  244. .wp-block-freeform.block-library-rich-text__tinymce cite,
  245. .wp-block-freeform.block-library-rich-text__tinymce em,
  246. .wp-block-freeform.block-library-rich-text__tinymce i {
  247. font-style: italic;
  248. }
  249. /* Abbr, Acronym styles */
  250. .wp-block-freeform.block-library-rich-text__tinymce abbr,
  251. .wp-block-freeform.block-library-rich-text__tinymce acronym {
  252. border-bottom: 1px dotted #666;
  253. cursor: help;
  254. }
  255. /* Mark, Ins styles */
  256. .wp-block-freeform.block-library-rich-text__tinymce mark,
  257. .wp-block-freeform.block-library-rich-text__tinymce ins {
  258. background: #fff9c0;
  259. text-decoration: none;
  260. }
  261. /* Big styles */
  262. .wp-block-freeform.block-library-rich-text__tinymce big {
  263. font-size: 125%;
  264. }
  265. /* Blockquote */
  266. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  267. border: 0;
  268. font-style: italic;
  269. margin: 0 1.5em;
  270. padding: 0;
  271. text-align: center;
  272. }
  273. .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  274. color: #666;
  275. font-size: 22px;
  276. }
  277. .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
  278. color: #999;
  279. font-size: 22px;
  280. font-style: italic;
  281. }
  282. .wp-block-freeform.block-library-rich-text__tinymce blockquote::before,
  283. .wp-block-freeform.block-library-rich-text__tinymce blockquote::after {
  284. background: #ddd;
  285. content: "";
  286. display: block;
  287. height: 2px;
  288. margin: 20px auto;
  289. width: 80px;
  290. }
  291. @media (min-width: 600px) {
  292. .wp-block-freeform.block-library-rich-text__tinymce blockquote::before,
  293. .wp-block-freeform.block-library-rich-text__tinymce blockquote::after {
  294. margin: 36px auto;
  295. width: 108px;
  296. }
  297. }
  298. /*--------------------------------------------------------------
  299. 3.0 Blocks - Common Blocks
  300. --------------------------------------------------------------*/
  301. /* Paragraph */
  302. p.has-drop-cap:not(:focus)::first-letter {
  303. font-size: 5em;
  304. margin-top: 0.15em;
  305. }
  306. /* Image */
  307. .wp-block-image {
  308. display: inline-block; /* helps with smaller, unaligned images */
  309. }
  310. .wp-block-image div {
  311. max-height: 100% !important;
  312. max-width: 100% !important;
  313. }
  314. /* Quote */
  315. .wp-block-quote:not(.is-large):not(.is-style-large) {
  316. border: 0;
  317. padding: 0;
  318. }
  319. .wp-block-quote {
  320. font-style: italic;
  321. margin: 0 1.5em;
  322. text-align: center;
  323. }
  324. .edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
  325. color: #666;
  326. font-size: 22px;
  327. }
  328. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p,
  329. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p {
  330. font-size: 28px;
  331. }
  332. .wp-block-quote .wp-block-quote__citation,
  333. .wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
  334. color: #999;
  335. font-size: 22px;
  336. font-style: italic;
  337. }
  338. .wp-block-quote::before,
  339. .wp-block-quote::after {
  340. background: #ddd;
  341. content: "";
  342. display: block;
  343. height: 2px;
  344. margin: 20px auto;
  345. width: 80px;
  346. }
  347. @media (min-width: 600px) {
  348. .wp-block-quote::before,
  349. .wp-block-quote::after {
  350. margin: 36px auto;
  351. width: 108px;
  352. }
  353. }
  354. /* Audio */
  355. .wp-block-audio audio {
  356. display: block;
  357. min-width: 270px;
  358. width: 100%;
  359. }
  360. /* Cover */
  361. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  362. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  363. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  364. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  365. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  366. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  367. font-size: 2em;
  368. }
  369. .editor-block-list__block[data-align="wide"] .wp-block-cover-image,
  370. .editor-block-list__block[data-align="wide"] .wp-block-cover,
  371. .editor-block-list__block[data-align="full"] .wp-block-cover-image,
  372. .editor-block-list__block[data-align="full"] .wp-block-cover {
  373. height: 75vh;
  374. min-height: 400px;
  375. }
  376. /* File */
  377. .wp-block-file__textlink {
  378. color: #ca2017;
  379. }
  380. .wp-block-file .wp-block-file__button {
  381. background: #222;
  382. border-radius: 3px;
  383. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  384. font-size: 14px;
  385. line-height: 1.29;
  386. padding: 9px 18px;
  387. }
  388. /*--------------------------------------------------------------
  389. 4.0 Blocks - Formatting
  390. --------------------------------------------------------------*/
  391. /* Verse */
  392. .wp-block-verse {
  393. background-color: transparent;
  394. font-family: inherit;
  395. font-size: 22px;
  396. font-style: italic;
  397. }
  398. .wp-block-verse pre {
  399. padding: 0;
  400. }
  401. /* Code */
  402. .wp-block-code {
  403. background: #eee;
  404. border: 0;
  405. border-radius: 0;
  406. padding: 1.6em;
  407. word-wrap: nowrap;
  408. }
  409. .wp-block-code .editor-plain-text {
  410. background: transparent;
  411. font-family: "Courier 10 Pitch", Courier, monospace;
  412. font-size: 16px;
  413. }
  414. /* Preformatted */
  415. .wp-block-preformatted pre {
  416. background: #eee;
  417. font-family: "Courier 10 Pitch", Courier, monospace;
  418. font-size: 16px;
  419. line-height: 1.6;
  420. padding: 1.6em;
  421. }
  422. /* Pullquote */
  423. .wp-block-pullquote {
  424. border-bottom: 2px solid #ddd;
  425. border-top: 3px solid #ddd;
  426. font-style: italic;
  427. }
  428. .edit-post-visual-editor .wp-block-pullquote p {
  429. color: #666;
  430. margin-bottom: 1.8em;
  431. }
  432. .edit-post-visual-editor .wp-block-pullquote__citation {
  433. color: #666;
  434. font-size: 1.1em;
  435. font-style: italic;
  436. opacity: 0.8;
  437. text-transform: capitalize;
  438. }
  439. .editor-block-list__block[data-align="right"] .wp-block-pullquote,
  440. .editor-block-list__block[data-align="left"] .wp-block-pullquote {
  441. max-width: 300px;
  442. }
  443. /* Table */
  444. .wp-block-table {
  445. border-collapse: collapse;
  446. border-spacing: 0;
  447. border: 0;
  448. empty-cells: show;
  449. font-size: 0.9em;
  450. margin: 0 0 1.6em;
  451. width: 100%;
  452. }
  453. .wp-block-table thead {
  454. vertical-align: bottom;
  455. }
  456. .wp-block-table tbody {
  457. border: 0;
  458. border-bottom: 1px solid #eee;
  459. border-top: 1px solid #eee;
  460. }
  461. .wp-block-table th {
  462. color: #444;
  463. font-weight: bold;
  464. text-align: left;
  465. }
  466. .wp-block-table th,
  467. .wp-block-table td {
  468. border: 0;
  469. border-bottom: 1px solid #eee;
  470. line-height: 120%;
  471. margin: 0;
  472. padding: 0.75em;
  473. }
  474. .wp-block-table tr:last-child td {
  475. border-bottom: none;
  476. }
  477. .wp-block-table tbody > tr:nth-child(odd) > th,
  478. .wp-block-table tbody > tr:nth-child(odd) > td {
  479. background: #f9f9f9;
  480. }
  481. .wp-block-table__cell-content {
  482. padding: 0;
  483. }
  484. .rtl .wp-block-table th {
  485. text-align: right;
  486. }
  487. /*--------------------------------------------------------------
  488. 5.0 Blocks - Layout Elements
  489. --------------------------------------------------------------*/
  490. /* Buttons */
  491. .wp-block-button .wp-block-button__link {
  492. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  493. font-size: 14px;
  494. line-height: 1.25;
  495. padding: .6em 1em;
  496. text-align: center;
  497. }
  498. .wp-block-button__link {
  499. background-color: #222;
  500. }
  501. .wp-block-button .wp-block-button__link[data-align="wide"],
  502. .wp-block-button .wp-block-button__link[data-align="full"],
  503. .wp-block-button.alignwide,
  504. .wp-block-button.alignfull {
  505. display: block;
  506. }
  507. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  508. line-height: 1.25;
  509. }
  510. /* Separator */
  511. .wp-block-separator {
  512. background: #ccc;
  513. border: none;
  514. height: 1px;
  515. max-width: none;
  516. margin: 0 auto;
  517. }
  518. /*--------------------------------------------------------------
  519. 6.0 Blocks - Widgets
  520. --------------------------------------------------------------*/
  521. /* Categories, Latest Posts & Archives */
  522. .block-editor ul.wp-block-archives,
  523. .block-editor ul.wp-block-latest-comments,
  524. .block-editor ul.wp-block-latest-posts,
  525. .block-editor ul.wp-block-categories__list {
  526. list-style: none;
  527. padding: 0;
  528. }
  529. .wp-block-archives li,
  530. .wp-block-categories__list li {
  531. padding: 0.25em 0;
  532. }
  533. .wp-block-archives li:not(:last-child),
  534. .wp-block-categories__list li:not(:last-child) {
  535. border-bottom: 1px solid rgba(0,0,0,0.075);
  536. }
  537. .wp-block-categories__list ul ul {
  538. padding-left: 2em;
  539. }
  540. .wp-block-categories__list ul ul li:last-child {
  541. padding-bottom: 0;
  542. }
  543. /* Latest Posts */
  544. .wp-block-latest-posts__post-date {
  545. color: inherit;
  546. margin-bottom: 0;
  547. opacity: 0.8;
  548. }
  549. .wp-block-latest-posts,
  550. .wp-block-latest-posts li {
  551. list-style: none;
  552. }
  553. .wp-block-latest-posts li {
  554. padding: 0.25em 0;
  555. }
  556. .wp-block-latest-posts li:not(:last-child) {
  557. border-bottom: 1px solid rgba(0,0,0,0.2);
  558. }
  559. .wp-block-latest-posts.is-grid li {
  560. border: 0;
  561. }
  562. /* Latest Comments */
  563. .wp-block-latest-comments.not(.alignwide),
  564. .wp-block-latest-comments.not(.alignfull) {
  565. margin-left: 0;
  566. margin-right: 0;
  567. }
  568. .wp-block-latest-comments__comment,
  569. .wp-block-latest-comments__comment-date {
  570. font-size: inherit;
  571. }
  572. .wp-block-latest-comments__comment-meta {
  573. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  574. font-size: 80%;
  575. font-weight: bold;
  576. margin-bottom: 0;
  577. }
  578. .wp-block-latest-comments__comment-excerpt p {
  579. font-size: 90%;
  580. }
  581. .wp-block-latest-comments__comment-date {
  582. color: #707070;
  583. font-size: 80%;
  584. }