Created
January 8, 2020 04:26
-
-
Save khoipro/eae8bb4f67e3010343e135d8aee71a97 to your computer and use it in GitHub Desktop.
Example style-editor.css for applying custom style to Block Editor (Gutenberg) in WordPress 5.x+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: "Inter var"; | |
| font-weight: 100 900; /* stylelint-disable-line font-weight-notation */ | |
| font-style: normal; | |
| font-display: swap; | |
| src: url('./assets/fonts/inter/Inter-upright-var.woff2') format("woff2"); | |
| } | |
| @font-face { | |
| font-family: "Inter var"; | |
| font-weight: 100 900; /* stylelint-disable-line font-weight-notation */ | |
| font-style: italic; | |
| font-display: swap; | |
| src: url('./assets/fonts/inter/Inter-italic-var.woff2') format("woff2"); | |
| } | |
| .editor-styles-wrapper { | |
| box-sizing: border-box; | |
| color: #000; | |
| font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; | |
| font-size: 1rem; | |
| line-height: 1.4; | |
| text-align: left; | |
| } | |
| .editor-block-list__layout .editor-block-list__block, | |
| .editor-block-list__layout .editor-block-list__block p, | |
| .editor-post-title__block .editor-post-title__input, | |
| .editor-block-list__layout .editor-block-list__block * { | |
| font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; | |
| } | |
| @supports ( font-variation-settings: normal ) { | |
| .editor-styles-wrapper { | |
| font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment