editor-blocks.css 15 KB

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