style.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /*
  2. Theme Name: Assembler
  3. Theme URI: https://wordpress.com/theme/assembler
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Assemble something beautiful.
  7. Requires at least: 6.4
  8. Tested up to: 6.4
  9. Requires PHP: 7.0
  10. Version: 0.0.16
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: assembler
  14. Tags: blog, one-column, three-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready
  15. */
  16. /* Progresive enhancement to reduce widows and orphans. */
  17. h1,
  18. h2,
  19. h3,
  20. h4,
  21. h5,
  22. h6,
  23. blockquote {
  24. text-wrap: balance;
  25. }
  26. p {
  27. text-wrap: pretty;
  28. }
  29. /* Tiny tweak to make sure footers are properly spaced. */
  30. footer {
  31. margin-top: 0 !important;
  32. }
  33. /* Provide better default color for social links */
  34. .wp-block-social-links.is-style-logos-only li.wp-social-link {
  35. color: currentcolor;
  36. }
  37. .wp-block-social-links.is-style-logos-only .wp-social-link svg {
  38. height: 1em;
  39. width: 1em;
  40. }
  41. .wp-block-social-links.has-small-icon-size {
  42. font-size: 20px;
  43. }
  44. /* Set default line height for font size presets. */
  45. .has-xx-large-font-size {
  46. line-height: 1;
  47. }
  48. /* Add space between the header and first element, if its a paragraph. */
  49. .entry-content > p:first-child {
  50. margin-top: var(--wp--style--root--padding-left);
  51. }
  52. /* Move header core/navigation to the right on mobile. */
  53. .order-0 {
  54. order: 0;
  55. }
  56. .order-1 {
  57. order: 1;
  58. }
  59. .grow-0 {
  60. flex-grow: 0;
  61. }
  62. .grow {
  63. flex-grow: 1;
  64. }
  65. @media (min-width: 600px) {
  66. .md\:order-0 {
  67. order: 0;
  68. }
  69. .md\:order-1 {
  70. order: 1;
  71. }
  72. .md\:grow-0 {
  73. flex-grow: 0;
  74. }
  75. .md\:grow {
  76. flex-grow: 1;
  77. }
  78. }
  79. .overflow-hidden {
  80. overflow: hidden;
  81. }
  82. /* Style Jetpack forms */
  83. .wp-block-jetpack-contact-form-container {
  84. --jetpack--contact-form--input-padding-left: 16px !important;
  85. }
  86. .wp-block-jetpack-contact-form input,
  87. .wp-block-jetpack-contact-form textarea {
  88. backdrop-filter: saturate(1.1);
  89. background-color: transparent;
  90. border-color: var(--wp--custom--input--border--color);
  91. border-radius: var(--wp--custom--input--border--radius) !important; /* Requires !important to override local variables with theme variables. */
  92. border-width: var(--wp--custom--input--border--width) !important; /* Requires !important to override local variables with theme variables. */
  93. filter: brightness(0.975);
  94. font-size: inherit;
  95. color: inherit;
  96. transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  97. }
  98. .jetpack-contact-form .jetpack-field .jetpack-field__input,
  99. .jetpack-contact-form .jetpack-field .jetpack-field__textarea {
  100. border-color: var(--wp--custom--input--border--color);
  101. }
  102. .wp-block-jetpack-contact-form input:not(:placeholder-shown),
  103. .wp-block-jetpack-contact-form textarea:not(:placeholder-shown),
  104. .wp-block-jetpack-contact-form input:focus,
  105. .wp-block-jetpack-contact-form textarea:focus {
  106. filter: brightness(1);
  107. backdrop-filter: saturate(1);
  108. }
  109. .wp-block-jetpack-contact-form input:focus,
  110. .wp-block-jetpack-contact-form textarea:focus {
  111. border-color: var(--wp--custom--input--focus--border--color);
  112. }
  113. .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) select,
  114. .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) > input,
  115. .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) > textarea {
  116. padding-top: var(--field-padding); /* Remove unnecessary padding adjustment from Jetpack. */
  117. }
  118. .contact-form .is-style-animated .grunion-field-wrap .animated-label__label {
  119. font-size: inherit;
  120. width: auto;
  121. padding: 0 4px;
  122. transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), top 0.15s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  123. }
  124. .contact-form .is-style-animated .grunion-field-wrap.grunion-field-select-wrap .animated-label__label,
  125. .contact-form .is-style-animated .grunion-field-wrap .grunion-field.has-placeholder ~ .animated-label__label,
  126. .contact-form .is-style-animated .grunion-field-wrap .grunion-field:focus ~ .animated-label__label,
  127. .contact-form .is-style-animated .grunion-field-wrap .grunion-field:not(:placeholder-shown) ~ .animated-label__label {
  128. background-color: var(--wp--custom--input--color--background) !important;
  129. transform: translateY(-11px) translateX(-4px); /* Moves the label out of the field. */
  130. }
  131. .contact-form label,
  132. .wp-block-jetpack-contact-form label,
  133. .jetpack-field-label .rich-text.jetpack-field-label__input {
  134. font-weight: 500;
  135. }
  136. .contact-form__input-error {
  137. font-size: var(--wp--preset--font-size--small);
  138. }