editor-blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. /*
  2. Theme Name: Button 2
  3. Description: Gutenberg Block Editor Styles
  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. .editor-styles-wrapper,
  19. .editor-styles-wrapper p,
  20. .editor-styles-wrapper .mce-content-body {
  21. line-height: 1.6 !important;
  22. }
  23. .edit-post-visual-editor .editor-block-list__block,
  24. .editor-default-block-appender input[type="text"].editor-default-block-appender__content {
  25. color: #777;
  26. font-family: Lato, Helvetica, sans-serif;
  27. font-size: 16px;
  28. }
  29. .alignleft,
  30. .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
  31. margin-right: 24px;
  32. }
  33. .alignright,
  34. .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit {
  35. margin-left: 24px;
  36. }
  37. /* Title */
  38. .editor-post-title__block .editor-post-title__input {
  39. clear: both;
  40. color: #777;
  41. font-family: Lora, Garamond, serif;
  42. font-size: 31.25px;
  43. font-weight: normal;
  44. margin-top: 0;
  45. text-align: center;
  46. line-height: 1.2;
  47. }
  48. /* Headings */
  49. .edit-post-visual-editor h1,
  50. .edit-post-visual-editor h2,
  51. .edit-post-visual-editor h3,
  52. .edit-post-visual-editor h4,
  53. .edit-post-visual-editor h5,
  54. .edit-post-visual-editor h6 {
  55. clear: both;
  56. font-family: Lora, Garamond, serif;
  57. font-weight: normal;
  58. line-height: 1.2;
  59. }
  60. .edit-post-visual-editor h1 {
  61. font-size: 48px;
  62. }
  63. .edit-post-visual-editor h2 {
  64. font-size: 39px;
  65. }
  66. .edit-post-visual-editor h3 {
  67. font-size: 31px;
  68. }
  69. .edit-post-visual-editor h4 {
  70. font-size: 25px;
  71. }
  72. .edit-post-visual-editor h5 {
  73. font-size: 20px;
  74. }
  75. .edit-post-visual-editor h6 {
  76. font-size: 16px;
  77. }
  78. /* Paragraphs */
  79. .edit-post-visual-editor p {
  80. margin: 0 0 1.5em;
  81. }
  82. .edit-post-visual-editor blockquote p {
  83. margin-bottom: 1.5em;
  84. }
  85. /*--------------------------------------------------------------
  86. 2.0 General Block Styles
  87. --------------------------------------------------------------*/
  88. /* Main column width */
  89. .wp-block {
  90. max-width: 750px; /* 720px + 30px padding */
  91. }
  92. @media screen and (min-width: 960px) {
  93. .wp-block {
  94. max-width: 584px; /* 554px + 30px padding */
  95. }
  96. }
  97. @media screen and (min-width: 1080px) {
  98. .wp-block {
  99. max-width: 674px; /* 644px + 30px padding */
  100. }
  101. }
  102. @media screen and (min-width: 1380px) {
  103. .wp-block {
  104. max-width: 899px; /* 869px + 30px padding */
  105. }
  106. }
  107. /* Link styles */
  108. .edit-post-visual-editor a,
  109. .editor-block-list__block a,
  110. .wp-block-freeform.block-library-rich-text__tinymce a {
  111. color: #f78769;
  112. }
  113. /* List styles */
  114. .edit-post-visual-editor ul:not(.wp-block-gallery) li,
  115. .editor-block-list__block ul:not(.wp-block-gallery) li,
  116. .edit-post-visual-editor ol li,
  117. .editor-block-list__block ol li,
  118. .block-library-list li,
  119. .wp-block-freeform.block-library-rich-text__tinymce ul li,
  120. .wp-block-freeform.block-library-rich-text__tinymce ol li {
  121. line-height: 1.6;
  122. margin-bottom: 0;
  123. }
  124. /* Captions */
  125. [class^="wp-block-"] figcaption {
  126. color: #555d66;
  127. font-family: Lato, Helvetica, sans-serif;
  128. font-size: 13px;
  129. line-height: 1.6;
  130. margin-bottom: 13px;
  131. margin-top: 6.5px;
  132. }
  133. /*--------------------------------------------------------------
  134. 3.0 Blocks - Common Blocks
  135. --------------------------------------------------------------*/
  136. /* Paragraph */
  137. .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
  138. font-family: Lora, Garamond, serif;
  139. font-size: 3.75em;
  140. line-height: 2.5em;
  141. }
  142. /* Quote */
  143. .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
  144. border-left: none;
  145. border-right: none;
  146. padding-left: 0;
  147. padding-right: 0;
  148. }
  149. .wp-block-quote {
  150. color: #bbb;
  151. font-family: Lora, Garamond, serif;
  152. font-size: 20px;
  153. font-style: italic;
  154. margin-left: 30px;
  155. margin-right: 30px;
  156. }
  157. .editor-block-list__block .wp-block-quote p {
  158. font-size: 20px;
  159. margin-bottom: 1.5em;
  160. }
  161. .editor-block-list__block .wp-block-quote p:last-of-type {
  162. margin-bottom: 1em;
  163. }
  164. .wp-block-quote__citation {
  165. font-size: 16px;
  166. color: #999;
  167. }
  168. .wp-block-quote.is-large p,
  169. .wp-block-quote.is-style-large p {
  170. font-size: 30px;
  171. }
  172. .wp-block-quote.is-large .wp-block-quote__citation,
  173. .wp-block-quote.is-style-large .wp-block-quote__citation {
  174. font-size: 20px;
  175. }
  176. /* File */
  177. .wp-block-file__textlink {
  178. color: #f78769;
  179. text-decoration: underline;
  180. }
  181. /*--------------------------------------------------------------
  182. 4.0 Blocks - Formatting
  183. --------------------------------------------------------------*/
  184. /* Verse */
  185. .wp-block-verse pre {
  186. }
  187. /* Code */
  188. .wp-block-code {
  189. background-color: #f3f3f3;
  190. border: none;
  191. border-radius: 0;
  192. padding: 24px;
  193. }
  194. .wp-block-code textarea.editor-plain-text {
  195. background-color: #f3f3f3;
  196. color: #777;
  197. font-family: "Courier 10 Pitch", Courier, monospace;
  198. font-size: 15px;
  199. line-height: 1.6;
  200. }
  201. /* Classic */
  202. .wp-block-freeform.block-library-rich-text__tinymce h1,
  203. .wp-block-freeform.block-library-rich-text__tinymce h2,
  204. .wp-block-freeform.block-library-rich-text__tinymce h3,
  205. .wp-block-freeform.block-library-rich-text__tinymce h4,
  206. .wp-block-freeform.block-library-rich-text__tinymce h5,
  207. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  208. color: #777;
  209. }
  210. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  211. font-size: 48px
  212. }
  213. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  214. font-size: 39px;
  215. }
  216. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  217. font-size: 31px;
  218. }
  219. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  220. font-size: 25px;
  221. }
  222. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  223. font-size: 20px
  224. }
  225. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  226. font-size: 16px;
  227. }
  228. .wp-block-freeform.block-library-rich-text__tinymce q,
  229. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  230. border-left: none;
  231. border-right: none;
  232. box-shadow: none;
  233. font-family: Lora, Garamond, serif;
  234. font-size: 20px;
  235. font-style: italic;
  236. padding-left: 0;
  237. padding-right: 0;
  238. color: #bbb;
  239. }
  240. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  241. margin-left: 30px;
  242. margin-right: 30px;
  243. }
  244. .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  245. font-size: 20px;
  246. }
  247. .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
  248. margin: 0.75em 1.5em;
  249. text-align: left;
  250. }
  251. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  252. text-align: right;
  253. }
  254. .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  255. text-align: right;
  256. }
  257. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  258. text-align: left;
  259. }
  260. .wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
  261. text-align: center;
  262. }
  263. .wp-block-freeform .mce-item-table,
  264. .wp-block-freeform .mce-item-table th,
  265. .wp-block-freeform .mce-item-table td {
  266. border-collapse: collapse;
  267. border: none;
  268. }
  269. .wp-block-freeform .mce-item-table td,
  270. .wp-block-freeform .mce-item-table th {
  271. border-bottom: 1px solid #ddd;
  272. padding: 5px 3px;
  273. }
  274. .wp-block-freeform.block-library-rich-text__tinymce table th {
  275. border-bottom: 3px solid #ddd;
  276. }
  277. /* Lists */
  278. .wp-block-freeform dl dt {
  279. font-weight: bold;
  280. }
  281. .wp-block-freeform dl dd {
  282. margin: 0 1.5em 1.5em;
  283. }
  284. .editor-styles-wrapper .wp-block-freeform ul,
  285. .editor-styles-wrapper .wp-block-freeform ul ul {
  286. list-style: disc;
  287. }
  288. .editor-styles-wrapper .wp-block-freeform li > ul,
  289. .editor-styles-wrapper .wp-block-freeform li > ol {
  290. margin-left: 0.75em;
  291. padding-left: 0;
  292. }
  293. .rtl .editor-styles-wrapper .wp-block-freeform li > ul,
  294. .rtl .editor-styles-wrapper .wp-block-freeform li > ol {
  295. margin-right: 0.75em;
  296. padding-right: 0;
  297. }
  298. .wp-block-freeform.block-library-rich-text__tinymce pre {
  299. background-color: #f3f3f3;
  300. color: #777;
  301. font-family: "Courier 10 Pitch", Courier, monospace;
  302. font-size: 15px;
  303. line-height: 1.6;
  304. margin-bottom: 1.6em;
  305. max-width: 100%;
  306. padding: 1.6em;
  307. overflow: auto;
  308. white-space: pre;
  309. }
  310. .wp-block-freeform address {
  311. line-height: 1.6;
  312. margin-bottom: 1.5em;
  313. }
  314. .wp-block-freeform abbr,
  315. .wp-block-freeform acronym {
  316. border-bottom: 1px dotted #f78769;
  317. }
  318. .wp-block-freeform.block-library-rich-text__tinymce code,
  319. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  320. .wp-block-freeform.block-library-rich-text__tinymce tt,
  321. .wp-block-freeform.block-library-rich-text__tinymce var {
  322. background-color: transparent;
  323. color: #777;
  324. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  325. font-size: 15px;
  326. padding: 0;
  327. }
  328. .wp-block-freeform mark,
  329. .wp-block-freeform ins {
  330. background: #f3f3f3;
  331. text-decoration: none;
  332. }
  333. /* Preformatted */
  334. pre,
  335. .wp-block-code,
  336. .wp-block-preformatted pre,
  337. .wp-block-verse pre,
  338. pre.wp-block-verse {
  339. background: #f3f3f3;
  340. color: #777;
  341. font-family: "Courier 10 Pitch", Courier, monospace;
  342. font-size: 15px;
  343. line-height: 1.6;
  344. margin-bottom: 1.6em;
  345. max-width: 100%;
  346. padding: 1.6em;
  347. }
  348. /* Pullquote */
  349. .wp-block-pullquote {
  350. border-bottom: none;
  351. border-top: none;
  352. color: #bbb;
  353. font-family: Lora, Garamond, serif;
  354. font-size: 1.25em;
  355. }
  356. .wp-block-pullquote__citation,
  357. .wp-block-pullquote cite,
  358. .wp-block-pullquote footer {
  359. text-transform: capitalize;
  360. }
  361. .wp-block-pullquote.alignleft {}
  362. .wp-block-pullquote.alignright {}
  363. .wp-block-pullquote blockquote > .editor-rich-text p {}
  364. .wp-block-pullquote.alignleft blockquote p,
  365. .wp-block-pullquote.alignright blockquote p {}
  366. .wp-block-pullquote.alignleft .wp-block-pullquote__citation,
  367. .wp-block-pullquote.alignright .wp-block-pullquote__citation {}
  368. .wp-block-pullquote .wp-block-pullquote__citation {}
  369. /* Table */
  370. .wp-block-table td,
  371. .wp-block-table th {
  372. border: none;
  373. }
  374. .wp-block-table .wp-block-table__cell-content {
  375. border-bottom: 1px solid #ddd;
  376. padding: 5px 3px;
  377. }
  378. .wp-block-table th .wp-block-table__cell-content {
  379. border-bottom: 3px solid #ddd;
  380. text-align: left;
  381. }
  382. .rtl .wp-block-table th .wp-block-table__cell-content {
  383. text-align: right;
  384. }
  385. /*--------------------------------------------------------------
  386. 5.0 Blocks - Layout Elements
  387. --------------------------------------------------------------*/
  388. /* Buttons */
  389. .wp-block-file .wp-block-file__button,
  390. .wp-block-button .wp-block-button__link {
  391. background: #bbb;
  392. border-radius: 0;
  393. border: 1px dashed white;
  394. box-shadow: none;
  395. font-size: 14px;
  396. font-weight: bold;
  397. line-height: 1;
  398. margin: 5px;
  399. outline: 5px solid #bbb;
  400. padding: .75em 1em;
  401. text-shadow: none;
  402. text-transform: uppercase;
  403. transition: .3s;
  404. }
  405. .wp-block-file .wp-block-file__button:hover,
  406. .wp-block-file .wp-block-file__button:focus,
  407. .wp-block-file .wp-block-file__button:active,
  408. .wp-block-button .wp-block-button__link:hover,
  409. .wp-block-button .wp-block-button__link:focus,
  410. .wp-block-button .wp-block-button__link:active {
  411. background: #f78769;
  412. box-shadow: none;
  413. color: white;
  414. outline: 5px solid #f78769;
  415. }
  416. /* Separator */
  417. .wp-block-separator {
  418. background-color: #f3f3f3;
  419. height: 2px;
  420. margin-bottom: 24px;
  421. border-bottom: none;
  422. }
  423. .wp-block-separator.is-wide {}
  424. .wp-block-separator.is-style-dots::before {
  425. color: #ccc;
  426. }