editor-blocks.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. /*
  2. Theme Name: Dyad 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 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 Neue", Helvetica, Arial, sans-serif;
  22. font-size: 17px;
  23. }
  24. .edit-post-visual-editor .editor-block-list__block {
  25. color: #6a6c6e;
  26. }
  27. .editor-post-title__block .editor-post-title__input {
  28. color: #1a1c1e;
  29. font-family: "Noto Serif", Georgia, serif;
  30. font-size: 40px;
  31. }
  32. .edit-post-visual-editor .editor-block-list__block h1,
  33. .edit-post-visual-editor .editor-block-list__block h2,
  34. .edit-post-visual-editor .editor-block-list__block h3,
  35. .edit-post-visual-editor .editor-block-list__block h4 {
  36. clear: both;
  37. color: #1a1c1e;
  38. font-family: "Noto Serif", Georgia, serif;
  39. }
  40. .edit-post-visual-editor .editor-block-list__block h5,
  41. .edit-post-visual-editor .editor-block-list__block h6 {
  42. clear: both;
  43. color: #1a1c1e;
  44. font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  45. letter-spacing: 0.1em;
  46. text-transform: uppercase;
  47. }
  48. .wp-block-heading h1,
  49. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  50. font-size: 36px;
  51. }
  52. .wp-block-heading h2,
  53. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  54. font-size: 26px;
  55. }
  56. .wp-block-heading h3,
  57. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  58. font-size: 22px;
  59. }
  60. .wp-block-heading h4,
  61. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  62. font-size: 20px;
  63. }
  64. .wp-block-heading h5,
  65. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  66. font-size: 17px;
  67. }
  68. .wp-block-heading h6,
  69. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  70. font-size: 15px;
  71. }
  72. /*--------------------------------------------------------------
  73. 2.0 General Block Styles
  74. --------------------------------------------------------------*/
  75. /* Main content width */
  76. .wp-block {
  77. max-width: 730px; /* 700px + 30px to account for padding */
  78. }
  79. .wp-block.alignwide,
  80. .wp-block.alignfull {
  81. max-width: inherit;
  82. }
  83. [class^="wp-block-"] .wp-block {
  84. max-width: 100%;
  85. }
  86. /* Alignments */
  87. .alignleft {
  88. margin-right: 1.5em;
  89. }
  90. .alignright {
  91. margin-left: 1.5em;
  92. }
  93. /* Link styles */
  94. .edit-post-visual-editor a,
  95. .editor-block-list__block a,
  96. .wp-block-freeform.block-library-rich-text__tinymce a {
  97. color: #6a6c6e;
  98. }
  99. /* Paragraph styles */
  100. .edit-post-visual-editor .editor-block-list__block p {
  101. margin-top: 0;
  102. }
  103. /* Quote styles */
  104. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  105. border-left: 3px solid #ddd;
  106. margin-left: 1.5em;
  107. padding-left: 1.5em;
  108. }
  109. .wp-block-freeform.block-library-rich-text__tinymce blockquote,
  110. .wp-block-freeform.block-library-rich-text__tinymce blockquote > p {
  111. color: #393d41;
  112. font-family: "Noto Serif", Georgia, serif;
  113. font-size: 1.05em;
  114. font-style: italic;
  115. }
  116. .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
  117. color: #444;
  118. font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  119. font-size: 0.9em;
  120. }
  121. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  122. border-left: 0;
  123. border-right: 3px solid #ddd;
  124. margin-left: 0;
  125. margin-right: 1.5em;
  126. padding-left: 0;
  127. padding-right: 1.5em;
  128. }
  129. /* Table styles */
  130. .wp-block-freeform.block-library-rich-text__tinymce table {
  131. border: 1px solid #ddd;
  132. border-collapse: collapse;
  133. border-spacing: 0;
  134. line-height: 1.38;
  135. margin: 0 0 1.62em;
  136. width: 100%;
  137. }
  138. .wp-block-freeform.block-library-rich-text__tinymce td,
  139. .wp-block-freeform.block-library-rich-text__tinymce th {
  140. border-bottom: 1px solid #ddd;
  141. border-left: 1px solid #ddd;
  142. padding: 10px 20px;
  143. }
  144. .wp-block-freeform.block-library-rich-text__tinymce th {
  145. font-size: 85%;
  146. letter-spacing: 0.1em;
  147. text-transform: uppercase;
  148. }
  149. .wp-block-freeform.block-library-rich-text__tinymce th,
  150. .wp-block-freeform.block-library-rich-text__tinymce tfoot td {
  151. font-weight: 700;
  152. }
  153. .wp-block-freeform.block-library-rich-text__tinymce th:first-child,
  154. .wp-block-freeform.block-library-rich-text__tinymce td:first-child {
  155. border-left: 0;
  156. }
  157. .wp-block-freeform.block-library-rich-text__tinymce thead tr {
  158. background: #eee;
  159. }
  160. /* Preformatted styles */
  161. .wp-block-freeform.block-library-rich-text__tinymce pre {
  162. background: #eee;
  163. font-family: "Courier 10 Pitch", Courier, monospace;
  164. padding: 1.6em;
  165. margin-bottom: 1.6em;
  166. max-width: 100%;
  167. overflow: auto;
  168. position: relative;
  169. }
  170. .wp-block-freeform.block-library-rich-text__tinymce pre:before {
  171. background-color: #e7ae01;
  172. color: #ffffff;
  173. content: "\f462";
  174. font-family: "Genericons";
  175. font-size: 18px;
  176. height: 100%;
  177. line-height: 1.62;
  178. padding: 0 .19em;
  179. position: absolute;
  180. right: 0;
  181. top: 0;
  182. z-index: 2;
  183. }
  184. .rtl .wp-block-freeform.block-library-rich-text__tinymce pre:before {
  185. left: 0;
  186. right: auto;
  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. p.has-drop-cap:not(:focus)::first-letter {
  197. font-size: 5em;
  198. margin-top: 0.1em;
  199. }
  200. /* Quote */
  201. .wp-block-quote {
  202. margin-bottom: 1.5em;
  203. }
  204. .wp-block-quote:not(.is-large):not(.is-style-large),
  205. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"],
  206. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"] {
  207. border-left: 3px solid #ddd;
  208. border-right: 0;
  209. margin-left: 1.5em;
  210. margin-right: 0;
  211. padding-left: 1.5em;
  212. padding-right: 0;
  213. }
  214. .rtl .wp-block-quote:not(.is-large):not(.is-style-large),
  215. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"],
  216. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"] {
  217. border-left: 0;
  218. border-right: 3px solid #ddd;
  219. margin-left: 0;
  220. margin-right: 1.5em;
  221. padding-left: 0;
  222. padding-right: 1.5em;
  223. }
  224. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"],
  225. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"],
  226. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"],
  227. .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"] {
  228. border-left: 0;
  229. border-right: 0;
  230. padding-left: 0;
  231. padding-right: 0;
  232. margin-left: 0;
  233. margin-right: 0;
  234. }
  235. .edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
  236. color: #393d41;
  237. font-family: "Noto Serif", Georgia, serif;
  238. font-size: 1.05em;
  239. font-style: italic;
  240. }
  241. .wp-block-quote p:not(:last-child) {
  242. margin-bottom: 0;
  243. padding-bottom: 0;
  244. }
  245. .wp-block-quote.is-large,
  246. .wp-block-quote.is-style-large {
  247. border: 0;
  248. padding-left: 1.5em;
  249. padding-right: 1.5em;
  250. }
  251. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
  252. .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
  253. font-size: 24px;
  254. }
  255. .wp-block-quote.is-large .wp-block-quote__citation,
  256. .wp-block-quote.is-style-large .wp-block-quote__citation {
  257. font-size: 14.2833px;
  258. text-align: inherit;
  259. }
  260. .rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
  261. border-left: 0;
  262. border-right: 3px solid #ddd;
  263. margin-left: 0;
  264. margin-right: 1.5em;
  265. padding-left: 0;
  266. padding-right: 1.5em;
  267. }
  268. /* Cover */
  269. .edit-post-visual-editor .editor-block-list__block .wp-block-cover p,
  270. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p {
  271. font-size: 24px;
  272. }
  273. /* File */
  274. .wp-block-file .wp-block-file__textlink {
  275. text-decoration: underline;
  276. }
  277. .wp-block-file .wp-block-file__button {
  278. background-color: #678db8;
  279. border-color: #678db8;
  280. border-radius: 0;
  281. color: #fff;
  282. font-size: 14px;
  283. letter-spacing: 0.1em;
  284. padding: 1em;
  285. text-transform: uppercase;
  286. }
  287. .wp-block-file .wp-block-file__button:hover,
  288. .wp-block-file .wp-block-file__button:focus {
  289. background-color: #678db8;
  290. opacity: 0.75;
  291. }
  292. /*--------------------------------------------------------------
  293. 4.0 Blocks - Formatting
  294. --------------------------------------------------------------*/
  295. /* Verse */
  296. .wp-block-verse {
  297. font-family: "Noto Serif", Georgia, serif;
  298. font-size: inherit;
  299. font-style: italic;
  300. }
  301. .wp-block-verse pre {
  302. padding: 0;
  303. }
  304. /* Code */
  305. .wp-block-code {
  306. background: #eee;
  307. border: 0;
  308. border-radius: 0;
  309. font-family: "Lucida Console", Monaco, "Courier New", monospace;
  310. font-size: 90%;
  311. padding: 1.6em;
  312. margin-bottom: 1.6em;
  313. max-width: 100%;
  314. overflow: auto;
  315. position: relative;
  316. }
  317. .wp-block-code textarea {
  318. background: transparent;
  319. border: 0;
  320. }
  321. .wp-block-code:before {
  322. background-color: #e7ae01;
  323. color: #ffffff;
  324. content: "\f462";
  325. font-family: "Genericons";
  326. font-size: 18px;
  327. height: 100%;
  328. line-height: 1.62;
  329. padding: 0 .19em;
  330. position: absolute;
  331. right: 0;
  332. top: 0;
  333. z-index: 2;
  334. }
  335. .rtl .wp-block-code:before {
  336. left: 0;
  337. right: auto;
  338. }
  339. /* Pullquote */
  340. .wp-block-pullquote {
  341. border-color: #ddd;
  342. margin-bottom: 1.5em;
  343. }
  344. .wp-block-pullquote blockquote {
  345. border: 0;
  346. margin: 0;
  347. padding: 0;
  348. }
  349. .wp-block-pullquote blockquote > .editor-rich-text p {
  350. color: #393d41;
  351. font-family: "Noto Serif", Georgia, serif;
  352. font-style: italic;
  353. }
  354. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  355. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  356. font-size: 20px;
  357. }
  358. .wp-block-pullquote .wp-block-pullquote__citation {
  359. color: #6c7781;
  360. font-size: 13px;
  361. text-transform: none;
  362. }
  363. /* Preformatted */
  364. .wp-block-preformatted {
  365. background: #eee;
  366. font-family: "Lucida Console", Monaco, "Courier New", monospace;
  367. font-size: 90%;
  368. padding: 1.6em;
  369. margin-bottom: 1.6em;
  370. max-width: 100%;
  371. overflow: auto;
  372. position: relative;
  373. }
  374. .wp-block-preformatted:before {
  375. background-color: #e7ae01;
  376. color: #ffffff;
  377. content: "\f462";
  378. font-family: "Genericons";
  379. font-size: 18px;
  380. height: 100%;
  381. line-height: 1.62;
  382. padding: 0 .19em;
  383. position: absolute;
  384. right: 0;
  385. top: 0;
  386. z-index: 2;
  387. }
  388. .rtl .wp-block-preformatted:before {
  389. left: 0;
  390. right: auto;
  391. }
  392. /* Table */
  393. .wp-block-table {
  394. border: 1px solid #ddd;
  395. border-collapse: collapse;
  396. border-spacing: 0;
  397. line-height: 1.38;
  398. margin: 0 0 1.62em;
  399. width: 100%;
  400. }
  401. .wp-block-table td,
  402. .wp-block-table th {
  403. border-bottom: 1px solid;
  404. border-left: 1px solid;
  405. border-color: #ddd;
  406. padding: 0;
  407. }
  408. .wp-block-table .wp-block-table__cell-content {
  409. padding: 5px 10px;
  410. }
  411. .wp-block-table th {
  412. font-size: 85%;
  413. letter-spacing: 0.1em;
  414. text-align: left;
  415. text-transform: uppercase;
  416. }
  417. .wp-block-table th,
  418. .wp-block-table tfoot td {
  419. font-weight: 700;
  420. }
  421. .wp-block-table th:first-child,
  422. .wp-block-table td:first-child {
  423. border-left: 0;
  424. }
  425. .wp-block-table thead tr {
  426. background: #eee;
  427. }
  428. .rtl .wp-block-table th {
  429. text-align: right;
  430. }
  431. /*--------------------------------------------------------------
  432. 5.0 Blocks - Layout Elements
  433. --------------------------------------------------------------*/
  434. /* Button */
  435. .wp-block-button .wp-block-button__link {
  436. background-color: #678db8;
  437. color: #fff;
  438. font-size: 14px;
  439. letter-spacing: 0.1em;
  440. padding: 1em;
  441. text-transform: uppercase;
  442. }
  443. .is-style-outline .wp-block-button__link {
  444. border-color: currentColor;
  445. background: transparent;
  446. }
  447. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  448. color: #678db8;
  449. }
  450. /* Separator */
  451. .wp-block-separator {
  452. background-color: #eee;
  453. border: 0;
  454. height: 1px;
  455. }
  456. /*--------------------------------------------------------------
  457. 6.0 Blocks - Widgets
  458. --------------------------------------------------------------*/
  459. /* General Widget styles */
  460. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  461. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  462. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  463. list-style-position: inside;
  464. }
  465. /* Latest Comments */
  466. .wp-block-latest-comments {
  467. font-size: 17px;
  468. margin-left: 0;
  469. margin-right: 0;
  470. }
  471. .wp-block-latest-comments a {
  472. text-decoration: none;
  473. }
  474. .wp-block-latest-comments__comment {
  475. margin-bottom: 2em;
  476. }
  477. .wp-block-latest-comments__comment-date {
  478. font-size: 15px;
  479. }
  480. .wp-block-latest-comments__comment-author,
  481. .wp-block-latest-comments__comment-link {
  482. font-weight: 700;
  483. text-decoration: none;
  484. }
  485. .wp-block-latest-comments__comment-excerpt p {
  486. font-size: inherit;
  487. margin: 0;
  488. }