editor-style.css 16 KB

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