Нема описа

style-editor.scss 18KB

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