bobbingwide / written

An experimental FSE theme to replace Genesis-hm
GNU General Public License v3.0
0 stars 0 forks source link

Custom Styles version 1 spacing cannot be removed in Site Editor #15

Closed bobbingwide closed 2 years ago

bobbingwide commented 2 years ago

The Global Styles post named Custom Styles, which I created in July 2021, contains some left and right padding which is applied to the body in some generated inline CSS. It's not possible to remove it using the Styles interface. Using Reset to defaults doesn't work either. The solution is to delete the post manually. Once that's done, restoring the trashed post and publishing it updates it to version 2, and the unwanted padding is removed.

{
    "isGlobalStylesUserThemeJSON": true,
    "version": 1,
    "styles": {
        "blocks": {
            "oik-css/geshi": {
                "typography": {
                    "fontSize": "var:preset|font-size|footer"
                }
            }
        },
        "spacing": {
            "padding": {
                "right": "10px",
                "left": "20px"
            },
            "margin": {}
        }
    }
}
bobbingwide commented 2 years ago

This problem could have been the fact that theme.json didn't contain settings.appearanceTools: true

bobbingwide commented 2 years ago

Closing this. Unlikely to be reproduced now that themes are using version: 2