style.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. Theme Name: Pixl
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/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: 0.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: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
  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. }
  39. :is(textarea, input:not([type="submit"]))::placeholder {
  40. color: var(--wp--preset--color--foreground);
  41. font-weight: 300;
  42. }
  43. .wp-block-search :is(textarea, input:not([type="submit"])) {
  44. box-shadow: var(--wp--custom--shadow);
  45. margin-right: var(--wp--preset--spacing--20);
  46. }
  47. input[type="checkbox"] {
  48. appearance: none;
  49. min-width: 0.75rem;
  50. height: 0.75rem;
  51. position: relative;
  52. margin-left: 0;
  53. }
  54. input[type="checkbox"]:checked::after {
  55. background-color: var(--wp--preset--color--foreground);
  56. content: "";
  57. position: absolute;
  58. width: 75%;
  59. height: 75%;
  60. top: 0;
  61. left: 0;
  62. bottom: 0;
  63. right: 0;
  64. margin: auto;
  65. }
  66. /*
  67. * Navigation styles
  68. */
  69. .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  70. padding-top: 0.25rem;
  71. padding-bottom: 0.25rem;
  72. }
  73. .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  74. background-color: var(--wp--preset--color--background);
  75. color: var(--wp--preset--color--foreground);
  76. border-color: var(--wp--preset--color--primary);
  77. }
  78. .wp-block-pullquote cite {
  79. font-size: 0.75rem;
  80. font-style: normal;
  81. font-weight: 300;
  82. line-height: 1.6;
  83. }
  84. /* 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. */
  85. .pixl-header {
  86. flex-grow: 1;
  87. }
  88. /* Hover state for outline style button */
  89. .wp-block-button.is-style-outline .wp-element-button:hover {
  90. background-color: var(--wp--preset--color--foreground);
  91. border-color: var(--wp--preset--color--foreground);
  92. color: var(--wp--preset--color--background);
  93. }