_style.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .entry-content > .alignwide {
  2. &.wp-block-jetpack-gif,
  3. &.wp-block-jetpack-tiled-gallery {
  4. @extend %responsive-alignwide;
  5. }
  6. }
  7. .entry-content > .alignfull {
  8. &.wp-block-jetpack-gif,
  9. &.wp-block-jetpack-tiled-gallery {
  10. @extend %responsive-alignfull;
  11. }
  12. }
  13. /**
  14. * Subscription Form
  15. */
  16. .wp-block-jetpack-subscriptions form > * {
  17. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  18. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  19. @include media(mobile) {
  20. margin-top: map-deep-get($config-global, "spacing", "vertical");
  21. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  22. }
  23. &:first-child {
  24. margin-top: 0;
  25. }
  26. &:last-child {
  27. margin-bottom: 0;
  28. }
  29. }
  30. /**
  31. * Cookies & Consents Banner
  32. */
  33. body {
  34. .widget_eu_cookie_law_widget {
  35. background: transparent;
  36. bottom: 0;
  37. left: 0;
  38. padding: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  39. right: 0;
  40. &.widget.top {
  41. bottom: auto;
  42. top: 0;
  43. }
  44. #eu-cookie-law {
  45. background: map-deep-get($config-global, "color", "background", "default");
  46. border: 1px solid map-deep-get($config-global, "color", "border", "default");
  47. color: map-deep-get($config-global, "color", "foreground", "default");
  48. font-size: map-deep-get($config-global, "font", "size", "sm");
  49. line-height: inherit;
  50. padding: map-deep-get($config-global, "spacing", "unit");
  51. @media (max-width: 600px) {
  52. padding-bottom: #{4 * map-deep-get($config-global, "spacing", "horizontal") + map-deep-get($config-global, "spacing", "unit")};
  53. }
  54. &.negative {
  55. background: map-deep-get($config-global, "color", "foreground", "default");
  56. border-color: map-deep-get($config-global, "color", "foreground", "dark");
  57. color: map-deep-get($config-global, "color", "background", "default");
  58. input.accept {
  59. background: map-deep-get($config-global, "color", "background", "default");
  60. color: map-deep-get($config-global, "color", "foreground", "default");
  61. &:hover,
  62. &:focus,
  63. &.has-focus {
  64. background: map-deep-get($config-global, "color", "background", "dark");
  65. }
  66. }
  67. }
  68. input.accept {
  69. margin: 0;
  70. margin-left: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
  71. @extend %button-style;
  72. @media (max-width: 600px) {
  73. bottom: map-deep-get($config-global, "spacing", "unit");
  74. left: map-deep-get($config-global, "spacing", "unit");
  75. margin: 0;
  76. }
  77. }
  78. }
  79. }
  80. // Position of the widget when Admin Bar is present
  81. &.admin-bar .widget_eu_cookie_law_widget {
  82. &.widget.top {
  83. top: 32px;
  84. @media (max-width: 782px) {
  85. top: 46px;
  86. }
  87. }
  88. }
  89. }
  90. /**
  91. * Mailchimp Subscription Form
  92. */
  93. .wp-block-jetpack-mailchimp {
  94. p {
  95. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  96. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  97. @include media(mobile) {
  98. margin-top: map-deep-get($config-global, "spacing", "vertical");
  99. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  100. }
  101. &:first-child {
  102. margin-top: 0;
  103. }
  104. &:last-child {
  105. margin-bottom: 0;
  106. }
  107. }
  108. input[type="email"] {
  109. width: 100%;
  110. }
  111. }
  112. #wp-block-jetpack-mailchimp_consent-text {
  113. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  114. }
  115. /**
  116. * Business Hours
  117. */
  118. .jetpack-business-hours {
  119. dd {
  120. padding-left: 0;
  121. }
  122. }
  123. /**
  124. * Layout Grid
  125. */
  126. .wp-block-jetpack-layout-grid {
  127. .wp-block-jetpack-layout-grid-column {
  128. & > * {
  129. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  130. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  131. @include media(mobile) {
  132. margin-top: map-deep-get($config-global, "spacing", "vertical");
  133. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  134. }
  135. &:first-child {
  136. margin-top: 0;
  137. }
  138. &:last-child {
  139. margin-bottom: 0;
  140. }
  141. }
  142. }
  143. }
  144. /**
  145. * Map Block
  146. */
  147. .mapboxgl-popup-close-button {
  148. padding: 6px;
  149. }
  150. .wp-block-jetpack-map .mapboxgl-popup h3 {
  151. padding-top: 15px;
  152. }
  153. /**
  154. * Related Posts
  155. */
  156. .entry-content #jp-relatedposts {
  157. margin: 0 auto;
  158. }