浏览代码

fix minor issues with pixl (#6636)

Madhu Dollu 2 年之前
父节点
当前提交
1600eb499d
共有 4 个文件被更改,包括 6 次插入15 次删除
  1. 0 12
      pixl/patterns/quote.php
  2. 1 0
      pixl/style.css
  3. 1 1
      pixl/templates/page.html
  4. 4 2
      pixl/theme.json

+ 0 - 12
pixl/patterns/quote.php

@@ -1,12 +0,0 @@
-<?php
-/**
- * Title: A Pixl Quote
- * Slug: pixl/quote
- * Categories: featured, text
- */
-
-?>
-
-<!-- wp:pullquote {"style":{"border":{"width":"2px"},"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":"1.4","letterSpacing":"-0.02em","fontSize":"1.25rem"}},"borderColor":"primary","className":"pixl-shadow"} -->
-<figure class="wp-block-pullquote pixl-shadow has-border-color has-primary-border-color" style="border-width:2px;font-size:1.25rem;font-style:normal;font-weight:400;letter-spacing:-0.02em;line-height:1.4"><blockquote><p><?php echo esc_html__( '"The pain itself is love, the main storage system. Aenean dapibus nisi quis dolor scelerisque egestas. Members of the mass need to feel comfortable and easy. It is important that the lion should invest."', 'pixl' ) ?></p><cite><?php echo esc_html__( 'Unknown', 'pixl' ) ?></cite></blockquote></figure>
-<!-- /wp:pullquote -->

+ 1 - 0
pixl/style.css

@@ -38,6 +38,7 @@ a:where(:not(.wp-element-button)) {
     border: 2px solid var(--wp--preset--color--primary) !important;
     outline: none;
     font-size: 0.875rem;
+    font-family: inherit;
 }
 
 :is(textarea, input:not([type="submit"]))::placeholder {

+ 1 - 1
pixl/templates/page.html

@@ -13,7 +13,7 @@
         <!-- wp:template-part {"slug":"post-meta"} /-->
         <!-- wp:spacer {"height":"3rem"} -->
         <div style="height:3rem" aria-hidden="true" class="wp-block-spacer"></div>
-        <!-- /wp:spacer -->
+        <!-- /wp:spacer --></div>
         <!-- /wp:group -->
 </main>
 <!-- /wp:group -->

+ 4 - 2
pixl/theme.json

@@ -344,9 +344,11 @@
             },
             "core/pullquote": {
                 "border": {
+                    "color": "var(--wp--preset--color--primary)",
                     "style": "solid",
-                    "width": "1px 0"
+                    "width": "2px"
                 },
+                "shadow": "var(--wp--custom--shadow)",
                 "spacing": {
                     "padding": {
                         "bottom": "var(--wp--custom--gap--horizontal)",
@@ -396,7 +398,7 @@
                 "border": {
                     "color": "var(--wp--preset--color--primary)",
                     "style": "solid",
-                    "width": "0 0 0 1px"
+                    "width": "0 0 0 2px"
                 },
                 "spacing": {
                     "padding": {