style.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /*
  2. Theme Name: Remote
  3. Theme URI: https://wordpress.com/theme/remote
  4. Author: Automattic
  5. Author URI: https://automattic.com
  6. Description: Remote is a dark, minimal block theme ideal for bloggers. Its default styles - a sans-serif font and dark background - contribute for a comfortable, immersive reading experience. It features a set of bold block patterns such as a large posts list and bordered categories and tags.
  7. Requires at least: 6.0
  8. Tested up to: 6.0
  9. Requires PHP: 5.7
  10. Version: 1.0.5
  11. License: GNU General Public License v2 or later
  12. License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
  13. Text Domain: remote
  14. Tags: one-column, block-patterns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready, wide-blocks
  15. */
  16. /*
  17. * Font smoothing.
  18. */
  19. body {
  20. -moz-osx-font-smoothing: grayscale;
  21. -webkit-font-smoothing: antialiased;
  22. }
  23. /*
  24. * Text selection
  25. */
  26. ::selection {
  27. background: var(--wp--preset--color--tertiary);
  28. }
  29. /*
  30. * Links styles.
  31. */
  32. .wp-block-post-title a {
  33. text-decoration: none;
  34. }
  35. /*
  36. * Alignment styles, borrowed from Twenty Twenty-Two.
  37. * These rules are temporary, and should not be relied on or
  38. * modified too heavily by themes or plugins that build on
  39. * Twenty Twenty-Two. These are meant to be a precursor to
  40. * a global solution provided by the Block Editor.
  41. *
  42. * Relevant issues:
  43. * https://github.com/WordPress/gutenberg/issues/35607
  44. * https://github.com/WordPress/gutenberg/issues/35884
  45. */
  46. .wp-site-blocks,
  47. body > .is-root-container,
  48. .edit-post-visual-editor__post-title-wrapper,
  49. .wp-block-group.alignfull,
  50. .wp-block-group.has-background,
  51. .wp-block-columns.alignfull.has-background,
  52. .wp-block-cover.alignfull,
  53. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  54. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  55. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  56. padding-left: var(--wp--custom--spacing--outer);
  57. padding-right: var(--wp--custom--spacing--outer);
  58. }
  59. .wp-site-blocks .alignfull,
  60. .wp-site-blocks > .wp-block-group.has-background,
  61. .wp-site-blocks > .wp-block-cover,
  62. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  63. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  64. body > .is-root-container > .wp-block-cover,
  65. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  66. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  67. .is-root-container .wp-block[data-align='full'] {
  68. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  69. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  70. max-width: unset;
  71. width: unset;
  72. }
  73. /* Blocks inside columns don't have negative margins. */
  74. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  75. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  76. /* We also want to avoid stacking negative margins. */
  77. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  78. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  79. margin-left: auto !important;
  80. margin-right: auto !important;
  81. width: inherit;
  82. }
  83. /*
  84. * Responsive menu container padding.
  85. * This ensures the responsive container inherits the same
  86. * spacing defined above. This behavior may be built into
  87. * the Block Editor in the future.
  88. */
  89. .wp-block-navigation__responsive-container.is-menu-open {
  90. padding-top: var(--wp--custom--spacing--outer);
  91. padding-bottom: var(--wp--custom--spacing--large);
  92. padding-right: var(--wp--custom--spacing--outer);
  93. padding-left: var(--wp--custom--spacing--outer);
  94. }
  95. /* Button styles */
  96. /*
  97. * Search block button styles
  98. * Necessary until the following issue is resolved in Gutenberg:
  99. * https://github.com/WordPress/gutenberg/issues/36444
  100. */
  101. .wp-block-search__button {
  102. border-radius: var(--wp--custom--button--border--radius);
  103. background-color: var(--wp--preset--color--primary);
  104. color: var(--wp--preset--color--background);
  105. border: 1px solid var(--wp--preset--color--primary);
  106. letter-spacing: .05rem;
  107. font-weight: var(--wp--custom--button--typography--font-weight, 400);
  108. }
  109. /*
  110. * Button hover styles.
  111. * Necessary until the following issue is resolved in Gutenberg:
  112. * https://github.com/WordPress/gutenberg/issues/27075
  113. */
  114. :is(
  115. .wp-block-search__button,
  116. .wp-block-button__link
  117. ){
  118. padding: calc(.667em + 2px) calc(1.333em + 2px)
  119. }
  120. :is(
  121. .wp-block-search__button,
  122. .wp-block-button__link
  123. ):is(
  124. :hover,
  125. :active,
  126. :focus
  127. ) {
  128. border: 1px solid var(--wp--custom--button--hover--border--color);
  129. background-color: var(--wp--custom--button--hover--color--background);
  130. color: var(--wp--custom--button--hover--color--text);
  131. cursor: pointer;
  132. }
  133. :is(
  134. .wp-block-search__button,
  135. .wp-block-button__link
  136. ):focus {
  137. outline: 1.5px dotted var(--wp--preset--color--foreground);
  138. outline-offset: 3px;
  139. }
  140. :is(
  141. .is-style-outline.wp-block-button,
  142. .is-style-outline.wp-block-button__link
  143. ) {
  144. color: var(--wp--preset--color--primary)
  145. }
  146. :is(
  147. .is-style-outline>.wp-block-button__link,
  148. .is-style-outline.wp-block-button__link
  149. ):not(.has-background):hover {
  150. color: var(--wp--custom--button--hover--color--background);
  151. background-color: var(--wp--custom--button--hover--color--text);
  152. }
  153. /*
  154. * Link Details
  155. */
  156. a {
  157. text-decoration-thickness: 0.075ex;
  158. text-underline-offset: 0.125em;
  159. text-decoration: underline;
  160. }
  161. .wp-block-site-title a {
  162. text-decoration: none;
  163. }
  164. a:not(
  165. .wp-block-search__button,
  166. .wp-block-button__link
  167. ):hover {
  168. color: var(--wp--preset--color--primary);
  169. text-decoration: none;
  170. }
  171. a:not(
  172. .wp-block-search__button,
  173. .wp-block-button__link,
  174. .wp-block-site-title a,
  175. .wp-block-post-title a
  176. ):active {
  177. color: var(--wp--preset--color--primary);
  178. text-decoration: underline;
  179. }
  180. a:not(
  181. .wp-block-search__button,
  182. .wp-block-button__link,
  183. .wp-block-site-title a,
  184. .wp-block-post-title a
  185. ):focus {
  186. color: var(--wp--preset--color--primary);
  187. outline: 1px dotted var(--wp--preset--color--primary);
  188. text-decoration: none;
  189. outline-offset: 3px;
  190. }
  191. /*
  192. * Comment form styles
  193. */
  194. .wp-block-post-comments .wp-element-button {
  195. font-family: inherit;
  196. }
  197. .wp-block-post-comments input:not([type=submit],[type=checkbox]),
  198. .wp-block-post-comments textarea,
  199. .wp-block-post-comments select {
  200. border-radius: min(var(--wp--custom--button--border--radius), 10px);
  201. background-color: var(--wp--preset--color--background);
  202. color: var(--wp--preset--color--foreground);
  203. border: 1px solid var(--wp--preset--color--foreground);
  204. }
  205. .wp-block-post-comments input[type=submit] {
  206. border: 1px solid var(--wp--preset--color--primary)
  207. }
  208. .wp-block-post-comments input[type=submit]:hover {
  209. border-color: var(--wp--custom--button--hover--border--color);
  210. }
  211. /*
  212. * Needed until https://github.com/WordPress/gutenberg/issues/34196 or something like it.
  213. */
  214. .wp-block-tag-cloud.is-style-outline a {
  215. border-radius: var(--wp--custom--button--border--radius);
  216. padding: .5rem 1.25rem;
  217. }
  218. .wp-block-tag-cloud.is-style-outline a:hover {
  219. color: var(--wp--preset--color--background);
  220. background-color: var(--wp--preset--color--primary);
  221. }
  222. /*
  223. * Need this because gutenberg sets default color to 555
  224. */
  225. :is(.wp-block-image, .wp-block-audio, .wp-block-video) figcaption {
  226. color: var(--wp--preset--color--foreground)
  227. }