editor-blocks.css 13 KB

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