editor-blocks.css 13 KB

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