style-editor.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  1. /*!
  2. Modern Business Editor Styles
  3. */
  4. /** === Includes === */
  5. @import "sass/variables-site/variables-site";
  6. @import "sass/mixins/mixins-master";
  7. @import "sass/typography/headings";
  8. /** === Helper Functions === */
  9. /**
  10. Given a string, $alignment, returns the nested FSE block selectors
  11. required for Full Site Editing to look correct. If $alignment is given,
  12. we use it to target wp-blocks with a matching data-align attribute.
  13. If no alignment is given, we target the base wp-block class. In both
  14. of these scenarios, we target top level blocks, and any top level blocks
  15. inside one of the FSE template blocks.
  16. */
  17. @function get-block-selector($alignment) {
  18. $main-block-selector: ".wp-block";
  19. @if $alignment != "" {
  20. $main-block-selector: ".wp-block[data-align=\"#{$alignment}\"]";
  21. }
  22. @return "#{$main-block-selector}, .wp-block.post-content__block #{$main-block-selector}";
  23. }
  24. /** === Editor Frame === */
  25. // Targets just the editor frame area, not outside it.
  26. // See https://github.com/WordPress/gutenberg/blob/0ad0414e7a469254ef1ad105fdcf14248a986686/docs/designers-developers/developers/themes/theme-support.md#editor-styles
  27. body {
  28. font-weight: 300;
  29. background: $color__background-body;
  30. .wp-block[data-align="full"] {
  31. width: 100%;
  32. }
  33. @include media(mobile) {
  34. #{get-block-selector("full")} {
  35. width: calc( 100% + 90px );
  36. max-width: calc( 100% + 90px );
  37. }
  38. }
  39. @include media(tablet) {
  40. .editor-writing-flow {
  41. max-width: 80%;
  42. margin: 0 10%;
  43. }
  44. #{get-block-selector("wide")} {
  45. width: 100%;
  46. }
  47. #{get-block-selector("full")} {
  48. position: relative;
  49. left: calc( -12.5% - 14px );
  50. width: calc( 125% + 116px );
  51. max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages.
  52. }
  53. #{get-block-selector("right")} {
  54. max-width: 125%;
  55. }
  56. }
  57. }
  58. /** === Content Width === */
  59. #{get-block-selector("")} {
  60. width: calc(100vw - (2 * #{$size__spacing-unit}));
  61. max-width: 100%;
  62. @include media(tablet) {
  63. width: calc(8 * (100vw / 12));
  64. }
  65. @include media(desktop) {
  66. width: calc(6 * (100vw / 12 ));
  67. }
  68. // Only the top level blocks need specific widths, therefore override for every nested block.
  69. .wp-block {
  70. width: 100%;
  71. }
  72. }
  73. /** === Base Typography === */
  74. body {
  75. font-size: $font__size_base;
  76. font-family: $font__body;
  77. line-height: $font__line-height-body;
  78. color: $color__text-main;
  79. }
  80. p {
  81. font-size: $font__size_base;
  82. font-weight: 300;
  83. &.has-small-font-size {
  84. font-size: $font__size-sm;
  85. }
  86. &.has-normal-font-size {
  87. font-size: $font__size-md;
  88. }
  89. &.has-large-font-size {
  90. font-size: $font__size-lg;
  91. }
  92. &.has-huge-font-size {
  93. font-size: $font__size-xl;
  94. }
  95. }
  96. h1,
  97. h2,
  98. h3,
  99. h4,
  100. h5,
  101. h6 {
  102. font-family: $font__heading;
  103. font-weight: 700;
  104. line-height: $font__line-height-heading;
  105. margin-top: 2rem;
  106. margin-bottom: 2rem;
  107. text-align: center;
  108. .editor-inner-blocks & {
  109. margin-top: 1.375rem;
  110. margin-bottom: 1.375rem;
  111. text-align: inherit;
  112. }
  113. }
  114. h1 {
  115. font-size: $font__size-lg;
  116. }
  117. h2 {
  118. font-size: $font__size-md;
  119. }
  120. h3 {
  121. font-size: $font__size_base;
  122. }
  123. h4 {
  124. font-size: $font__size-sm;
  125. }
  126. h5 {
  127. font-size: $font__size-xs;
  128. }
  129. h6 {
  130. font-size: $font__size-xxs;
  131. }
  132. a {
  133. @include link-transition;
  134. color: $color__link;
  135. *:visited {
  136. }
  137. &:hover,
  138. &:active {
  139. color: $color__link-hover;
  140. outline: 0;
  141. text-decoration: none;
  142. }
  143. &:focus {
  144. outline: 0;
  145. text-decoration: underline;
  146. }
  147. }
  148. .wp-block-freeform.block-library-rich-text__tinymce a {
  149. color: $color__link;
  150. }
  151. // Use white text against these backgrounds by default.
  152. .has-primary-background-color,
  153. .has-secondary-background-color,
  154. .has-dark-gray-background-color,
  155. .has-light-gray-background-color {
  156. color: $color__background-body;
  157. p,
  158. h1,
  159. h2,
  160. h3,
  161. h4,
  162. h5,
  163. h6,
  164. a {
  165. color: $color__background-body;
  166. }
  167. }
  168. // Use dark gray text against this background by default.
  169. .has-white-background-color {
  170. color: $color__text-main;
  171. p,
  172. h1,
  173. h2,
  174. h3,
  175. h4,
  176. h5,
  177. h6,
  178. a {
  179. color: $color__text-main;
  180. }
  181. }
  182. figcaption,
  183. .gallery-caption {
  184. font-family: $font__heading;
  185. font-size: $font__size-xs;
  186. line-height: 1.6;
  187. color: $color__text-light;
  188. }
  189. /** === Post Title === */
  190. .editor-post-title__block {
  191. margin-bottom: 0;
  192. font-size: $font__size_base;
  193. &:before {
  194. width: $font__size-xxl;
  195. margin-top: 0;
  196. margin-bottom: 0;
  197. margin-left: 1em;
  198. position: relative;
  199. top: 0.5em;
  200. }
  201. .editor-post-title__input {
  202. font-family: $font__heading;
  203. font-weight: 300;
  204. text-align: center;
  205. font-size: $font__size-lg;
  206. @include media(tablet) {
  207. font-size: $font__size-xxl;
  208. }
  209. }
  210. }
  211. /** === Default Appender === */
  212. .editor-default-block-appender .editor-default-block-appender__content {
  213. font-family: $font__body;
  214. font-size: $font__size_base;
  215. }
  216. /** === Heading === */
  217. .wp-block-heading {
  218. strong {
  219. font-weight: 700;
  220. }
  221. }
  222. /** === Paragraph === */
  223. .wp-block-paragraph {
  224. &.has-drop-cap:not(:focus)::first-letter {
  225. font-family: $font__heading;
  226. font-size: $font__size-xxxl;
  227. line-height: 1;
  228. font-weight: 700;
  229. margin: 0 0.25em 0 0;
  230. }
  231. }
  232. /** === Table === */
  233. .wp-block-table {
  234. font-family: $font__heading;
  235. }
  236. /** === Cover === */
  237. .wp-block-cover-image,
  238. .wp-block-cover {
  239. position: relative;
  240. min-height: 420px;
  241. padding: $size__spacing-unit;
  242. @include media(tablet) {
  243. min-height: 640px;
  244. padding: $size__spacing-unit 10%;
  245. }
  246. & + .wp-block-cover:not(.alignleft):not(.alignrights),
  247. & + .wp-block-cover-image:not(.alignleft):not(.alignrights) {
  248. margin-top: $size__vertical-spacing-unit;
  249. }
  250. .wp-block-cover__inner-container {
  251. color: #fff;
  252. max-width: 100%;
  253. padding-left: $size__spacing-unit;
  254. padding-right: $size__spacing-unit;
  255. text-shadow: 0 0 12px #000;
  256. strong {
  257. font-weight: 700;
  258. }
  259. a {
  260. color: inherit;
  261. }
  262. @include media(tablet) {
  263. max-width: 100%;
  264. }
  265. }
  266. h1,
  267. h2,
  268. h3,
  269. h4,
  270. h5,
  271. h6 {
  272. font-weight: 300;
  273. text-align: inherit;
  274. &.has-text-align-left {
  275. text-align: left;
  276. }
  277. &.has-text-align-center {
  278. text-align: center;
  279. }
  280. &.has-text-align-right {
  281. text-align: right;
  282. }
  283. }
  284. h1 {
  285. font-size: $font__size-xl;
  286. @include media(tablet) {
  287. font-size: $font__size-xxxl;
  288. }
  289. }
  290. .wp-block-cover-image-text,
  291. .wp-block-cover-text,
  292. h2 {
  293. font-size: $font__size-lg;
  294. margin-left: auto;
  295. margin-right: auto;
  296. max-width: 100%;
  297. padding: 0;
  298. @include media(tablet) {
  299. font-size: $font__size-xxl;
  300. }
  301. }
  302. h3 {
  303. font-size: $font__size-md;
  304. @include media(tablet) {
  305. font-size: $font__size-xl;
  306. }
  307. }
  308. h4 {
  309. font-size: $font__size_base;
  310. @include media(tablet) {
  311. font-size: $font__size-lg;
  312. }
  313. }
  314. h5 {
  315. font-size: $font__size-sm;
  316. @include media(tablet) {
  317. font-size: $font__size-md;
  318. }
  319. }
  320. h6 {
  321. font-size: $font__size-xs;
  322. @include media(tablet) {
  323. font-size: $font__size_base;
  324. }
  325. }
  326. }
  327. .wp-block[data-type="core/cover"][data-align="left"],
  328. .wp-block[data-type="core/cover"][data-align="right"] {
  329. .wp-block-cover__inner-container {
  330. width: calc(2 * (100vw / 12));
  331. }
  332. .wp-block-cover {
  333. width: 100%;
  334. max-width: 100%;
  335. padding: calc(1.375 * #{$size__spacing-unit});
  336. .wp-block-cover__inner-container {
  337. padding-left: 0;
  338. padding-right: 0;
  339. }
  340. @include media(tablet) {
  341. padding: calc(2.75 * #{$size__spacing-unit}) calc(2.75 * #{$size__spacing-unit}) calc(3.125 * #{$size__spacing-unit});
  342. }
  343. }
  344. }
  345. /* Media Text */
  346. .wp-block[data-type="core/media-text"] {
  347. @include media(tablet) {
  348. max-width: calc(6 * (100vw / 12) - 28px);
  349. margin-left: auto;
  350. margin-right: auto;
  351. &[data-align="wide"] {
  352. max-width: 100%;
  353. }
  354. }
  355. &:nth-child(odd) .wp-block-media-text {
  356. background-color: $color__background-media-text;
  357. color: $color__text-media;
  358. }
  359. &:nth-child(even) .wp-block-media-text {
  360. background-color: $color__background-media-text-alt;
  361. }
  362. @include media(tablet) {
  363. .editor-inner-blocks {
  364. padding-left: 0;
  365. }
  366. .has-media-on-the-right .editor-inner-blocks {
  367. padding-left: 60px;
  368. padding-right: 0
  369. }
  370. &[data-align="full"] {
  371. margin-left: 0;
  372. max-width: 125%;
  373. }
  374. &[data-align="full"] .has-media-on-the-right {
  375. margin-left: 0;
  376. margin-right: 0;
  377. }
  378. }
  379. }
  380. .wp-block-media-text {
  381. margin: 0;
  382. a,
  383. a:hover {
  384. color: inherit;
  385. }
  386. // Make sure the box handle is clickable.
  387. .components-resizable-box__handle {
  388. z-index: 3;
  389. }
  390. // Move the box handle to the 'true' center.
  391. .components-resizable-box__handle-right {
  392. right: calc((12px - 30px) * -1);
  393. }
  394. // Move the box handle to the 'true' center.
  395. .components-resizable-box__handle-left {
  396. left: calc((12px - 30px) * -1);
  397. }
  398. @include media(tablet) {
  399. padding: 60px 0;
  400. .block-library-media-text__media-container {
  401. margin-left: -60px;
  402. margin-right: 60px;
  403. max-width: calc( 100% );
  404. }
  405. .editor-inner-blocks {
  406. padding: 0 60px;
  407. }
  408. &.has-media-on-the-right .block-library-media-text__media-container {
  409. margin-right: -60px;
  410. margin-left: 60px;
  411. }
  412. &.has-media-on-the-right .editor-inner-blocks {
  413. padding-right: 0;
  414. }
  415. }
  416. }
  417. [data-type="core/media-text"] + [data-type="core/media-text"] {
  418. margin-top: -32px;
  419. }
  420. /** === Gallery === */
  421. .wp-block-gallery {
  422. .blocks-gallery-image figcaption,
  423. .blocks-gallery-item figcaption,
  424. .gallery-item .gallery-caption {
  425. font-size: $font__size-xs;
  426. line-height: 1.6;
  427. }
  428. }
  429. /** === Button === */
  430. .wp-block-button {
  431. .wp-block-button__link {
  432. line-height: 1.8;
  433. font-family: $font__heading;
  434. font-size: $font__size-sm;
  435. font-weight: 700;
  436. }
  437. &:not(.is-style-outline) .wp-block-button__link {
  438. background: $color__background-button;
  439. }
  440. &:not(.is-style-squared) .wp-block-button__link {
  441. border-radius: 5px;
  442. }
  443. &.is-style-outline,
  444. &.is-style-outline:hover,
  445. &.is-style-outline:focus,
  446. &.is-style-outline:active {
  447. background: transparent;
  448. color: $color__background-button;
  449. .wp-block-button__link {
  450. background: transparent;
  451. &:not(.has-text-color) {
  452. color: $color__background-button;
  453. }
  454. }
  455. }
  456. }
  457. /** === Blockquote === */
  458. .wp-block-quote {
  459. &:not(.is-large):not(.is-style-large) {
  460. border-color: $color__link;
  461. border-width: 2px;
  462. }
  463. &.is-large,
  464. &.is-style-large {
  465. margin-top: $font__size-xxl;
  466. margin-bottom: $font__size-xxl;
  467. }
  468. &.is-large p,
  469. &.is-style-large p {
  470. font-size: $font__size-lg;
  471. line-height: 1.3;
  472. margin-bottom: 0.5em;
  473. margin-top: 0.5em;
  474. }
  475. cite,
  476. footer,
  477. .wp-block-quote__citation {
  478. font-family: $font__heading;
  479. font-size: $font__size-xs;
  480. line-height: 1.6;
  481. color: $color__text-light;
  482. }
  483. }
  484. /** === Pullquote === */
  485. .wp-block-pullquote {
  486. border-color: transparent;
  487. border-width: 2px;
  488. color: #000;
  489. blockquote {
  490. margin-top: calc(3 * #{ $size__spacing-unit});
  491. margin-bottom: calc(3.33 * #{ $size__spacing-unit});
  492. hyphens: auto;
  493. word-break: break-word;
  494. }
  495. &:not(.is-style-solid-color) .wp-block-pullquote__citation {
  496. color: $color__text-light;
  497. }
  498. &.is-style-solid-color {
  499. blockquote {
  500. width: calc(100% - (2 * #{ $size__spacing-unit}));
  501. max-width: calc( 100% - (2 * #{ $size__spacing-unit}));
  502. a,
  503. &.has-text-color p,
  504. &.has-text-color a {
  505. color: inherit;
  506. }
  507. &:not(.has-text-color) {
  508. color: $color__background-body;
  509. }
  510. @include media(tablet) {
  511. max-width: 80%;
  512. }
  513. }
  514. &:not(.has-background-color) {
  515. background-color: $color__link;
  516. }
  517. }
  518. }
  519. .wp-block[data-type="core/pullquote"],
  520. .wp-block[data-type="core/pullquote"][data-align="left"],
  521. .wp-block[data-type="core/pullquote"][data-align="right"] {
  522. blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  523. blockquote > .editor-rich-text p,
  524. p {
  525. font-size: $font__size-lg;
  526. font-style: italic;
  527. line-height: 1.3;
  528. margin-bottom: 0.5em;
  529. margin-top: 0.5em;
  530. @include media(tablet) {
  531. font-size: $font__size-xl;
  532. }
  533. }
  534. .wp-block-pullquote__citation {
  535. font-family: $font__heading;
  536. font-size: $font__size-xs;
  537. line-height: 1.6;
  538. text-transform: none;
  539. }
  540. em {
  541. font-style: normal;
  542. }
  543. }
  544. .wp-block[data-type="core/pullquote"][data-align="left"],
  545. .wp-block[data-type="core/pullquote"][data-align="right"] {
  546. .editor-block-list__block-edit {
  547. width: calc(4 * (100vw / 12));
  548. max-width: 50%;
  549. .wp-block-pullquote:not(.is-style-solid-color) {
  550. padding: 0;
  551. }
  552. .wp-block-pullquote.is-style-solid-color {
  553. padding: 1em;
  554. }
  555. }
  556. blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  557. blockquote > .editor-rich-text p,
  558. p,
  559. .wp-block-pullquote__citation {
  560. text-align: left;
  561. }
  562. }
  563. .wp-block[data-type="core/pullquote"][data-align="full"] {
  564. @include media(tablet) {
  565. .wp-block-pullquote blockquote {
  566. max-width: calc(80% - 128px);
  567. }
  568. }
  569. }
  570. /** === File === */
  571. .wp-block-file {
  572. font-family: $font__heading;
  573. .wp-block-file__textlink {
  574. text-decoration: underline;
  575. color: $color__link;
  576. &:hover {
  577. color: $color__link-hover;
  578. text-decoration: none;
  579. }
  580. }
  581. .wp-block-file__button {
  582. display: table;
  583. line-height: 1.8;
  584. font-size: $font__size-sm;
  585. font-weight: 700;
  586. background-color: $color__link;
  587. border-radius: 5px;
  588. }
  589. .wp-block-file__button-richtext-wrapper {
  590. display: block;
  591. margin-top: calc(0.75 * #{$size__spacing-unit});
  592. margin-left: 0;
  593. }
  594. }
  595. /** === Verse === */
  596. .wp-block-verse,
  597. .wp-block-verse pre {
  598. padding: 0;
  599. }
  600. /** === Code === */
  601. .wp-block-code {
  602. border-radius: 0;
  603. }
  604. /** === Table === */
  605. .wp-block-table {
  606. td, th {
  607. border-color: $color__text-light;
  608. }
  609. }
  610. /** === Separator === */
  611. .wp-block-separator {
  612. background-color: $color__text-light;
  613. border: 0;
  614. height: 1px;
  615. max-width: 5em;
  616. text-align: left;
  617. &.is-style-wide {
  618. max-width: 100%;
  619. }
  620. &.is-style-dots {
  621. max-width: 100%;
  622. background-color: inherit;
  623. border: inherit;
  624. height: inherit;
  625. text-align: center;
  626. &:before {
  627. color: $color__text-light;
  628. font-size: $font__size-lg;
  629. }
  630. }
  631. }
  632. /* Remove duplicate rule-line when a separator
  633. * is followed by an H1, or H2 */
  634. .wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
  635. .wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
  636. display: none;
  637. }
  638. /** === Latest Posts, Archives, Categories === */
  639. ul.wp-block-archives,
  640. .wp-block-categories,
  641. .wp-block-latest-posts {
  642. padding: 0;
  643. list-style-type: none;
  644. ul {
  645. padding: 0;
  646. list-style-type: none;
  647. }
  648. li {
  649. color: $color__text-light;
  650. font-family: $font__heading;
  651. font-size: calc(#{$font__size_base} * #{$font__size-ratio});
  652. font-weight: 700;
  653. line-height: $font__line-height-heading;
  654. padding-bottom: ( .75 * $size__spacing-unit );
  655. &.menu-item-has-children,
  656. &:last-child {
  657. padding-bottom: 0;
  658. }
  659. a {
  660. text-decoration: none;
  661. }
  662. ul {
  663. padding-left: $size__spacing-unit;
  664. }
  665. }
  666. }
  667. .wp-block-categories {
  668. ul {
  669. padding-top: ( .75 * $size__spacing-unit );
  670. @include nestedSubMenuPadding();
  671. }
  672. li ul {
  673. list-style: none;
  674. padding-left: 0;
  675. margin-bottom: ( -.75 * $size__spacing-unit );
  676. }
  677. }
  678. /** === Latest Posts grid view === */
  679. .wp-block-latest-posts.is-grid {
  680. li {
  681. border-top: 2px solid $color__border;
  682. padding-top: (1 * $size__spacing-unit);
  683. margin-bottom: (2 * $size__spacing-unit);
  684. a {
  685. &:after {
  686. content: '';
  687. }
  688. }
  689. &:last-child {
  690. margin-bottom: auto;
  691. a:after {
  692. content: '';
  693. }
  694. }
  695. }
  696. }
  697. /** === Latest Comments === */
  698. .wp-block-latest-comments {
  699. .wp-block-latest-comments__comment-meta {
  700. font-family: $font__heading;
  701. font-weight: 700;
  702. .wp-block-latest-comments__comment-date {
  703. font-weight: 300;
  704. }
  705. }
  706. .wp-block-latest-comments__comment,
  707. .wp-block-latest-comments__comment-date,
  708. .wp-block-latest-comments__comment-excerpt p {
  709. font-size: inherit;
  710. }
  711. .wp-block-latest-comments__comment-date {
  712. font-size: $font__size-xs;
  713. }
  714. }
  715. /** === Classic Editor === */
  716. /* Properly center-align captions in the classic-editor block */
  717. .wp-caption {
  718. dd {
  719. color: $color__text-light;
  720. font-size: $font__size-xs;
  721. font-family: $font__heading;
  722. line-height: $font__line-height-pre;
  723. margin: 0;
  724. padding: ( $size__spacing-unit * .5 );
  725. text-align: left;
  726. text-align: center;
  727. -webkit-margin-start: 0px;
  728. margin-inline-start: 0px;
  729. }
  730. }
  731. .wp-block-freeform {
  732. /* Add style for galleries in classic-editor block */
  733. blockquote {
  734. border-left: 2px solid $color__link;
  735. cite {
  736. font-family: $font__heading;
  737. font-size: $font__size-xs;
  738. font-style: normal;
  739. line-height: 1.6;
  740. color: $color__text-light;
  741. }
  742. }
  743. }
  744. /* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
  745. .wp-block[data-type="core/freeform"] .mce-btn i {
  746. font-family: dashicons !important;
  747. }
  748. /** === Mailchimp Block - Temp Fix === */
  749. .wp-block-jetpack-mailchimp {
  750. p {
  751. font-size: $font__size-xs;
  752. }
  753. }
  754. /** === Business Hours Block - Temp Fix === */
  755. .wp-block-jetpack-business-hours {
  756. dt,
  757. dd {
  758. float: left;
  759. }
  760. dt {
  761. clear: both;
  762. font-weight: bold;
  763. margin-right: ( $size__spacing-unit * .5 );
  764. }
  765. dd {
  766. margin: 0;
  767. }
  768. }