style.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. Theme Name: SND
  3. Theme URI: https://wordpress.com/themes/snd
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: A minimal newsletter theme.
  7. Requires at least: 5.8
  8. Tested up to: 6.2
  9. Requires PHP: 5.7
  10. Version: 1.0.2
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: snd
  14. Tags: blog, one-column, wide-blocks, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready
  15. *//*
  16. * Control the hover stylings of outline block style.
  17. * Unnecessary once block styles are configurable via theme.json
  18. * https://github.com/WordPress/gutenberg/issues/42794
  19. */
  20. .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
  21. background-color: var(--wp--preset--color--secondary);
  22. color: var(--wp--preset--color--background);
  23. border-color: var(--wp--preset--color--secondary);
  24. }
  25. /**
  26. * Currently table styles are only available with 'wp-block-styles'
  27. * theme support (block css) thus the following needs to be included
  28. * since 'wp-block-styles' aren't used for this theme.
  29. * https://github.com/WordPress/gutenberg/issues/45065
  30. */
  31. .wp-block-table thead {
  32. border-bottom: 3px solid;
  33. }
  34. .wp-block-table tfoot {
  35. border-top: 3px solid;
  36. }
  37. .wp-block-table td,
  38. .wp-block-table th {
  39. padding: var(--wp--preset--spacing--30);
  40. border: 1px solid;
  41. word-break: normal;
  42. }
  43. .wp-block-table figcaption {
  44. font-size: var(--wp--preset--font-size--small);
  45. margin-top: var(--wp--preset--spacing--30);
  46. text-align: center;
  47. }
  48. /*
  49. * Link styles
  50. * https://github.com/WordPress/gutenberg/issues/42319
  51. */
  52. a {
  53. text-decoration-color: var(--wp--preset--color--primary);
  54. text-decoration-thickness: .5px !important;
  55. text-underline-offset: .1em;
  56. }
  57. /* Styles for outline button */
  58. .wp-block-button.is-style-outline>.wp-block-button__link {
  59. border: 1px solid var(--wp--preset--color--foreground);
  60. padding: calc(8px - 1px) calc(32px - 1px);
  61. }
  62. /*
  63. * Styles for search block
  64. * https://github.com/WordPress/gutenberg/issues/49249
  65. */
  66. .wp-block-search__button-inside .wp-block-search__inside-wrapper {
  67. border-radius: 999px;
  68. padding: 9px;
  69. }
  70. .wp-block-search__input,
  71. .wp-block-search__button-inside .wp-block-search__inside-wrapper {
  72. border-color: var(--wp--preset--color--tertiary);
  73. }
  74. /* Adjust comment reply title */
  75. .wp-block-post-comments-form .comment-reply-title {
  76. font-size: var(--wp--preset--font-size--large);
  77. color: var(--wp--preset--color--secondary);
  78. }
  79. .wp-block-post-comments-form h3 {
  80. color: var(--wp--preset--color--secondary);
  81. }
  82. /* Adjust the top padding for the submenu items */
  83. .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  84. padding-top: var(--wp--preset--spacing--30);
  85. }
  86. /*
  87. * Styles for Author blocks
  88. * https://github.com/WordPress/gutenberg/issues/24952
  89. */
  90. .wp-block-post-author__avatar img,
  91. .wp-block-avatar img {
  92. border-radius: 999px;
  93. line-height: 0;
  94. }
  95. .wp-block-post-author__byline,
  96. .wp-block-post-author__bio {
  97. font-size: inherit;
  98. }
  99. /*
  100. * Style for tag cloud
  101. * https://github.com/WordPress/gutenberg/issues/49249
  102. */
  103. .wp-block-tag-cloud.is-style-outline a {
  104. border-radius: 999px;
  105. padding: 0 0.5rem;
  106. }
  107. .wp-block-tag-cloud.is-style-outline a:hover {
  108. color: var(--wp--preset--color--background);
  109. background-color: var(--wp--preset--color--primary);
  110. }
  111. /* Keep the post date single line on the front page */
  112. .nowrap time {
  113. white-space: nowrap;
  114. }