Parcourir la source

simplify section styles

Rich Tabor il y a 11 mois
Parent
commit
26511d71c1

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

@@ -12,47 +12,6 @@
         "color": {
             "background": "var(--wp--preset--color--theme-2)",
             "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": {
         "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": {
         "color": {
             "background": "var(--wp--preset--color--theme-5)",
-            "text": "var(--wp--preset--color--theme-3)"
+            "text": "var(--wp--preset--color--theme-1)"
         },
         "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)"
+                    "text": "color-mix(in srgb, currentColor 25%, transparent)"
                 }
             }
         },
@@ -38,20 +28,10 @@
                 },
                 ":hover": {
                     "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)"
                     }
                 }
-            },
-            "heading": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-1)"
-                }
-            },
-            "link": {
-                "color": {
-                    "text": "var(--wp--preset--color--theme-3)"
-                }
             }
         }
     }