mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-04 16:21:40 +08:00
Make form files more specific to form page (#480)
* Make form styles more specific * Only load form files on CBT page
This commit is contained in:
parent
cb5f020671
commit
321e8abd09
2 changed files with 9 additions and 7 deletions
|
@ -276,10 +276,12 @@ class Theme_Form {
|
|||
}
|
||||
|
||||
public static function form_script() {
|
||||
if ( ! empty( $_GET['page'] ) && 'create-block-theme' === $_GET['page'] ) {
|
||||
wp_enqueue_script( 'form-script', plugin_dir_url( dirname( __FILE__ ) ) . 'js/form-script.js' );
|
||||
wp_enqueue_style( 'form-style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/form.css' );
|
||||
|
||||
// Enable localization in the form.
|
||||
wp_set_script_translations( 'form-script', 'create-block-theme' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
h2 {
|
||||
.appearance_page_create-block-theme h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
p.description {
|
||||
.appearance_page_create-block-theme p.description {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.submit {
|
||||
.appearance_page_create-block-theme .submit {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue