editor-blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. /*
  2. Theme Name: Gazette
  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. .editor-default-block-appender textarea.editor-default-block-appender__content {
  20. font-family: "Lora", serif;
  21. font-size: 16px;
  22. }
  23. .edit-post-visual-editor .editor-block-list__block {
  24. color: #222;
  25. }
  26. .edit-post-visual-editor .editor-block-list__block p {
  27. font-size: 16px;
  28. line-height: 1.5;
  29. }
  30. @media screen and (min-width: 768px) {
  31. .edit-post-visual-editor .editor-block-list__block,
  32. .editor-default-block-appender textarea.editor-default-block-appender__content,
  33. .edit-post-visual-editor .editor-block-list__block p {
  34. font-size: 20px;
  35. }
  36. }
  37. .editor-post-title__block .editor-post-title__input {
  38. font-family: "Lato", sans-serif;
  39. font-size: 39px;
  40. font-weight: 900;
  41. line-height: 1.54;
  42. }
  43. .edit-post-visual-editor .editor-block-list__block h1,
  44. .edit-post-visual-editor .editor-block-list__block h2,
  45. .edit-post-visual-editor .editor-block-list__block h3,
  46. .edit-post-visual-editor .editor-block-list__block h4,
  47. .edit-post-visual-editor .editor-block-list__block h5,
  48. .edit-post-visual-editor .editor-block-list__block h6 {
  49. clear: both;
  50. font-family: "Lato", sans-serif;
  51. font-weight: 900;
  52. margin-top: 0;
  53. }
  54. .wp-block-heading h1,
  55. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  56. font-size: 49px;
  57. line-height: 1.225;
  58. }
  59. .wp-block-heading h2,
  60. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  61. font-size: 39px;
  62. line-height: 1.54;
  63. }
  64. .wp-block-heading h3,
  65. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  66. font-size: 31px;
  67. line-height: 1.452;
  68. }
  69. .wp-block-heading h4,
  70. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  71. font-size: 25px;
  72. line-height: 1.2;
  73. }
  74. .wp-block-heading h5,
  75. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  76. font-size: 20px;
  77. line-height: 1.5;
  78. }
  79. .wp-block-heading h6,
  80. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  81. font-size: 16px;
  82. line-height: 1.5;
  83. }
  84. /*--------------------------------------------------------------
  85. 2.0 General Block Styles
  86. --------------------------------------------------------------*/
  87. /* Main column width */
  88. .wp-block {
  89. max-width: 750px; /* 720px + 30px for padding */
  90. }
  91. /* Captions */
  92. [class^="wp-block-"] figcaption {
  93. font-family: Lato, sans-serif;
  94. font-size: 16px;
  95. line-height: 1.25;
  96. }
  97. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  98. color: #777;
  99. }
  100. /* Link styles */
  101. .edit-post-visual-editor a,
  102. .editor-block-list__block a,
  103. .wp-block-freeform.block-library-rich-text__tinymce a {
  104. color: #3863c1;
  105. font-weight: bold;
  106. text-decoration: none;
  107. }
  108. /* Quote styles */
  109. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  110. border: 0;
  111. color: #555;
  112. font-style: italic;
  113. padding: 0;
  114. }
  115. .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
  116. -webkit-font-smoothing: antialiased;
  117. -moz-osx-font-smoothing: grayscale;
  118. color: #ddd;
  119. content: "\f106";
  120. display: inline-block;
  121. float: left;
  122. font-family: "Genericons";
  123. font-size: 24px;
  124. font-style: normal;
  125. font-weight: normal;
  126. height: 30px;
  127. line-height: 1.25;
  128. speak: none;
  129. text-decoration: inherit;
  130. vertical-align: top;
  131. width: 30px;
  132. }
  133. .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
  134. font-family: Lato, sans-serif;
  135. font-size: 16px;
  136. font-style: normal;
  137. font-weight: bold;
  138. line-height: 1.5;
  139. }
  140. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before{
  141. float: right;
  142. }
  143. /* Table styles */
  144. .wp-block-freeform.block-library-rich-text__tinymce table {
  145. border-collapse: collapse;
  146. border: 0;
  147. border-top: 1px solid #ddd;
  148. margin: 0 0 30px;
  149. text-align: left;
  150. width: 100%;
  151. }
  152. .wp-block-freeform.block-library-rich-text__tinymce thead {
  153. background: #eee;
  154. }
  155. .wp-block-freeform.block-library-rich-text__tinymce th {
  156. border: 0;
  157. border-bottom: 1px solid #ddd;
  158. font-family: "Lato", sans-serif;
  159. font-weight: bold;
  160. padding: 5px;
  161. text-transform: uppercase;
  162. }
  163. .wp-block-freeform.block-library-rich-text__tinymce td {
  164. border: 0;
  165. border-bottom: 1px solid #ddd;
  166. padding: 5px;
  167. }
  168. .rtl .wp-block-freeform.block-library-rich-text__tinymce table {
  169. text-align: right;
  170. }
  171. /* Preformatted */
  172. .wp-block-freeform.block-library-rich-text__tinymce pre {
  173. background: #eee;
  174. border: 0;
  175. border-left: 2px solid #3863c1;
  176. border-radius: 0;
  177. max-width: 100%;
  178. overflow: auto;
  179. padding: 30px;
  180. }
  181. .rtl .wp-block-freeform.block-library-rich-text__tinymce pre {
  182. border-left: 0;
  183. border-right: 2px solid #3863c1;
  184. }
  185. /* Lists */
  186. .wp-block-freeform.block-library-rich-text__tinymce ul,
  187. .wp-block-freeform.block-library-rich-text__tinymce ul ul {
  188. list-style: square inside;
  189. }
  190. .wp-block-freeform.block-library-rich-text__tinymce li {
  191. margin-bottom: 0;
  192. }
  193. /* Definition List styles */
  194. .wp-block-freeform.block-library-rich-text__tinymce dt {
  195. font-weight: bold;
  196. }
  197. .wp-block-freeform.block-library-rich-text__tinymce dd {
  198. margin-left: 0;
  199. margin-right: 0;
  200. }
  201. /*--------------------------------------------------------------
  202. 3.0 Blocks - Common Blocks
  203. --------------------------------------------------------------*/
  204. /* Paragraph */
  205. p.has-drop-cap:not(:focus)::first-letter {
  206. font-size: 5em;
  207. margin-top: 0.1em;
  208. }
  209. /* List */
  210. .editor-styles-wrapper [data-type="core/list"] ul,
  211. .editor-styles-wrapper [data-type="core/list"] ul ul {
  212. list-style: square inside;
  213. }
  214. .editor-styles-wrapper [data-type="core/list"] li {
  215. margin-bottom: 0;
  216. }
  217. /* Quote */
  218. .wp-block-quote:not(.is-large):not(.is-style-large) {
  219. border: 0;
  220. padding: 0;
  221. }
  222. .wp-block-quote p {
  223. color: #555;
  224. font-style: italic;
  225. padding: 0;
  226. }
  227. .wp-block-quote.is-large p,
  228. .wp-block-quote.is-style-large p {
  229. font-size: 24px;
  230. }
  231. .wp-block-quote:before {
  232. -webkit-font-smoothing: antialiased;
  233. -moz-osx-font-smoothing: grayscale;
  234. color: #ddd;
  235. content: "\f106";
  236. display: inline-block;
  237. float: left;
  238. font-family: "Genericons";
  239. font-size: 24px;
  240. font-style: normal;
  241. font-weight: normal;
  242. height: 30px;
  243. line-height: 1.25;
  244. speak: none;
  245. text-decoration: inherit;
  246. vertical-align: top;
  247. width: 30px;
  248. }
  249. .wp-block-quote[style*="text-align:right"]:before,
  250. .wp-block-quote[style*="text-align: right"]:before {
  251. float: right;
  252. }
  253. .wp-block-quote .wp-block-quote__citation {
  254. color: #555;
  255. font-family: Lato, sans-serif;
  256. font-size: 16px;
  257. font-style: normal;
  258. font-weight: bold;
  259. line-height: 1.5;
  260. }
  261. .wp-block-quote.is-large .wp-block-quote__citation,
  262. .wp-block-quote.is-style-large .wp-block-quote__citation {
  263. font-size: 18px;
  264. }
  265. .rtl .wp-block-quote:before{
  266. float: right;
  267. }
  268. .rtl .wp-block-quote[style*="text-align:left"]:before,
  269. .rtl .wp-block-quote[style*="text-align: left"]:before {
  270. float: left;
  271. }
  272. /* Cover */
  273. .edit-post-visual-editor .editor-block-list__block .wp-block-cover p,
  274. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p,
  275. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2 {
  276. font-size: 24px;
  277. }
  278. /* File */
  279. .wp-block-file .wp-block-file__textlink {
  280. color: #3863c1;
  281. font-weight: bold;
  282. }
  283. .wp-block-file .wp-block-file__button {
  284. background: #3863c1;
  285. border: 2px solid #3863c1;
  286. border-radius: 0;
  287. color: #fff;
  288. font-family: Lato, sans-serif;
  289. font-size: 16px;
  290. font-weight: bold;
  291. line-height: 1.875;
  292. padding: 5.5px 13px;
  293. text-transform: uppercase;
  294. }
  295. /*--------------------------------------------------------------
  296. 4.0 Blocks - Formatting
  297. --------------------------------------------------------------*/
  298. /* Verse */
  299. .wp-block-verse {
  300. font-style: italic;
  301. }
  302. .wp-block-verse pre {
  303. padding: 0;
  304. }
  305. /* Code */
  306. .wp-block-code {
  307. background: #eee;
  308. border: 0;
  309. border-left: 2px solid #3863c1;
  310. border-radius: 0;
  311. max-width: 100%;
  312. overflow: auto;
  313. padding: 30px;
  314. }
  315. .wp-block-code textarea {
  316. background: transparent;
  317. font-family: "Inconsolata", monospace;
  318. font-size: inherit;
  319. }
  320. .rtl .wp-block-code {
  321. border-left: 0;
  322. border-right: 2px solid #3863c1;
  323. }
  324. /* Pullquote */
  325. .wp-block-pullquote {
  326. border: 0;
  327. }
  328. .wp-block-pullquote p {
  329. font-family: "Lora", serif;
  330. font-size: 20px;
  331. font-style: italic;
  332. }
  333. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  334. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  335. font-size: 20px;
  336. }
  337. .wp-block-pullquote p:last-child {
  338. margin-bottom: 0;
  339. }
  340. .wp-block-pullquote .wp-block-pullquote__citation {
  341. font-family: "Lato", sans-serif;
  342. font-size: 16px;
  343. font-weight: bold;
  344. text-transform: none;
  345. }
  346. /* Preformatted */
  347. .wp-block-preformatted {
  348. background: #eee;
  349. border: 0;
  350. border-left: 2px solid #3863c1;
  351. border-radius: 0;
  352. max-width: 100%;
  353. overflow: auto;
  354. padding: 30px;
  355. }
  356. .rtl .wp-block-preformatted {
  357. border-left: 0;
  358. border-right: 2px solid #3863c1;
  359. }
  360. /* Table */
  361. .wp-block-table {
  362. border-top: 1px solid #ddd;
  363. margin: 0 0 30px;
  364. text-align: left;
  365. width: 100%;
  366. }
  367. .wp-block-table thead {
  368. background: #eee;
  369. }
  370. .wp-block-table th {
  371. border: 0;
  372. border-bottom: 1px solid #ddd;
  373. font-family: "Lato", sans-serif;
  374. font-weight: bold;
  375. padding: 0;
  376. text-transform: uppercase;
  377. }
  378. .wp-block-table td {
  379. border: 0;
  380. border-bottom: 1px solid #ddd;
  381. padding: 0;
  382. }
  383. .wp-block-table .wp-block-table__cell-content {
  384. padding: 3px 5px;
  385. }
  386. .rtl .wp-block-table {
  387. text-align: right;
  388. }
  389. /*--------------------------------------------------------------
  390. 5.0 Blocks - Layout Elements
  391. --------------------------------------------------------------*/
  392. /* Button */
  393. .wp-block-button .wp-block-button__link {
  394. background: #3863c1;
  395. border: 2px solid #3863c1;
  396. color: #fff;
  397. font-family: Lato, sans-serif;
  398. font-size: 16px;
  399. font-weight: bold;
  400. line-height: 1.875;
  401. padding: 5.5px 13px;
  402. text-transform: uppercase;
  403. }
  404. .wp-block-button__link.has-background.has-text-color,
  405. .is-style-outline .wp-block-button__link {
  406. border-color: currentColor;
  407. }
  408. .wp-block-button.is-style-outline .wp-block-button__link {
  409. background: transparent;
  410. }
  411. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  412. color: #3863c1;
  413. }
  414. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  415. line-height: 30px;
  416. }
  417. /* Seperator */
  418. .wp-block-separator {
  419. background: #ddd;
  420. border: 0;
  421. height: 1px;
  422. }
  423. /*--------------------------------------------------------------
  424. 6.0 Blocks - Widgets
  425. --------------------------------------------------------------*/
  426. /* General Widget styles */
  427. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  428. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  429. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  430. list-style-position: inside;
  431. }
  432. /* Latest Comments */
  433. .wp-block-latest-comments__comment,
  434. .edit-post-visual-editor .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
  435. font-size: 16px;
  436. }
  437. .wp-block-latest-comments__comment:not(:last-child) {
  438. border-bottom: 1px solid #eee;
  439. margin-bottom: 30px;
  440. padding-bottom: 10px;
  441. }
  442. .wp-block-latest-comments__comment-meta,
  443. .wp-block-latest-comments__comment-date {
  444. font-family: "Lato", sans-serif;
  445. }
  446. .wp-block-latest-comments__comment-meta a {
  447. font-weight: bold;
  448. }
  449. .wp-block-latest-comments__comment-date {
  450. color: #777;
  451. font-size: 13px;
  452. font-weight: bold;
  453. margin-top: 0.5em;
  454. text-transform: uppercase;
  455. }