Skip to content

Commit

Permalink
ボタンに対するuikitの指定を修正
Browse files Browse the repository at this point in the history
submit のみを指定するように変更。それ以外は、テーマごとに頑張ってもらおう。
  • Loading branch information
toiee-kameda committed Oct 12, 2019
1 parent 05c6cc9 commit f644f15
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -192,7 +192,7 @@ function kanso_general_scripts() {
}

wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'jquery-uk-form', get_template_directory_uri() . '/js/kanso.js', array(), '20151215', true );
wp_enqueue_script( 'jquery-uk-form', get_template_directory_uri() . '/js/kanso.js', array(), '1.6.1', true );

wp_enqueue_style( 'uikit', get_template_directory_uri() . '/css/uikit.min.css', array(), '3.2.1' );
wp_enqueue_style( 'base-style', get_stylesheet_uri(), array( 'uikit' ) );
Expand Down
4 changes: 2 additions & 2 deletions js/kanso.js
Expand Up @@ -37,12 +37,12 @@ jQuery(
jQuery( 'label' ).addClass( 'uk-form-label' );
jQuery( '.comment-reply-link' ).addClass( 'uk-button uk-button-default' );

jQuery( 'button' ).each(
jQuery( 'button[type="submit"]' ).each(
function( index, el ){
if ( el.classList.contains( 'uk-button' ) ) {
// do nothing
} else {
el.classList.add( 'uk-button', 'uk-button-default' );
el.classList.add( 'uk-button', 'uk-button-default', 'uk-button-primary' );
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion style.css
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://kansowp.toiee.jp/
Author: toiee Lab
Author URI: http://toiee.jp/
Description: KANSO General は、できるだけ少ない設定、学習コストで、美しく、洗練され、オリジナリティがあるWebサイトを作るためのテーマです。シンプル・簡素 is best の精神で作られています。 詳細は、<a href="http://kansowp.toiee.jp/">http://kansowp.toiee.jp/</a>
Version: 1.6
Version: 1.6.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kanso-general
Expand Down
2 changes: 1 addition & 1 deletion theme.json
@@ -1,5 +1,5 @@
{
"version": "1.6",
"version": "1.6.1",
"details_url": "https://toiee.jp/kansowp/2019/07/02/v1-4-1-bug-in-header/",
"download_url": "https://github.com/toiee-lab/kanso-general/archive/master.zip"
}

0 comments on commit f644f15

Please sign in to comment.