editor-blocks.css 16 KB

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