浏览代码

Merge pull request #343 from ohryan/master

Execution Order Issue bones_ahoy()
Eddie Machado 13 年之前
父节点
当前提交
eb2b276f91
共有 4 个文件被更改,包括 6 次插入4 次删除
  1. 3 1
      library/bones.php
  2. 1 1
      library/css/style.css
  3. 1 1
      library/less/_768up.less
  4. 1 1
      library/scss/_768up.scss

+ 3 - 1
library/bones.php

@@ -38,7 +38,9 @@ function bones_ahoy() {
     add_filter( 'style_loader_tag', 'bones_ie_conditional', 10, 2 );
 
     // launching this stuff after theme setup
-    add_action('after_setup_theme','bones_theme_support');
+    // add_action('after_setup_theme','bones_theme_support');
+    bones_theme_support();
+    
     // adding sidebars to Wordpress (these are created in functions.php)
     add_action( 'widgets_init', 'bones_register_sidebars' );
     // adding the bones search form (created in functions.php)

+ 1 - 1
library/css/style.css

@@ -1570,7 +1570,7 @@ you can add resource intensive styles.
   }
   .nav li ul.sub-menu,
   .nav li ul.children {
-    width: 200px;
+    margin-top: 0;
     border: 1px solid #ccc;
     border-top: 0;
     position: absolute;

+ 1 - 1
library/less/_768up.less

@@ -68,7 +68,7 @@ NAVIGATION STYLES
 		*/
 		ul.sub-menu,
 		ul.children {
-			width: 200px;
+			margin-top: 0;
 			border: 1px solid #ccc;
 			border-top: 0;
 			position: absolute;

+ 1 - 1
library/scss/_768up.scss

@@ -68,7 +68,7 @@ NAVIGATION STYLES
 		*/
 		ul.sub-menu,
 		ul.children {
-			width: 200px;
+			margin-top: 0;
 			border: 1px solid #ccc;
 			border-top: 0;
 			position: absolute;