No Description

blockquote.scss 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. blockquote {
  2. padding: 0;
  3. position: relative;
  4. margin: var(--global--spacing-vertical) 0 var(--global--spacing-vertical) var(--global--spacing-horizontal);
  5. > * {
  6. margin-top: var(--global--spacing-unit);
  7. margin-bottom: var(--global--spacing-unit);
  8. &:first-child {
  9. margin-top: 0;
  10. }
  11. &:last-child {
  12. margin-bottom: 0;
  13. }
  14. }
  15. p {
  16. letter-spacing: var(--heading--letter-spacing-h4);
  17. font-family: var(--quote--font-family);
  18. font-size: var(--quote--font-size);
  19. font-style: var(--quote--font-style);
  20. font-weight: var(--quote--font-weight);
  21. line-height: var(--quote--line-height);
  22. }
  23. cite,
  24. footer {
  25. font-weight: normal;
  26. color: var(--global--color-primary);
  27. font-size: var(--global--font-size-xs);
  28. letter-spacing: var(--global--letter-spacing);
  29. }
  30. &.alignleft,
  31. &.alignright {
  32. padding-left: inherit;
  33. p {
  34. font-size: var(--heading--font-size-h5);
  35. max-width: inherit;
  36. width: inherit;
  37. }
  38. cite,
  39. footer {
  40. font-size: var(--global--font-size-xs);
  41. letter-spacing: var(--global--letter-spacing);
  42. }
  43. }
  44. strong {
  45. font-weight: var(--quote--font-weight-strong);
  46. }
  47. &:before {
  48. content: "\201C";
  49. font-size: var(--quote--font-size);
  50. line-height: var(--quote--line-height);
  51. position: absolute;
  52. left: calc(-0.5 * var(--global--spacing-horizontal));
  53. }
  54. .wp-block-quote__citation,
  55. cite,
  56. footer {
  57. color: var(--global--color-primary);
  58. font-size: var(--global--font-size-xs);
  59. font-style: var(--quote--font-style-cite);
  60. }
  61. @include media(mobile-only) {
  62. padding-left: calc(0.5 * var(--global--spacing-horizontal));
  63. &:before {
  64. left: 0;
  65. }
  66. }
  67. }