style-editor.scss 16 KB

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