editor-blocks.css 14 KB

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