style.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. Theme Name: Pixl
  3. Theme URI: https://wordpress.com/theme/pixl/
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Pixl is a simple yet opinionated blogging theme inspired by websites of the nineties.
  7. Requires at least: 6.0
  8. Tested up to: 6.0
  9. Requires PHP: 5.7
  10. Version: 1.0.7
  11. License: GNU General Public License v2 or later
  12. License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
  13. Template:
  14. Text Domain: pixl
  15. Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, one-column, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, style-variations
  16. */
  17. /*
  18. * Custom class to add shadow to blocks
  19. * Need this until box shadow support added to Gutenberg here: https://github.com/WordPress/gutenberg/pull/43184
  20. */
  21. .pixl-shadow {
  22. box-shadow: var(--wp--custom--shadow);
  23. }
  24. /* Links */
  25. a:where(:not(.wp-element-button)) {
  26. text-underline-offset: .3em;
  27. /* text-decoration-thickness: 2px; */
  28. }
  29. /*
  30. * Form elements
  31. */
  32. :is(textarea, input:not([type="submit"])) {
  33. color: var(--wp--preset--color--foreground);
  34. background-color: var(--wp--preset--color--background);
  35. border: 2px solid var(--wp--preset--color--primary) !important;
  36. outline: none;
  37. font-size: 0.875rem;
  38. font-family: inherit;
  39. }
  40. :is(textarea, input:not([type="submit"]))::placeholder {
  41. color: var(--wp--preset--color--foreground);
  42. font-weight: 300;
  43. }
  44. .wp-block-search :is(textarea, input:not([type="submit"])) {
  45. box-shadow: var(--wp--custom--shadow);
  46. margin-right: var(--wp--preset--spacing--20);
  47. }
  48. input[type="checkbox"] {
  49. appearance: none;
  50. min-width: 0.75rem;
  51. height: 0.75rem;
  52. position: relative;
  53. margin-left: 0;
  54. }
  55. input[type="checkbox"]:checked::after {
  56. background-color: var(--wp--preset--color--foreground);
  57. content: "";
  58. position: absolute;
  59. width: 75%;
  60. height: 75%;
  61. top: 0;
  62. left: 0;
  63. bottom: 0;
  64. right: 0;
  65. margin: auto;
  66. }
  67. /*
  68. * Navigation styles
  69. */
  70. .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  71. padding-top: 0.25rem;
  72. padding-bottom: 0.25rem;
  73. }
  74. .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  75. background-color: var(--wp--preset--color--background);
  76. color: var(--wp--preset--color--foreground);
  77. border-color: var(--wp--preset--color--primary);
  78. }
  79. .wp-block-pullquote cite {
  80. font-size: 0.75rem;
  81. font-style: normal;
  82. font-weight: 300;
  83. line-height: 1.6;
  84. }
  85. /* Necessary so the header containing the navigation fills the entire remaining horizontal space, since it is positioned in a flex group with the site logo. */
  86. .pixl-header {
  87. flex-grow: 1;
  88. }
  89. /* Hover state for outline style button */
  90. .wp-block-button.is-style-outline .wp-element-button:hover {
  91. background-color: var(--wp--preset--color--foreground);
  92. border-color: var(--wp--preset--color--foreground);
  93. color: var(--wp--preset--color--background);
  94. }