style.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /*
  2. Theme Name: Masu
  3. Theme URI: https://wordpress.com/theme/masu/
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Masu is a blog theme inspired by a traditional square wooden box used to measure rice in Japan.
  7. Requires at least: 5.8
  8. Tested up to: 6.0
  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: masu
  15. Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks
  16. */
  17. /*
  18. * Font smoothing
  19. */
  20. body {
  21. -moz-osx-font-smoothing: grayscale;
  22. -webkit-font-smoothing: antialiased;
  23. }
  24. /*
  25. * Link Details
  26. */
  27. a {
  28. cursor: pointer;
  29. text-decoration-thickness: 1px;
  30. text-underline-offset: 0.3em;
  31. }
  32. a:hover:not(.wp-block-button__link),
  33. .wp-block-site-title a:hover,
  34. .wp-block-post-title a:hover,
  35. .wp-block-post-date a:hover {
  36. text-decoration-thickness: 1px;
  37. text-underline-offset: 0.3em;
  38. }
  39. a:active,
  40. .wp-block-site-title a:active,
  41. .wp-block-post-title a:active,
  42. .wp-block-post-date a:active {
  43. text-decoration: underline;
  44. text-decoration-style: solid;
  45. }
  46. /* Overrides the Gutenberg styles for the outline button */
  47. .wp-block-button.is-style-outline>.wp-block-button__link {
  48. padding: 0.9375rem 1.9375rem;
  49. border: 1px solid var(--wp--preset--color--foreground);
  50. }
  51. /*
  52. * Button hover styles.
  53. * Necessary until the following issue is resolved in Gutenberg:
  54. * https://github.com/WordPress/gutenberg/issues/27075
  55. */
  56. .wp-block-search__button:hover,
  57. .wp-block-file .wp-block-file__button:hover,
  58. .wp-block-button__link:hover {
  59. background-color: var(--wp--preset--color--foreground);
  60. }
  61. /*
  62. * Search and File Block button styles.
  63. * Necessary until the following issues are resolved in Gutenberg:
  64. * https://github.com/WordPress/gutenberg/issues/36444
  65. * https://github.com/WordPress/gutenberg/issues/27760
  66. */
  67. .wp-block-search__button,
  68. .wp-block-file .wp-block-file__button {
  69. background-color: var(--wp--preset--color--primary);
  70. border-color: var(--wp--preset--color--primary);
  71. border-radius: 0;
  72. border-width: 1px;
  73. color: var(--wp--preset--color--background);
  74. font-size: var(--wp--preset--typography--font-size--normal);
  75. padding: 0.9375rem 1rem;
  76. }
  77. /*
  78. * Comment Form Fields
  79. */
  80. .wp-block-post-comments input:not([type='submit']),
  81. .wp-block-post-comments textarea {
  82. border-color: var(--wp--custom--form--border--color);
  83. color: var(--wp--preset--color--foregound);
  84. }
  85. .wp-block-post-comments .comment-form-author label,
  86. .wp-block-post-comments .comment-form-comment label,
  87. .wp-block-post-comments .comment-form-email label,
  88. .wp-block-post-comments .comment-form-url label {
  89. font-weight: 600;
  90. margin-bottom: 0.25rem;
  91. }
  92. /*
  93. * Alignment styles, borrowed from Twenty Twenty-Two.
  94. * These rules are temporary, and should not be relied on or
  95. * modified too heavily by themes or plugins that build on
  96. * Twenty Twenty-Two. These are meant to be a precursor to
  97. * a global solution provided by the Block Editor.
  98. *
  99. * Relevant issues:
  100. * https://github.com/WordPress/gutenberg/issues/35607
  101. * https://github.com/WordPress/gutenberg/issues/35884
  102. */
  103. .wp-site-blocks,
  104. body > .is-root-container,
  105. .edit-post-visual-editor__post-title-wrapper,
  106. .wp-block-group.alignfull,
  107. .wp-block-group.has-background,
  108. .wp-block-columns.alignfull.has-background,
  109. .wp-block-cover.alignfull,
  110. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  111. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  112. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  113. padding-left: var(--wp--custom--gap--horizontal);
  114. padding-right: var(--wp--custom--gap--horizontal);
  115. }
  116. .wp-site-blocks .alignfull,
  117. .wp-site-blocks > .wp-block-group.has-background,
  118. .wp-site-blocks > .wp-block-cover,
  119. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  120. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  121. body > .is-root-container > .wp-block-cover,
  122. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  123. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  124. .is-root-container .wp-block[data-align='full'] {
  125. margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  126. margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  127. max-width: unset;
  128. width: unset;
  129. }
  130. /* Blocks inside columns don't have negative margins. */
  131. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  132. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  133. /* We also want to avoid stacking negative margins. */
  134. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  135. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  136. margin-left: auto !important;
  137. margin-right: auto !important;
  138. width: inherit;
  139. }
  140. /*
  141. * Responsive menu container padding.
  142. * This ensures the responsive container inherits the same
  143. * spacing defined above. This behavior may be built into
  144. * the Block Editor in the future.
  145. */
  146. .wp-block-navigation__responsive-container.is-menu-open {
  147. padding-top: 0;
  148. padding-right: var(--wp--custom--gap--horizontal);
  149. padding-bottom: 0;
  150. padding-left: var(--wp--custom--gap--horizontal);
  151. }
  152. /*
  153. * Place the close button in the same location as the open button.
  154. */
  155. .has-modal-open .is-menu-open .wp-block-navigation__responsive-dialog {
  156. padding-top: max(4vw, 32px);
  157. }
  158. .wp-block-navigation__responsive-container-close {
  159. top: max(4vw, 32px);
  160. }
  161. /*
  162. * Needed until https://github.com/WordPress/gutenberg/issues/37035 is fixed.
  163. */
  164. .wp-block-navigation__responsive-container.is-menu-open ul {
  165. font-size: var(--wp--preset--font-size--large) !important;
  166. gap: calc(var(--wp--style--block-gap) / 2) !important;
  167. }
  168. /*
  169. * Change the default background colour for submenu.
  170. */
  171. .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  172. background-color: var(--wp--preset--color--background);
  173. }
  174. /*
  175. * Add a border around the responsive navigation buttons.
  176. */
  177. .wp-block-navigation__responsive-container-open,
  178. .wp-block-navigation__responsive-container-close {
  179. border-color: var(--wp--preset--color--foreground);
  180. border-radius: 2px;
  181. border-style: solid;
  182. border-width: 1px;
  183. padding: 8px !important;
  184. }
  185. /*
  186. * Needed until https://github.com/WordPress/gutenberg/issues/34196 or something like it.
  187. */
  188. .wp-block-tag-cloud.is-style-outline a {
  189. border-radius: 200px;
  190. padding: 0 1rem;
  191. }
  192. .wp-block-tag-cloud.is-style-outline a:hover {
  193. color: var(--wp--preset--color--background);
  194. background-color: var(--wp--preset--color--primary);
  195. }
  196. /*
  197. * Remove the default margin bottom from term description and post excerpt.
  198. */
  199. .wp-block-term-description p:first-child,
  200. .wp-block-post-excerpt__excerpt {
  201. margin-top: 0;
  202. }
  203. .wp-block-term-description p:last-child,
  204. .wp-block-post-excerpt__excerpt {
  205. margin-bottom: 0;
  206. }
  207. /*
  208. * Override the line-height to honour the settings specified in theme.json for the blocks.
  209. */
  210. .wp-block-post-author__name,
  211. .wp-block-post-author__byline,
  212. .wp-block-post-author__bio,
  213. .wp-block-post-excerpt__excerpt {
  214. line-height: inherit;
  215. }
  216. .wp-block-post-author__byline,
  217. .wp-block-post-author__bio {
  218. font-size: inherit;
  219. }
  220. /*
  221. * Needed to style Jetpack Contact Form
  222. */
  223. .wp-block-jetpack-contact-form {
  224. font-size: var(--wp--preset--font-size--small);
  225. }
  226. .wp-block-jetpack-contact-form input:not([type=submit]):not([type=checkbox]),
  227. .wp-block-jetpack-contact-form select,
  228. .wp-block-jetpack-contact-form textarea {
  229. background-color: #fff;
  230. border: 1px solid var(--wp--custom--form--border--color);
  231. font-family: inherit;
  232. font-size: 1em;
  233. padding: calc(0.667em + 2px);
  234. }
  235. .wp-block-jetpack-contact-form .wp-block-jetpack-button button {
  236. border-width: 1px;
  237. font-size: var(--wp--preset--font-size--x-small);
  238. padding: 0.9375rem 1.9375rem;
  239. }
  240. .wp-block-jetpack-contact-form.contact-form label {
  241. font-weight: 600;
  242. margin-bottom: 0.25rem;
  243. }
  244. .wp-block-jetpack-contact-form.contact-form label span {
  245. opacity: 0.7;
  246. }
  247. .wp-block-jetpack-contact-form.contact-form select {
  248. padding: calc(0.667em + 1px);
  249. }
  250. .jetpack-option__input.jetpack-option__input.jetpack-option__input {
  251. margin-bottom: 0.25rem;
  252. }
  253. div[id^="contact-form-"] h3 {
  254. font-size: var(--wp--preset--font-size--normal);
  255. }
  256. .contact-form-submission {
  257. font-size: var(--wp--preset--font-size--small);
  258. margin: 0;
  259. padding: 0;
  260. }
  261. /*
  262. * Remove the default top margin from footer.
  263. */
  264. .site-footer-container {
  265. margin-top: auto;
  266. }