editor-blocks.css 15 KB

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