editor-blocks.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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. .block-library-list .editor-rich-text__tinymce {
  143. margin: 0;
  144. padding: 0;
  145. }
  146. .edit-post-visual-editor ul:not(.wp-block-gallery),
  147. .editor-block-list__block ul:not(.wp-block-gallery),
  148. .block-library-list ul {
  149. list-style: square;
  150. }
  151. .edit-post-visual-editor ol,
  152. .editor-block-list__block ol,
  153. .block-library-list ol.editor-rich-text__tinymce {
  154. list-style: decimal;
  155. }
  156. .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
  157. .editor-block-list__block ul:not(.wp-block-gallery) li > ul,
  158. .block-library-list li > ul,
  159. .edit-post-visual-editor li > ol,
  160. .editor-block-list__block li > ol,
  161. .block-library-list li > ol {
  162. margin-bottom: 0;
  163. margin-left: 1.5em;
  164. }
  165. .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
  166. .rtl .editor-block-list__block ul:not(.wp-block-gallery),
  167. .rtl .block-library-list ul,
  168. .rtl .edit-post-visual-editor ol,
  169. .rtl .editor-block-list__block ol,
  170. .rtl .block-library-list ol.editor-rich-text__tinymce {
  171. margin-left: 0;
  172. margin-right: 1.5em;
  173. padding: 0;
  174. }
  175. /* Captions */
  176. [class^="wp-block-"] figcaption {
  177. font-size: 14px;
  178. }
  179. /* Definition List styles */
  180. .wp-block-freeform.block-library-rich-text__tinymce dt {
  181. font-weight: bold;
  182. }
  183. /*--------------------------------------------------------------
  184. 3.0 Blocks - Common Blocks
  185. --------------------------------------------------------------*/
  186. /* Paragraph */
  187. .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
  188. font-size: 110px;
  189. line-height: 1.1;
  190. margin-top: 0.1em;
  191. }
  192. /* Image */
  193. .wp-block-image figcaption {
  194. text-align: center;
  195. }
  196. /* Quote */
  197. .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
  198. margin: 0 1.5em;
  199. border: 0;
  200. padding: 0;
  201. }
  202. .editor-block-list__block .wp-block-quote {
  203. font-style: normal;
  204. margin: 0 1.5em;
  205. }
  206. .editor-block-list__block .wp-block-quote__citation {
  207. font-style: italic;
  208. font-size: inherit;
  209. color: inherit;
  210. }
  211. .editor-block-list__block .wp-block-quote em,
  212. .editor-block-list__block .wp-block-quote i {
  213. font-style: normal;
  214. }
  215. .editor-block-list__block .wp-block-quote > :last-child {
  216. margin-bottom: 0;
  217. }
  218. .editor-block-list__block .wp-block-quote.alignleft {
  219. margin: .75em 1.5em .75em 0;
  220. }
  221. .editor-block-list__block .wp-block-quote.alignright {
  222. margin: .75em 0 .75em 1.5em;
  223. }
  224. .editor-block-list__block .wp-block-quote.aligncenter {
  225. margin-bottom: .75em;
  226. }
  227. .wp-block-quote.is-large,
  228. .wp-block-quote.is-style-large {
  229. font-style: normal;
  230. margin: 0 .75em;
  231. padding: 0;
  232. }
  233. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
  234. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
  235. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
  236. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
  237. font-size: 24px;
  238. }
  239. .editor-block-list__block .wp-block-quote.is-large p,
  240. .editor-block-list__block .wp-block-quote.is-style-large p {
  241. margin-bottom: .75em;
  242. font-style: normal;
  243. }
  244. .editor-block-list__block .wp-block-quote.is-large .wp-block-quote__citation,
  245. .editor-block-list__block .wp-block-quote.is-style-large .wp-block-quote__citation {
  246. font-size: 80%;
  247. }
  248. /* Cover */
  249. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  250. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  251. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  252. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  253. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  254. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  255. font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
  256. }
  257. /* File */
  258. .wp-block-file__textlink {
  259. color: #d7b221;
  260. }
  261. .wp-block-file .wp-block-file__button {
  262. border: 0;
  263. border-radius: 0;
  264. background: #d7b221;
  265. box-shadow: none;
  266. color: white;
  267. font-size: 16px;
  268. font-weight: bold;
  269. text-transform: uppercase;
  270. letter-spacing: 1px;
  271. line-height: 1;
  272. padding: 1.4em 1.6em 1.2em;
  273. transition: 0.3s;
  274. }
  275. /*--------------------------------------------------------------
  276. 4.0 Blocks - Formatting
  277. --------------------------------------------------------------*/
  278. /* Verse */
  279. .wp-block-verse pre {
  280. background: transparent;
  281. color: inherit;
  282. font-family: inherit;
  283. font-size: inherit;
  284. font-style: italic;
  285. line-height: inherit;
  286. padding: 0;
  287. }
  288. /* Code */
  289. .wp-block-code {
  290. background: #eee;
  291. border: 0;
  292. border-radius: 0;
  293. font-family: "Courier 10 Pitch", Courier, monospace;
  294. font-size: 15px;
  295. line-height: 1.6;
  296. margin-bottom: 1.875em;
  297. max-width: 100%;
  298. overflow: auto;
  299. padding: 1.875em;
  300. }
  301. .wp-block-code textarea {
  302. background: #eee;
  303. }
  304. /* Classic */
  305. .wp-block-freeform.block-library-rich-text__tinymce address {
  306. margin-bottom: 1.5em;
  307. }
  308. .wp-block-freeform.block-library-rich-text__tinymce ol {
  309. list-style: decimal;
  310. margin-left: 3em;
  311. padding: 0;
  312. }
  313. .wp-block-freeform.block-library-rich-text__tinymce li > ol {
  314. margin-left: 1.5em;
  315. }
  316. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  317. border: 0;
  318. font-style: normal;
  319. margin: 0 1.5em 1.5em;
  320. }
  321. .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  322. }
  323. .wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
  324. margin-bottom: 0;
  325. }
  326. .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
  327. }
  328. .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
  329. font-style: italic;
  330. text-transform: none;
  331. }
  332. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  333. margin-right: 0;
  334. padding-left: 0;
  335. padding-right: 1.5em;
  336. }
  337. .rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
  338. float: left;
  339. }
  340. .rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
  341. float: right;
  342. }
  343. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
  344. margin: .75em 1.5em .75em 0;
  345. }
  346. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  347. margin: .75em 0 .75em 1.5em;
  348. }
  349. .wp-block-freeform.block-library-rich-text__tinymce h1,
  350. .wp-block-freeform.block-library-rich-text__tinymce h2,
  351. .wp-block-freeform.block-library-rich-text__tinymce h3,
  352. .wp-block-freeform.block-library-rich-text__tinymce h4,
  353. .wp-block-freeform.block-library-rich-text__tinymce h5,
  354. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  355. font-family: "Archivo Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  356. font-weight: bold;
  357. clear: both;
  358. margin: .8em 0;
  359. }
  360. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  361. font-size: 36px;
  362. line-height: 1.2;
  363. margin: .4em 0;
  364. }
  365. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  366. font-size: 32px;
  367. line-height: 1.2;
  368. margin: .4em 0;
  369. }
  370. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  371. font-size: 24px;
  372. margin: .4em 0;
  373. }
  374. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  375. color: #a5a29d;
  376. font-size: 20px;
  377. text-transform: uppercase;
  378. letter-spacing: 1px;
  379. }
  380. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  381. color: #a5a29d;
  382. font-size: 16px;
  383. text-transform: uppercase;
  384. letter-spacing: 1px;
  385. }
  386. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  387. color: #a5a29d;
  388. font-size: 14px;
  389. letter-spacing: 1px;
  390. text-transform: uppercase;
  391. }
  392. .wp-block-freeform.block-library-rich-text__tinymce pre {
  393. background: #eee;
  394. font-family: "Courier 10 Pitch", Courier, monospace;
  395. font-size: 15px;
  396. line-height: 1.6;
  397. margin-bottom: 1.875em;
  398. max-width: 100%;
  399. overflow: auto;
  400. padding: 1.875em;
  401. }
  402. .wp-block-freeform.block-library-rich-text__tinymce table {
  403. width: 100%;
  404. margin: 0 0 1.5em;
  405. }
  406. .wp-block-freeform.block-library-rich-text__tinymce .alternate {
  407. background: transparent;
  408. }
  409. /* Preformatted */
  410. .editor-block-list__block .wp-block-preformatted pre {
  411. background: #eee;
  412. font-family: "Courier 10 Pitch", Courier, monospace;
  413. font-size: 15px;
  414. line-height: 1.6;
  415. margin-bottom: 1.875em;
  416. max-width: 100%;
  417. overflow: auto;
  418. padding: 1.875em;
  419. }
  420. /* Pullquote */
  421. .editor-block-list__block .wp-block-pullquote blockquote {
  422. margin: 0;
  423. padding: 0;
  424. border: 0;
  425. }
  426. .edit-post-visual-editor .wp-block-pullquote p {
  427. font-size: 24px;
  428. }
  429. .wp-block-pullquote {
  430. margin: 0;
  431. padding: 0;
  432. }
  433. .wp-block-pullquote:not(.has-border-color) {
  434. border: 0;
  435. }
  436. .wp-block-pullquote blockquote {
  437. font-style: italic;
  438. font-size: 24px;
  439. margin: 0 0 1.5em;
  440. padding: .8em 0;
  441. }
  442. .wp-block-pullquote:not(.has-border-color) blockquote {
  443. border-top: 2px solid #d7b221;
  444. border-bottom: 2px solid #d7b221;
  445. }
  446. .wp-block-pullquote.has-border-color[style] {
  447. border-bottom-width: 2px;
  448. border-left: unset !important;
  449. border-right: unset !important;
  450. border-top-width: 2px;
  451. padding: 0;
  452. margin-bottom: 1.5em;
  453. }
  454. .wp-block-pullquote.has-border-color blockquote {
  455. margin-bottom: 0;
  456. }
  457. .wp-block-pullquote blockquote {
  458. font-size: 24px;
  459. }
  460. .wp-block-pullquote.alignfull blockquote {
  461. padding-left: 1.5em;
  462. padding-right: 1.5em;
  463. }
  464. .wp-block-pullquote.alignleft {
  465. margin-right: 1.5em;
  466. }
  467. .wp-block-pullquote.alignright {
  468. margin-left: 1.5em;
  469. }
  470. .wp-block-pullquote blockquote > .editor-rich-text p {
  471. font-size: 24px;
  472. margin-bottom: .75em;
  473. }
  474. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  475. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  476. font-size: 24px;
  477. }
  478. .wp-block-pullquote__citation,
  479. .wp-block-pullquote cite,
  480. .wp-block-pullquote footer {
  481. font-style: normal;
  482. font-size: 18px;
  483. text-transform: none;
  484. }
  485. /* Table */
  486. .wp-block-table__cell-content {
  487. padding: 0;
  488. }
  489. table.wp-block-table {
  490. width: 100%;
  491. margin: 0 0 1.5em;
  492. }
  493. table.wp-block-table td {
  494. border: 0;
  495. }
  496. table.wp-block-table th {
  497. border: 0;
  498. text-align: left;
  499. }
  500. .rtl table.wp-block-table th {
  501. text-align: right;
  502. }
  503. /*--------------------------------------------------------------
  504. 5.0 Blocks - Layout Elements
  505. --------------------------------------------------------------*/
  506. /* Buttons */
  507. .wp-block-button .wp-block-button__link {
  508. font-size: 16px;
  509. font-weight: bold;
  510. text-transform: uppercase;
  511. letter-spacing: 1px;
  512. line-height: 1;
  513. padding: 1.4em 1.6em 1.2em;
  514. transition: 0.3s;
  515. }
  516. .wp-block-button__link {
  517. background: #d7b221;
  518. color: #fff;
  519. }
  520. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  521. color: #d7b221;
  522. }
  523. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  524. line-height: 16px;
  525. }
  526. /* Separator */
  527. .wp-block-separator {
  528. background-color: #eeece8;
  529. border: 0;
  530. height: 1px;
  531. margin-bottom: 1.5em;
  532. }
  533. .wp-block-separator.is-style-wide {
  534. max-width: 100%;
  535. }
  536. /* Group */
  537. .wp-block-group.has-background {
  538. padding: 20px 30px;
  539. }
  540. .wp-block-group p.has-background {
  541. padding: 0;
  542. }
  543. /*--------------------------------------------------------------
  544. 6.0 Blocks - Widgets
  545. --------------------------------------------------------------*/
  546. /* General Widget styles */
  547. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  548. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  549. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  550. list-style-position: inside;
  551. }
  552. /* Categories */
  553. .editor-block-list__block[data-align=right] .wp-block-categories__list,
  554. .editor-block-list__block[data-align=left] .wp-block-categories__list {
  555. padding: 0;
  556. }
  557. /* Latest Comments */
  558. .wp-block-latest-comments {
  559. margin-left: 0;
  560. margin-right: 0;
  561. }
  562. .wp-block-latest-comments__comment-meta a {
  563. color: #192930;
  564. text-decoration: none;
  565. }
  566. .wp-block-latest-comments__comment-meta,
  567. .wp-block-latest-comments__comment-excerpt p {
  568. font-size: 16px;
  569. }
  570. .wp-block-latest-comments__comment-date {
  571. color: #a5a29d;
  572. font-family: "Archivo Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  573. font-size: 14px;
  574. letter-spacing: 1px;
  575. text-transform: uppercase;
  576. }
  577. .wp-block-latest-comments .wp-block-latest-comments__comment {
  578. border-top: 1px solid #eeece8;
  579. margin-bottom: 0;
  580. padding: .8em 0;
  581. }
  582. .wp-block-latest-comments__comment-excerpt p:last-child {
  583. margin-bottom: 0;
  584. }
  585. /* Latest Posts */
  586. .edit-post-visual-editor .wp-block-latest-posts.is-grid {
  587. list-style: none;
  588. margin-left: 0;
  589. margin-right: 0;
  590. }
  591. .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
  592. margin-bottom: 1em;
  593. }