浏览代码

simplify section styles

Rich Tabor 11 月之前
父节点
当前提交
26511d71c1
共有 3 个文件被更改,包括 5 次插入107 次删除
  1. 0 41
      assembler/styles/block/section-1.json
  2. 2 43
      assembler/styles/block/section-2.json
  3. 3 23
      assembler/styles/block/section-3.json

+ 0 - 41
assembler/styles/block/section-1.json

@@ -12,47 +12,6 @@
         "color": {
         "color": {
             "background": "var(--wp--preset--color--theme-2)",
             "background": "var(--wp--preset--color--theme-2)",
             "text": "var(--wp--preset--color--theme-5)"
             "text": "var(--wp--preset--color--theme-5)"
-        },
-        "blocks": {
-            "core/paragraph": {
-                "elements": {
-                    "link": {
-                        "color": {
-                            "text": "var(--wp--preset--color--theme-5)"
-                        }
-                    }
-                }
-            },
-            "core/separator": {
-                "color": {
-                    "background": "var(--wp--preset--color--theme-5)",
-                    "text": "var(--wp--preset--color--theme-5)"
-                }
-            }
-        },
-        "elements": {
-            "button": {
-                "color": {
-                    "background": "var(--wp--preset--color--theme-4)",
-                    "text": "var(--wp--preset--color--theme-1)"
-                },
-                ":hover": {
-                    "color": {
-                        "background": "var(--wp--preset--color--theme-5)",
-                        "text": "var(--wp--preset--color--theme-1)"
-                    }
-                }
-            },
-            "heading": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-5)"
-                }
-            },
-            "link": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-5)"
-                }
-            }
         }
         }
     }
     }
 }
 }

+ 2 - 43
assembler/styles/block/section-2.json

@@ -10,49 +10,8 @@
     ],
     ],
     "styles": {
     "styles": {
         "color": {
         "color": {
-            "background": "var(--wp--preset--color--theme-4)",
-            "text": "var(--wp--preset--color--theme-3)"
-        },
-        "blocks": {
-            "core/paragraph": {
-                "elements": {
-                    "link": {
-                        "color": {
-                            "text": "var(--wp--preset--color--theme-3)"
-                        }
-                    }
-                }
-            },
-            "core/separator": {
-                "color": {
-                    "background": "var(--wp--preset--color--theme-3)",
-                    "text": "var(--wp--preset--color--theme-3)"
-                }
-            }
-        },
-        "elements": {
-            "button": {
-                "color": {
-                    "background": "var(--wp--preset--color--theme-1)",
-                    "text": "var(--wp--preset--color--theme-5)"
-                },
-                ":hover": {
-                    "color": {
-                        "background": "var(--wp--preset--color--theme-2)",
-                        "text": "var(--wp--preset--color--theme-5)"
-                    }
-                }
-            },
-            "heading": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-1)"
-                }
-            },
-            "link": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-3)"
-                }
-            }
+            "background": "var(--wp--preset--color--theme-3)",
+            "text": "var(--wp--preset--color--theme-5)"
         }
         }
     }
     }
 }
 }

+ 3 - 23
assembler/styles/block/section-3.json

@@ -11,22 +11,12 @@
     "styles": {
     "styles": {
         "color": {
         "color": {
             "background": "var(--wp--preset--color--theme-5)",
             "background": "var(--wp--preset--color--theme-5)",
-            "text": "var(--wp--preset--color--theme-3)"
+            "text": "var(--wp--preset--color--theme-1)"
         },
         },
         "blocks": {
         "blocks": {
-            "core/paragraph": {
-                "elements": {
-                    "link": {
-                        "color": {
-                            "text": "var(--wp--preset--color--theme-3)"
-                        }
-                    }
-                }
-            },
             "core/separator": {
             "core/separator": {
                 "color": {
                 "color": {
-                    "background": "var(--wp--preset--color--theme-3)",
-                    "text": "var(--wp--preset--color--theme-3)"
+                    "text": "color-mix(in srgb, currentColor 25%, transparent)"
                 }
                 }
             }
             }
         },
         },
@@ -38,20 +28,10 @@
                 },
                 },
                 ":hover": {
                 ":hover": {
                     "color": {
                     "color": {
-                        "background": "var(--wp--preset--color--theme-2)",
+                        "background": "color-mix(in srgb, var(--wp--preset--color--theme-1) 85%, #000)",
                         "text": "var(--wp--preset--color--theme-5)"
                         "text": "var(--wp--preset--color--theme-5)"
                     }
                     }
                 }
                 }
-            },
-            "heading": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-1)"
-                }
-            },
-            "link": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-3)"
-                }
             }
             }
         }
         }
     }
     }