editor-blocks.css 14 KB

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