editor-blocks.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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;
  22. }
  23. .edit-post-visual-editor .editor-block-list__block,
  24. .editor-default-block-appender textarea.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 li:not(.blocks-gallery-item),
  115. .editor-block-list__block ul li:not(.blocks-gallery-item),
  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: Lora, Garamond, serif;
  128. font-size: 13px;
  129. font-style: italic;
  130. text-align: center;
  131. line-height: 1.6;
  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. }
  141. /* Images - Fancy styles */
  142. .wp-block-image.is-style-fancy,
  143. .wp-block-image.fancy {
  144. position: relative;
  145. line-height: 1;
  146. }
  147. .wp-block-image.is-style-fancy .alignright,
  148. .wp-block-image.fancy .alignright,
  149. .wp-block-image.is-style-fancy .alignleft,
  150. .wp-block-image.fancy .alignleft,
  151. .wp-block-image.is-style-fancy .aligncenter,
  152. .wp-block-image.fancy .aligncenter {
  153. margin: 0;
  154. }
  155. .wp-block-image.is-style-fancy img,
  156. .wp-block-image.fancy img {
  157. display: inline-block;
  158. max-width: 99.9%;
  159. }
  160. .wp-block-image.is-style-fancy:before,
  161. .wp-block-image.fancy:before,
  162. .wp-block-image.is-style-fancy:after,
  163. .wp-block-image.fancy:after {
  164. position: absolute;
  165. z-index: 1;
  166. top: -1px;
  167. left: -1px;
  168. display: block;
  169. width: 45px;
  170. height: 45px;
  171. content: "";
  172. background-image: url(img/corner.svg);
  173. background-repeat: no-repeat;
  174. background-size: 45px;
  175. }
  176. .wp-block-image.is-style-fancy:after,
  177. .wp-block-image.fancy:after {
  178. right: -1px;
  179. left: auto;
  180. -webkit-transform: rotate(90deg);
  181. -ms-transform: rotate(90deg);
  182. transform: rotate(90deg);
  183. }
  184. .wp-block-image.is-style-fancy .components-resizable-box__container:before,
  185. .wp-block-image.fancy .components-resizable-box__container:before,
  186. .wp-block-image.is-style-fancy .components-resizable-box__container:after,
  187. .wp-block-image.fancy .components-resizable-box__container:after {
  188. position: absolute;
  189. z-index: 1;
  190. bottom: -1px;
  191. left: -1px;
  192. display: block;
  193. width: 45px;
  194. height: 45px;
  195. content: "";
  196. -webkit-transform: rotate(-90deg);
  197. -ms-transform: rotate(-90deg);
  198. transform: rotate(-90deg);
  199. background-image: url(img/corner.svg);
  200. background-repeat: no-repeat;
  201. background-size: 45px;
  202. }
  203. .wp-block-image.is-style-fancy .components-resizable-box__container:after,
  204. .wp-block-image.fancy .components-resizable-box__container:after {
  205. right: -1px;
  206. left: auto;
  207. -webkit-transform: rotate(-180deg);
  208. -ms-transform: rotate(-180deg);
  209. transform: rotate(-180deg);
  210. }
  211. @media only screen and (min-width: 40.063em) {
  212. .wp-block-image.is-style-fancy:before,
  213. .wp-block-image.fancy:before,
  214. .wp-block-image.is-style-fancy:after,
  215. .wp-block-image.fancy:after,
  216. .wp-block-image.is-style-fancy .components-resizable-box__container:before,
  217. .wp-block-image.fancy .components-resizable-box__container:before,
  218. .wp-block-image.is-style-fancy .components-resizable-box__container:after,
  219. .wp-block-image.fancy .components-resizable-box__container:after {
  220. width: 75px;
  221. height: 75px;
  222. background-size: 75px;
  223. }
  224. }
  225. /* Improve appearance of fancy image block in preview */
  226. .editor-block-styles__item-preview .wp-block-image.is-style-fancy:before,
  227. .editor-block-styles__item-preview .wp-block-image.is-style-fancy:after,
  228. .editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
  229. .editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
  230. width: 20px;
  231. height: 20px;
  232. background-size: 20px;
  233. }
  234. .editor-block-preview .wp-block-image.is-style-fancy:before,
  235. .editor-block-preview .wp-block-image.is-style-fancy:after,
  236. .editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
  237. .editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
  238. width: 30px;
  239. height: 30px;
  240. background-size: 30px;
  241. }
  242. /* Quote */
  243. .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
  244. border-left: none;
  245. border-right: none;
  246. padding-left: 0;
  247. padding-right: 0;
  248. }
  249. .wp-block-quote {
  250. color: #bbb;
  251. font-family: Lora, Garamond, serif;
  252. font-size: 20px;
  253. font-style: italic;
  254. margin-left: 30px;
  255. margin-right: 30px;
  256. }
  257. .editor-block-list__block .wp-block-quote p {
  258. font-size: 20px;
  259. margin-bottom: 1.5em;
  260. }
  261. .editor-block-list__block .wp-block-quote p:last-of-type {
  262. margin-bottom: 1em;
  263. }
  264. .wp-block-quote__citation {
  265. font-size: 16px;
  266. color: #999;
  267. }
  268. .wp-block-quote.is-large p,
  269. .wp-block-quote.is-style-large p {
  270. font-size: 30px;
  271. }
  272. .wp-block-quote.is-large .wp-block-quote__citation,
  273. .wp-block-quote.is-style-large .wp-block-quote__citation {
  274. font-size: 20px;
  275. }
  276. /* File */
  277. .wp-block-file__textlink {
  278. color: #f78769;
  279. text-decoration: underline;
  280. }
  281. /*--------------------------------------------------------------
  282. 4.0 Blocks - Formatting
  283. --------------------------------------------------------------*/
  284. /* Verse */
  285. .wp-block-verse pre {
  286. }
  287. /* Code */
  288. .wp-block-code {
  289. background-color: #f3f3f3;
  290. border: none;
  291. border-radius: 0;
  292. padding: 24px;
  293. }
  294. .wp-block-code textarea.editor-plain-text {
  295. background-color: #f3f3f3;
  296. color: #777;
  297. font-family: "Courier 10 Pitch", Courier, monospace;
  298. font-size: 15px;
  299. line-height: 1.6;
  300. }
  301. /* Classic */
  302. .wp-block-freeform.block-library-rich-text__tinymce h1,
  303. .wp-block-freeform.block-library-rich-text__tinymce h2,
  304. .wp-block-freeform.block-library-rich-text__tinymce h3,
  305. .wp-block-freeform.block-library-rich-text__tinymce h4,
  306. .wp-block-freeform.block-library-rich-text__tinymce h5,
  307. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  308. color: #777;
  309. }
  310. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  311. font-size: 48px
  312. }
  313. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  314. font-size: 39px;
  315. }
  316. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  317. font-size: 31px;
  318. }
  319. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  320. font-size: 25px;
  321. }
  322. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  323. font-size: 20px
  324. }
  325. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  326. font-size: 16px;
  327. }
  328. .wp-block-freeform.block-library-rich-text__tinymce q,
  329. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  330. border-left: none;
  331. border-right: none;
  332. box-shadow: none;
  333. font-family: Lora, Garamond, serif;
  334. font-size: 20px;
  335. font-style: italic;
  336. padding-left: 0;
  337. padding-right: 0;
  338. color: #bbb;
  339. }
  340. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  341. margin-left: 30px;
  342. margin-right: 30px;
  343. }
  344. .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  345. font-size: 20px;
  346. }
  347. .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
  348. margin: 0.75em 1.5em;
  349. text-align: left;
  350. }
  351. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  352. text-align: right;
  353. }
  354. .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  355. text-align: right;
  356. }
  357. .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
  358. text-align: left;
  359. }
  360. .wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
  361. text-align: center;
  362. }
  363. .wp-block-freeform .mce-item-table,
  364. .wp-block-freeform .mce-item-table th,
  365. .wp-block-freeform .mce-item-table td {
  366. border-collapse: collapse;
  367. border: none;
  368. }
  369. .wp-block-freeform .mce-item-table td,
  370. .wp-block-freeform .mce-item-table th {
  371. border-bottom: 1px solid #ddd;
  372. padding: 5px 3px;
  373. }
  374. .wp-block-freeform.block-library-rich-text__tinymce table th {
  375. border-bottom: 3px solid #ddd;
  376. }
  377. /* Lists */
  378. .wp-block-freeform dl dt {
  379. font-weight: bold;
  380. }
  381. .wp-block-freeform dl dd {
  382. margin: 0 1.5em 1.5em;
  383. }
  384. .editor-styles-wrapper .wp-block-freeform ul,
  385. .editor-styles-wrapper .wp-block-freeform ul ul {
  386. list-style: disc;
  387. }
  388. .editor-styles-wrapper .wp-block-freeform li > ul,
  389. .editor-styles-wrapper .wp-block-freeform li > ol {
  390. margin-left: 0.75em;
  391. padding-left: 0;
  392. }
  393. .rtl .editor-styles-wrapper .wp-block-freeform li > ul,
  394. .rtl .editor-styles-wrapper .wp-block-freeform li > ol {
  395. margin-right: 0.75em;
  396. padding-right: 0;
  397. }
  398. .wp-block-freeform.block-library-rich-text__tinymce pre {
  399. background-color: #f3f3f3;
  400. color: #777;
  401. font-family: "Courier 10 Pitch", Courier, monospace;
  402. font-size: 15px;
  403. line-height: 1.6;
  404. margin-bottom: 1.6em;
  405. max-width: 100%;
  406. padding: 1.6em;
  407. overflow: auto;
  408. white-space: pre;
  409. }
  410. .wp-block-freeform address {
  411. line-height: 1.6;
  412. margin-bottom: 1.5em;
  413. }
  414. .wp-block-freeform abbr,
  415. .wp-block-freeform acronym {
  416. border-bottom: 1px dotted #f78769;
  417. }
  418. .wp-block-freeform.block-library-rich-text__tinymce code,
  419. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  420. .wp-block-freeform.block-library-rich-text__tinymce tt,
  421. .wp-block-freeform.block-library-rich-text__tinymce var {
  422. background-color: transparent;
  423. color: #777;
  424. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  425. font-size: 15px;
  426. padding: 0;
  427. }
  428. .wp-block-freeform mark,
  429. .wp-block-freeform ins {
  430. background: #f3f3f3;
  431. text-decoration: none;
  432. }
  433. /* Preformatted */
  434. pre,
  435. .wp-block-code,
  436. .wp-block-preformatted pre,
  437. .wp-block-verse pre,
  438. pre.wp-block-verse {
  439. background: #f3f3f3;
  440. color: #777;
  441. font-family: "Courier 10 Pitch", Courier, monospace;
  442. font-size: 15px;
  443. line-height: 1.6;
  444. margin-bottom: 1.6em;
  445. max-width: 100%;
  446. padding: 1.6em;
  447. }
  448. /* Pullquote */
  449. .wp-block-pullquote {
  450. border-bottom: none;
  451. border-top: none;
  452. color: #bbb;
  453. font-family: Lora, Garamond, serif;
  454. font-size: 1.25em;
  455. padding: 0;
  456. }
  457. .wp-block-pullquote__citation,
  458. .wp-block-pullquote cite,
  459. .wp-block-pullquote footer {
  460. text-transform: capitalize;
  461. font-size: 20px;
  462. }
  463. .wp-block-pullquote.alignleft {}
  464. .wp-block-pullquote.alignright {}
  465. .wp-block-pullquote blockquote > .editor-rich-text p {}
  466. .wp-block-pullquote.alignleft blockquote p,
  467. .wp-block-pullquote.alignright blockquote p {}
  468. .wp-block-pullquote.alignleft .wp-block-pullquote__citation,
  469. .wp-block-pullquote.alignright .wp-block-pullquote__citation {}
  470. .wp-block-pullquote .wp-block-pullquote__citation {}
  471. /* Table */
  472. .wp-block-table td,
  473. .wp-block-table th {
  474. border: none;
  475. }
  476. .wp-block-table .wp-block-table__cell-content {
  477. border-bottom: 1px solid #ddd;
  478. padding: 5px 3px;
  479. }
  480. .wp-block-table th .wp-block-table__cell-content {
  481. border-bottom: 3px solid #ddd;
  482. text-align: left;
  483. }
  484. .rtl .wp-block-table th .wp-block-table__cell-content {
  485. text-align: right;
  486. }
  487. /* File */
  488. .wp-block-file .wp-block-file__button {
  489. background: #bbb;
  490. border-radius: 0;
  491. border: 1px dashed white;
  492. box-shadow: none;
  493. color: #fff;
  494. font-size: 14px;
  495. font-weight: bold;
  496. line-height: 1;
  497. margin: 5px;
  498. padding: .75em 1em;
  499. outline: 5px solid #bbb;
  500. text-shadow: none;
  501. text-transform: uppercase;
  502. transition: .3s;
  503. }
  504. /*--------------------------------------------------------------
  505. 5.0 Blocks - Layout Elements
  506. --------------------------------------------------------------*/
  507. /* Buttons */
  508. .wp-block-button .wp-block-button__link {
  509. background: #bbb;
  510. color: #fff;
  511. font-size: 14px;
  512. font-weight: bold;
  513. line-height: 1;
  514. padding: calc( .75em + 5px ) calc( 1em + 5px );
  515. text-shadow: none;
  516. text-transform: uppercase;
  517. transition: .3s;
  518. }
  519. .wp-block-button__link:not(.has-background) {
  520. border: 1px dashed white;
  521. box-shadow: 0 0 0 5px #bbb;
  522. margin: 0 5px;
  523. padding: .75em 1em;
  524. }
  525. .is-style-outline .wp-block-button__link {
  526. border: 1px dashed currentColor;
  527. background: #fff;
  528. box-shadow: none;
  529. margin: 0;
  530. padding: calc( .75em + 5px ) calc( 1em + 5px );
  531. }
  532. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  533. color: #bbb;
  534. }
  535. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  536. line-height: 14px;
  537. }
  538. /* Separator */
  539. .wp-block-separator {
  540. background-color: #f3f3f3;
  541. height: 2px;
  542. margin-bottom: 24px;
  543. border-bottom: none;
  544. }
  545. .wp-block-separator.is-wide {}
  546. .wp-block-separator.is-style-dots::before {
  547. color: #ccc;
  548. }
  549. /*--------------------------------------------------------------
  550. 5.0 Blocks - Widgets
  551. --------------------------------------------------------------*/
  552. /* Categories, Archives & Latest Posts */
  553. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  554. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  555. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  556. list-style-position: inside;
  557. }