Nenhuma Descrição

_blocks.scss 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  1. /* !Block styles */
  2. // Default block margin and alignment rules.
  3. // These are replicated inside of the Group block
  4. // so that child blocks in there appear the same way.
  5. .entry .entry-content > *,
  6. .entry .entry-summary > *,
  7. .entry .entry-summary > .wp-block-group > .wp-block-group__inner-container > *,
  8. .entry .entry-content > .wp-block-group > .wp-block-group__inner-container > * {
  9. margin: 32px 0;
  10. max-width: 100%;
  11. @include postContentMaxWidth();
  12. @include media(tablet) {
  13. margin: 32px 0;
  14. }
  15. &.alignwide {
  16. margin-left: auto;
  17. margin-right: auto;
  18. clear: both;
  19. @include media(tablet) {
  20. width: 100%;
  21. max-width: 100%;
  22. }
  23. }
  24. &.alignfull {
  25. position: relative;
  26. left: -#{$size__spacing-unit };
  27. width: calc( 100% + (2 * #{$size__spacing-unit}));
  28. max-width: calc( 100% + (2 * #{$size__spacing-unit}));
  29. clear: both;
  30. @include media(tablet) {
  31. margin-top: calc(2 * #{$size__spacing-unit});
  32. margin-bottom: calc(2 * #{$size__spacing-unit});
  33. left: calc( -12.5% - 75px );
  34. width: calc( 125% + 150px );
  35. max-width: calc( 125% + 150px );
  36. }
  37. }
  38. &.alignleft {
  39. /*rtl:ignore*/
  40. float: left;
  41. max-width: calc(5 * (100vw / 12));
  42. margin-top: 0;
  43. margin-left: 0;
  44. /*rtl:ignore*/
  45. margin-right: $size__spacing-unit;
  46. @include media(tablet) {
  47. max-width: calc(4 * (100vw / 12));
  48. /*rtl:ignore*/
  49. margin-right: calc(2 * #{$size__spacing-unit});
  50. }
  51. }
  52. &.alignright {
  53. /*rtl:ignore*/
  54. float: right;
  55. max-width: calc(5 * (100vw / 12));
  56. margin-top: 0;
  57. margin-right: 0;
  58. /*rtl:ignore*/
  59. margin-left: $size__spacing-unit;
  60. @include media(tablet) {
  61. max-width: calc(4 * (100vw / 12));
  62. margin-right: 0;
  63. /*rtl:ignore*/
  64. margin-left: calc(2 * #{$size__spacing-unit});
  65. }
  66. }
  67. &.aligncenter {
  68. margin-left: auto;
  69. margin-right: auto;
  70. @include postContentMaxWidth();
  71. @include media(tablet) {
  72. margin-left: 0;
  73. margin-right: 0;
  74. }
  75. }
  76. }
  77. .entry .entry-content > *,
  78. .entry .entry-summary > * {
  79. > *:first-child {
  80. margin-top: 0;
  81. }
  82. > *:last-child {
  83. margin-bottom: 0;
  84. }
  85. }
  86. /*
  87. * Unset nested content selector styles
  88. * - Prevents layout styles from cascading too deeply
  89. * - helps with plugin compatibility
  90. */
  91. .entry .entry-content,
  92. .entry .entry-summary {
  93. .entry-content,
  94. .entry-summary,
  95. .entry {
  96. margin: inherit;
  97. max-width: inherit;
  98. padding: inherit;
  99. @include media(tablet) {
  100. margin: inherit;
  101. max-width: inherit;
  102. padding: inherit;
  103. }
  104. }
  105. }
  106. .entry .entry-content {
  107. //! Paragraphs
  108. p.has-background {
  109. padding: 20px 30px;
  110. }
  111. //! Audio
  112. .wp-block-audio {
  113. width: 100%;
  114. audio {
  115. width: 100%;
  116. }
  117. &.alignleft audio,
  118. &.alignright audio {
  119. max-width: (0.33 * $mobile_width);
  120. @include media(tablet) {
  121. max-width: (0.5 * $tablet_width);
  122. }
  123. @include media(wide) {
  124. max-width: (0.33 * $desktop_width);
  125. }
  126. }
  127. }
  128. //! Video
  129. .wp-block-video {
  130. video {
  131. width: 100%;
  132. }
  133. }
  134. //! Button
  135. .wp-block-button {
  136. .wp-block-button__link {
  137. @include button-transition;
  138. border: none;
  139. font-size: $font__size-sm;
  140. @include font-family( $font__heading );
  141. line-height: $font__line-height-heading;
  142. box-sizing: border-box;
  143. font-weight: bold;
  144. text-decoration: none;
  145. padding: ($size__spacing-unit * .76) $size__spacing-unit;
  146. outline: none;
  147. outline: none;
  148. &:not(.has-background) {
  149. background-color: $color__background-button;
  150. }
  151. &:not(.has-text-color) {
  152. color: white;
  153. }
  154. &:hover {
  155. color: white;
  156. background: $color__background-button-hover;
  157. cursor: pointer;
  158. }
  159. &:focus {
  160. color: white;
  161. background: $color__background-button-hover;
  162. outline: thin dotted;
  163. outline-offset: -4px;
  164. }
  165. }
  166. &:not(.is-style-squared) .wp-block-button__link {
  167. border-radius: 5px;
  168. }
  169. &.is-style-outline .wp-block-button__link,
  170. &.is-style-outline .wp-block-button__link:focus,
  171. &.is-style-outline .wp-block-button__link:active {
  172. @include button-all-transition;
  173. border-width: 2px;
  174. border-style: solid;
  175. &:not(.has-background) {
  176. background: transparent;
  177. }
  178. &:not(.has-text-color) {
  179. color: $color__background-button;
  180. border-color: currentColor;
  181. }
  182. }
  183. &.is-style-outline .wp-block-button__link:hover {
  184. color: white;
  185. border-color: $color__background-button-hover;
  186. &:not(.has-background) {
  187. color: $color__background-button-hover;
  188. }
  189. }
  190. }
  191. //! Latest posts, categories, archives
  192. .wp-block-archives,
  193. .wp-block-categories,
  194. .wp-block-latest-posts {
  195. padding: 0;
  196. list-style: none;
  197. li > a {
  198. @include font-family( $font__heading );
  199. font-size: calc(#{$font__size_base} * #{$font__size-ratio});
  200. font-weight: bold;
  201. line-height: $font__line-height-heading;
  202. text-decoration: none;
  203. }
  204. }
  205. .wp-block-archives,
  206. .wp-block-categories {
  207. &.aligncenter {
  208. text-align: center;
  209. }
  210. }
  211. //! Latest categories
  212. .wp-block-categories {
  213. ul {
  214. padding-top: ( .75 * $size__spacing-unit );
  215. }
  216. li ul {
  217. list-style: none;
  218. padding-left: 0;
  219. }
  220. @include nestedSubMenuPadding();
  221. }
  222. //! Latest posts
  223. .wp-block-latest-posts {
  224. .wp-block-latest-posts__post-date {
  225. @include font-family( $font__heading );
  226. font-size: $font__size-xs;
  227. color: $color__text-light;
  228. line-height: 1.2;
  229. }
  230. .wp-block-latest-posts__post-full-content,
  231. .wp-block-latest-posts__post-excerpt {
  232. margin-top: $size__spacing-unit;
  233. margin-bottom: $size__spacing-unit;
  234. }
  235. li {
  236. padding-bottom: ( .5 * $size__spacing-unit );
  237. &.menu-item-has-children,
  238. &:last-child {
  239. padding-bottom: 0;
  240. }
  241. :not(:last-child) .wp-block-latest-posts__post-excerpt {
  242. padding-bottom: ( .5 * $size__spacing-unit );
  243. }
  244. }
  245. &.is-grid li {
  246. border-top: 2px solid $color__border;
  247. padding-top: (1 * $size__spacing-unit);
  248. margin-bottom: (2 * $size__spacing-unit);
  249. a {
  250. &:after {
  251. content: '';
  252. }
  253. }
  254. &:last-child {
  255. margin-bottom: auto;
  256. a:after {
  257. content: '';
  258. }
  259. }
  260. }
  261. }
  262. //! Latest preformatted text
  263. .wp-block-preformatted {
  264. font-size: $font__size-xs;
  265. line-height: 1.8;
  266. padding: $size__spacing-unit;
  267. }
  268. //! Verse
  269. .wp-block-verse {
  270. @include font-family( $font__body );
  271. font-size: $font__size_base;
  272. line-height: 1.8;
  273. }
  274. //! Paragraphs
  275. .has-drop-cap {
  276. &:not(:focus):first-letter {
  277. @include font-family( $font__heading );
  278. font-size: $font__size-xxxl;
  279. line-height: 1;
  280. font-weight: bold;
  281. margin: 0 0.25em 0 0;
  282. @-moz-document url-prefix() {
  283. & {
  284. margin-top: 0.2em;
  285. }
  286. }
  287. }
  288. }
  289. //! Pullquote
  290. .wp-block-pullquote {
  291. border-color: transparent;
  292. border-width: 2px;
  293. padding: $size__spacing-unit;
  294. blockquote {
  295. color: $color__text-main;
  296. border: none;
  297. margin-top: calc(4 * #{ $size__spacing-unit});
  298. margin-bottom: calc(4.33 * #{ $size__spacing-unit});
  299. margin-right: 0;
  300. padding-left: 0;
  301. }
  302. p {
  303. font-size: $font__size-lg;
  304. font-style: italic;
  305. line-height: 1.3;
  306. margin-bottom: 0.5em;
  307. margin-top: 0.5em;
  308. em {
  309. font-style: normal;
  310. }
  311. @include media(tablet) {
  312. font-size: $font__size-xl;
  313. }
  314. }
  315. cite {
  316. display: inline-block;
  317. @include font-family( $font__heading );
  318. line-height: 1.6;
  319. text-transform: none;
  320. color: $color__text-light;
  321. /*
  322. * This requires a rem-based font size calculation instead of our normal em-based one,
  323. * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
  324. */
  325. font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
  326. }
  327. &.alignleft,
  328. &.alignright {
  329. width: 100%;
  330. padding: 0;
  331. blockquote {
  332. margin: $size__spacing-unit 0;
  333. padding: 0;
  334. text-align: left;
  335. max-width: 100%;
  336. p:first-child {
  337. margin-top: 0;
  338. }
  339. }
  340. }
  341. &.is-style-solid-color {
  342. background-color: $color__link;
  343. padding-left: 0;
  344. padding-right: 0;
  345. @include media(tablet) {
  346. padding-left: 10%;
  347. padding-right: 10%;
  348. }
  349. p {
  350. font-size: $font__size-lg;
  351. line-height: 1.3;
  352. margin-bottom: 0.5em;
  353. margin-top: 0.5em;
  354. @include media(tablet) {
  355. font-size: $font__size-xl;
  356. }
  357. }
  358. a {
  359. color: $color__background-body;
  360. }
  361. cite {
  362. color: inherit;
  363. }
  364. blockquote {
  365. max-width: 100%;
  366. color: $color__background-body;
  367. padding-left: 0;
  368. margin-left: $size__spacing-unit;
  369. margin-right: $size__spacing-unit;
  370. &.has-text-color p,
  371. &.has-text-color a,
  372. &.has-primary-color,
  373. &.has-secondary-color,
  374. &.has-dark-gray-color,
  375. &.has-light-gray-color,
  376. &.has-white-color {
  377. color: inherit;
  378. }
  379. @include media(tablet) {
  380. margin-left: 0;
  381. margin-right: 0;
  382. }
  383. }
  384. &.alignright,
  385. &.alignleft {
  386. @include media(tablet) {
  387. padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
  388. }
  389. }
  390. &.alignfull {
  391. @include media(tablet) {
  392. padding-left: calc(10% + 58px + (2 * #{$size__spacing-unit}));
  393. padding-right: calc(10% + 58px + (2 * #{$size__spacing-unit}));
  394. }
  395. }
  396. }
  397. }
  398. //! Blockquote
  399. .wp-block-quote {
  400. &:not(.is-large),
  401. &:not(.is-style-large) {
  402. border-width: 2px;
  403. border-color: $color__link;
  404. padding-top: 0;
  405. padding-bottom: 0;
  406. }
  407. p {
  408. font-size: 1em;
  409. font-style: normal;
  410. line-height: 1.8;
  411. }
  412. cite {
  413. /*
  414. * This requires a rem-based font size calculation instead of our normal em-based one,
  415. * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
  416. */
  417. font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
  418. }
  419. &.is-large,
  420. &.is-style-large {
  421. margin: $size__spacing-unit 0;
  422. padding: 0;
  423. border-left: none;
  424. p {
  425. font-size: $font__size-lg;
  426. line-height: 1.4;
  427. font-style: italic;
  428. }
  429. cite,
  430. footer {
  431. /*
  432. * This requires a rem-based font size calculation instead of our normal em-based one,
  433. * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
  434. */
  435. font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
  436. }
  437. @include media(tablet) {
  438. margin: $size__spacing-unit 0;
  439. padding: $size__spacing-unit 0;
  440. p {
  441. font-size: $font__size-lg;
  442. }
  443. }
  444. }
  445. }
  446. //! Image
  447. .wp-block-image {
  448. max-width: 100%;
  449. img {
  450. display: block;
  451. }
  452. // If an image does not have a left/center/right alignment,
  453. // it's a direct child of .wp-block-img. If it has no other
  454. // alignment added, we want to make sure the image does not
  455. // extend beyond the width of the text column.
  456. &:not(.alignwide):not(.alignfull) > img {
  457. @include postContentMaxWidth();
  458. }
  459. .aligncenter {
  460. @include postContentMaxWidth();
  461. @include media(tablet) {
  462. margin: 0;
  463. width: $size__site-tablet-content;
  464. img {
  465. margin: 0 auto;
  466. }
  467. }
  468. @include media(desktop) {
  469. width: $size__site-desktop-content;
  470. img {
  471. margin: 0 auto;
  472. }
  473. }
  474. }
  475. &.alignfull img {
  476. width: 100vw;
  477. max-width: calc( 100% + (2 * #{$size__spacing-unit}));
  478. @include media(tablet) {
  479. max-width: calc( 125% + 150px );
  480. margin-left: auto;
  481. margin-right: auto;
  482. }
  483. }
  484. }
  485. //! Cover Image
  486. .wp-block-cover-image,
  487. .wp-block-cover {
  488. position: relative;
  489. min-height: 430px;
  490. padding: $size__spacing-unit;
  491. @include media(tablet) {
  492. padding: $size__spacing-unit 10%;
  493. }
  494. .wp-block-cover-image-text,
  495. .wp-block-cover-text,
  496. h2 {
  497. @include font-family( $font__heading );
  498. font-size: $font__size-lg;
  499. font-weight: bold;
  500. line-height: 1.25;
  501. padding: 0;
  502. color: #fff;
  503. @include media(tablet) {
  504. font-size: $font__size-xl;
  505. max-width: 100%;
  506. }
  507. }
  508. &.alignleft,
  509. &.alignright {
  510. width: 100%;
  511. @include media(tablet) {
  512. padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
  513. }
  514. }
  515. &.alignfull {
  516. .wp-block-cover-image-text,
  517. .wp-block-cover-text,
  518. h2 {
  519. @include postContentMaxWidth();
  520. }
  521. @include media(tablet) {
  522. padding-left: calc(10% + 58px + (2 * #{$size__spacing-unit}));
  523. padding-right: calc(10% + 58px + (2 * #{$size__spacing-unit}));
  524. .wp-block-cover-image-text,
  525. .wp-block-cover-text,
  526. h2 {
  527. padding: 0;
  528. }
  529. }
  530. }
  531. }
  532. //! Galleries
  533. .wp-block-gallery {
  534. list-style-type: none;
  535. padding-left: 0;
  536. .blocks-gallery-image:last-child,
  537. .blocks-gallery-item:last-child {
  538. margin-bottom: 16px;
  539. }
  540. figcaption a {
  541. color: #fff;
  542. }
  543. }
  544. //! Captions
  545. .wp-block-audio figcaption,
  546. .wp-block-video figcaption,
  547. .wp-block-image figcaption,
  548. .wp-block-gallery .blocks-gallery-image figcaption,
  549. .wp-block-gallery .blocks-gallery-item figcaption {
  550. font-size: $font__size-xs;
  551. @include font-family( $font__heading );
  552. line-height: $font__line-height-pre;
  553. margin: 0;
  554. padding: ( $size__spacing-unit * .5 );
  555. text-align: center;
  556. }
  557. //! Separator
  558. .wp-block-separator,
  559. hr {
  560. background-color: $color__text-light;
  561. border: 0;
  562. height: 2px;
  563. margin-bottom: (2 * $size__spacing-unit);
  564. margin-top: (2 * $size__spacing-unit);
  565. max-width: 2.25em;
  566. text-align: left;
  567. &:not(.wp-block-separator) {
  568. max-width: 100%;
  569. @include postContentMaxWidth();
  570. }
  571. &.is-style-wide {
  572. max-width: 100%;
  573. @include postContentMaxWidth();
  574. }
  575. &.is-style-dots {
  576. max-width: 100%;
  577. @include postContentMaxWidth();
  578. background-color: inherit;
  579. border: inherit;
  580. height: inherit;
  581. text-align: center;
  582. // Only apply the default dot color if there's no separator color specified.
  583. &:not(.has-text-color):not(.has-background) {
  584. color: $color__text-light;
  585. }
  586. &:before {
  587. font-size: $font__size-lg;
  588. letter-spacing: $font__size-sm;
  589. padding-left: $font__size-sm;
  590. }
  591. }
  592. /* Remove duplicate rule-line when a separator
  593. * is followed by an H1, or H2 */
  594. & + h1,
  595. & + h2 {
  596. &:before {
  597. display: none;
  598. }
  599. }
  600. }
  601. //! Twitter Embed
  602. .wp-block-embed-twitter {
  603. word-break: break-word;
  604. }
  605. //! Table
  606. .wp-block-table {
  607. th,
  608. td {
  609. border-color: $color__text-light;
  610. }
  611. }
  612. //! File
  613. .wp-block-file {
  614. @include font-family( $font__heading );
  615. .wp-block-file__button {
  616. display: table;
  617. @include button-transition;
  618. border: none;
  619. border-radius: 5px;
  620. background: $color__background-button;
  621. font-size: $font__size-base;
  622. @include font-family( $font__heading );
  623. line-height: $font__line-height-heading;
  624. text-decoration: none;
  625. font-weight: bold;
  626. padding: ($size__spacing-unit * .75) $size__spacing-unit;
  627. color: #fff;
  628. margin-left: 0;
  629. margin-top: calc(0.75 * #{$size__spacing-unit});
  630. @include media(desktop) {
  631. font-size: $font__size-base;
  632. padding: ($size__spacing-unit * .875) ($size__spacing-unit * 1.5);
  633. }
  634. &:hover {
  635. background: $color__background-button-hover;
  636. cursor: pointer;
  637. }
  638. &:focus {
  639. background: $color__background-button-hover;
  640. outline: thin dotted;
  641. outline-offset: -4px;
  642. }
  643. }
  644. }
  645. //! Code
  646. .wp-block-code {
  647. border-radius: 0;
  648. code {
  649. font-size: $font__size-md;
  650. white-space: pre-wrap;
  651. word-break: break-word;
  652. }
  653. }
  654. //! Columns
  655. .wp-block-columns {
  656. .wp-block-column > * {
  657. &:first-child {
  658. margin-top: 0;
  659. }
  660. &:last-child {
  661. margin-bottom: 0;
  662. }
  663. }
  664. // Ensure images do not expand beyond the column.
  665. .wp-block-image > img:not(.alignwide):not(.alignfull),
  666. .wp-block-image > figure {
  667. @include media(tablet) {
  668. max-width: 100%;
  669. }
  670. @include media(desktop) {
  671. max-width: 100%;
  672. }
  673. }
  674. @include media(tablet) {
  675. flex-wrap: nowrap;
  676. .wp-block-column:not(:first-child) {
  677. margin-left: 32px;
  678. }
  679. }
  680. }
  681. //! Group
  682. .wp-block-group {
  683. // When the Group block is standard/wide, we need to prevent full-aligned
  684. // child blocks from expanding out of their container.
  685. &:not(.alignfull) > .wp-block-group__inner-container > .alignfull,
  686. &:not(.alignfull) > .wp-block-group__inner-container > .wp-block-image > img {
  687. @include media(tablet) {
  688. left: 0;
  689. max-width: 100%;
  690. }
  691. }
  692. // The full-width Group block's inner container should mimic .entry-content styles.
  693. &.alignfull > .wp-block-group__inner-container {
  694. max-width: calc(100% - (2 * #{ $size__spacing-unit }));
  695. margin: 0 $size__spacing-unit;
  696. @include media(tablet) {
  697. max-width: 80%;
  698. margin: 0 10%;
  699. padding: 0 60px;
  700. }
  701. }
  702. // Group block with a colored background.
  703. &.has-background {
  704. padding: $size__spacing-unit;
  705. margin-top: 0;
  706. margin-bottom: 0;
  707. // Remove the top and bottom margins of inner blocks.
  708. .wp-block-group__inner-container {
  709. > *:first-child {
  710. margin-top: 0;
  711. }
  712. > *:last-child {
  713. margin-bottom: 0;
  714. }
  715. }
  716. // If the Group block is full-width, it does not need this extra padding.
  717. &.alignfull {
  718. padding-left: 0;
  719. padding-right: 0;
  720. @include media(tablet) {
  721. padding-top: $size__spacing-unit;
  722. padding-bottom: $size__spacing-unit;
  723. }
  724. }
  725. // Full-aligned child blocks should take up the maximum width available in their container.
  726. &:not(.alignfull) > .wp-block-group__inner-container > .alignfull {
  727. width: 100%;
  728. max-width: 100%;
  729. @include media(tablet) {
  730. width: calc( 100% + #{$size__spacing-unit * 2} );
  731. max-width: calc( 100% + #{$size__spacing-unit * 2} );
  732. margin-left: -#{$size__spacing-unit};
  733. }
  734. }
  735. }
  736. }
  737. //! Latest Comments
  738. .wp-block-latest-comments {
  739. .wp-block-latest-comments__comment-meta {
  740. @include font-family( $font__heading );
  741. font-weight: bold;
  742. .wp-block-latest-comments__comment-date {
  743. font-weight: normal;
  744. }
  745. }
  746. .wp-block-latest-comments__comment,
  747. .wp-block-latest-comments__comment-date,
  748. .wp-block-latest-comments__comment-excerpt p {
  749. font-size: inherit;
  750. }
  751. &.has-avatars {
  752. }
  753. &.has-dates {
  754. .wp-block-latest-comments__comment-date {
  755. font-size: $font__size-xs;
  756. }
  757. }
  758. &.has-excerpts {
  759. }
  760. }
  761. //! Font Sizes
  762. .has-small-font-size {
  763. font-size: $font__size-sm;
  764. }
  765. .has-normal-font-size {
  766. font-size: $font__size-md;
  767. }
  768. .has-large-font-size {
  769. font-size: $font__size-lg;
  770. }
  771. .has-huge-font-size {
  772. font-size: $font__size-xl;
  773. }
  774. //! Custom background colors
  775. .has-primary-background-color,
  776. .has-secondary-background-color,
  777. .has-dark-gray-background-color,
  778. .has-light-gray-background-color {
  779. // Use white text against these backgrounds by default.
  780. color: $color__background-body;
  781. > p,
  782. > h1,
  783. > h2,
  784. > h3,
  785. > h4,
  786. > h5,
  787. > h6,
  788. > a {
  789. color: $color__background-body;
  790. }
  791. }
  792. .has-white-background-color {
  793. color: $color__text-main;
  794. // Use dark gray text against this background by default.
  795. > p,
  796. > h1,
  797. > h2,
  798. > h3,
  799. > h4,
  800. > h5,
  801. > h6,
  802. > a {
  803. color: $color__text-main;
  804. }
  805. }
  806. .has-primary-background-color,
  807. .wp-block-pullquote.is-style-solid-color.has-primary-background-color {
  808. background-color: $color__link;
  809. }
  810. .has-secondary-background-color,
  811. .wp-block-pullquote.is-style-solid-color.has-secondary-background-color {
  812. background-color: $color__border-link-hover;
  813. }
  814. .has-dark-gray-background-color,
  815. .wp-block-pullquote.is-style-solid-color.has-dark-gray-background-color {
  816. background-color: $color__text-main;
  817. }
  818. .has-light-gray-background-color,
  819. .wp-block-pullquote.is-style-solid-color.has-light-gray-background-color {
  820. background-color: $color__text-light;
  821. }
  822. .has-white-background-color,
  823. .wp-block-pullquote.is-style-solid-color.has-white-background-color {
  824. background-color: #FFF;
  825. }
  826. //! Custom foreground colors
  827. .has-primary-color,
  828. .wp-block-pullquote blockquote.has-primary-color,
  829. .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color,
  830. .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color > p {
  831. color: $color__link;
  832. }
  833. .has-secondary-color,
  834. .wp-block-pullquote blockquote.has-secondary-color,
  835. .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color,
  836. .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color > p {
  837. color: $color__border-link-hover;
  838. }
  839. .has-dark-gray-color,
  840. .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color,
  841. .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color > p {
  842. color: $color__text-main;
  843. }
  844. .has-light-gray-color,
  845. .wp-block-pullquote blockquote.has-light-gray-color,
  846. .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color,
  847. .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color > p {
  848. color: $color__text-light;
  849. }
  850. .has-white-color,
  851. .wp-block-pullquote blockquote.has-white-color,
  852. .wp-block-pullquote.is-style-solid-color blockquote.has-white-color {
  853. color: #FFF;
  854. }
  855. }