style.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. /*
  2. Theme Name: Lineup
  3. Theme URI: https://wordpress.com/theme/lineup/
  4. Author: Automattic
  5. Author URI: https://automattic.com
  6. Description: Lineup is a fanzine inspired theme lists entries with a bold typography and colour.
  7. Requires at least: 5.8
  8. Tested up to: 6.3
  9. Requires PHP: 5.7
  10. Version: 1.0.4
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Template:
  14. Text Domain: lineup
  15. Tags: blog, one-column, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, threaded-comments, translation-ready
  16. */
  17. /*
  18. * Control the hover stylings of outline block style.
  19. * Unnecessary once block styles are configurable via theme.json
  20. * https://github.com/WordPress/gutenberg/issues/42794
  21. */
  22. .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
  23. background-color: var(--wp--preset--color--secondary);
  24. color: var(--wp--preset--color--base);
  25. border-color: var(--wp--preset--color--secondary);
  26. }
  27. /**
  28. * Currently table styles are only available with 'wp-block-styles'
  29. * theme support (block css) thus the following needs to be included
  30. * since 'wp-block-styles' aren't used for this theme.
  31. * https://github.com/WordPress/gutenberg/issues/45065
  32. */
  33. .wp-block-table thead {
  34. border-bottom: 3px solid;
  35. }
  36. .wp-block-table tfoot {
  37. border-top: 3px solid;
  38. }
  39. .wp-block-table td,
  40. .wp-block-table th {
  41. border: 1px solid;
  42. padding: var(--wp--preset--spacing--30);
  43. word-break: normal;
  44. }
  45. .wp-block-table figcaption {
  46. font-size: var(--wp--preset--font-size--small);
  47. text-align: center;
  48. }
  49. /*
  50. * Link styles
  51. * https://github.com/WordPress/gutenberg/issues/42319
  52. */
  53. a {
  54. text-decoration-thickness: .0625em !important;
  55. text-underline-offset: .15em;
  56. }
  57. /*
  58. * Form field styles
  59. * https://github.com/WordPress/gutenberg/issues/42319
  60. */
  61. ::placeholder {
  62. color: var(--wp--preset--color--contrast);
  63. opacity: 1; /* Firefox */
  64. }
  65. input:not([type="submit"]):not([type="checkbox"]),
  66. textarea,
  67. .wp-block-post-comments-form input:not([type=submit]),
  68. .wp-block-post-comments-form textarea {
  69. background-color: var(--wp--preset--color--base);
  70. border-color: var(--wp--preset--color--contrast);
  71. color: var(--wp--preset--color--contrast);
  72. }
  73. input:not([type="submit"]):not([type="checkbox"]):focus,
  74. textarea:focus {
  75. outline-style: solid;
  76. outline-color: var(--wp--preset--color--contrast);
  77. }
  78. /* Search button inside style */
  79. :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
  80. border-color: var(--wp--preset--color--contrast);
  81. }
  82. .wp-block-search__button-inside .wp-block-search__inside-wrapper {
  83. padding: 0px;
  84. }
  85. /* Reset browser default margins for blockquote element */
  86. .wp-block-pullquote blockquote {
  87. margin: 0;
  88. }
  89. /* Adjust the font size of the comment reply title in the post comments form */
  90. .wp-block-post-comments-form .comment-reply-title {
  91. font-size: var(--wp--preset--font-size--medium);
  92. }
  93. /* Remove the bottom margin from the submit button in the post comments form */
  94. .wp-block-post-comments-form .form-submit {
  95. margin-bottom: 0;
  96. }
  97. /* The navigation is the full-width in this theme */
  98. .wp-block-navigation__responsive-close {
  99. max-width: none;
  100. }
  101. /* Remove the top padding for submenu items */
  102. .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  103. padding-top: 0;
  104. }
  105. .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
  106. color: var(--wp--preset--color--secondary);
  107. }
  108. .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  109. border-color: var(--wp--preset--color--contrast);
  110. }
  111. /* Override the Gutenberg style to theme style */
  112. .wp-block-post-author__byline,
  113. .wp-block-post-author__bio {
  114. font-size: inherit;
  115. }
  116. /* Round the avatar and reset the vertical alignment */
  117. .wp-block-post-author__avatar img {
  118. vertical-align: middle;
  119. }
  120. /* There is no way to remove the bottom margin */
  121. .wp-block-query-pagination>.wp-block-query-pagination-next:last-child,
  122. .wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,
  123. .wp-block-query-pagination>.wp-block-query-pagination-previous:last-child {
  124. margin-bottom: 0;
  125. }
  126. /* Style tag cloud outline style */
  127. .wp-block-tag-cloud.is-style-outline a {
  128. border-color: var(--wp--preset--color--tertiary);
  129. padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  130. }
  131. /* Remove the default margin from author bio */
  132. .wp-block-post-author__bio {
  133. margin: 0;
  134. }
  135. /* Remove the default margin from term description. */
  136. .wp-block-term-description p:first-child {
  137. margin-top: 0;
  138. }
  139. .wp-block-term-description p:last-child {
  140. margin-bottom: 0;
  141. }
  142. /* Normalise font sizes for the latest comments and latest posts widgets */
  143. .wp-block-latest-comments__comment-excerpt p,
  144. .wp-block-latest-comments__comment-date,
  145. .wp-block-latest-posts__post-author,
  146. .wp-block-latest-posts__post-date {
  147. font-size: inherit;
  148. }
  149. /* Adjust colours in the Calendar widget */
  150. .wp-block-calendar table:where(:not(.has-text-color)) {
  151. color: var(--wp--preset--color--contrast);
  152. }
  153. .wp-block-calendar table:where(:not(.has-text-color)) td, .wp-block-calendar table:where(:not(.has-text-color)) th {
  154. border-color: var(--wp--preset--color--contrast);
  155. }
  156. :where(.wp-block-calendar table:not(.has-background) th) {
  157. background-color: var(--wp--preset--color--contrast);
  158. color: var(--wp--preset--color--base);
  159. }
  160. /* Fix border radius setting for the avatar block */
  161. .wp-block-avatar a,
  162. .wp-block-avatar img {
  163. border-radius: inherit;
  164. vertical-align: middle;
  165. }
  166. /* Fix line height for various fields */
  167. .wp-block-search__input,
  168. .wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]),
  169. .wp-block-post-comments-form .comment-form textarea {
  170. line-height: inherit;
  171. }
  172. /* Needed to style input field for various Jetpack blocks */
  173. .wp-block-jetpack-contact-form input:not([type="submit"]):not([type="checkbox"]),
  174. .wp-block-jetpack-contact-form select,
  175. .wp-block-jetpack-contact-form textarea,
  176. .wp-block-jetpack-mailchimp input:not([type="submit"]):not([type="checkbox"]),
  177. .wp-block-jetpack-revue input:not([type="submit"]):not([type="checkbox"]) {
  178. font-size: inherit;
  179. line-height: inherit;
  180. padding: 1rem;
  181. }
  182. div[id^="contact-form-"] .contact-form label {
  183. font-weight: 400;
  184. }
  185. .wp-block-jetpack-contact-form.contact-form label span {
  186. color: var(--wp--preset--color--tertiary);
  187. }
  188. .wp-block-jetpack-contact-form.contact-form select {
  189. padding: 0.5rem;
  190. }
  191. div[id^="contact-form-"] h4 {
  192. font-size: var(--wp--preset--font-size--medium);
  193. font-weight: inherit;
  194. line-height: 1.172136638;
  195. }
  196. div[id^="contact-form-"] .contact-form-submission {
  197. margin: 0;
  198. padding: 0;
  199. }
  200. .wp-block-jetpack-mailchimp .wp-block-jetpack-button,
  201. .wp-block-jetpack-mailchimp p {
  202. margin-top: 0;
  203. margin-bottom: 0;
  204. }
  205. .wp-block-jetpack-mailchimp_consent-text,
  206. .wp-block-jetpack-mailchimp p {
  207. font-size: var(--wp--preset--font-size--small);
  208. }
  209. /*
  210. * Special CSS for this theme.
  211. */
  212. /* This stops the element go over multiple lines. We can't do this with the editor yet. */
  213. .nowrap {
  214. overflow: hidden;
  215. white-space: nowrap;
  216. }