Bladeren bron

优化前台下拉列表样式

Karson 4 jaren geleden
bovenliggende
commit
f36a3415d7
4 gewijzigde bestanden met toevoegingen van 13 en 5 verwijderingen
  1. 1 1
      application/common.php
  2. 5 1
      public/assets/css/frontend.css
  3. 5 1
      public/assets/less/frontend.less
  4. 2 2
      public/install.php

+ 1 - 1
application/common.php

@@ -365,7 +365,7 @@ if (!function_exists('hsv2rgb')) {
 
 if (!function_exists('check_nav_active')) {
     /**
-     * 跨域检测
+     * 检测会员中心导航是否高亮
      */
     function check_nav_active($url, $classname = 'active')
     {

+ 5 - 1
public/assets/css/frontend.css

@@ -24,6 +24,10 @@ body {
 .navbar-nav > li > a {
   font-size: 14px;
 }
+.navbar-nav ul.dropdown-menu > li > a {
+  padding: 5px 20px;
+  font-size: 13px;
+}
 .toast-top-center {
   top: 50px;
 }
@@ -444,7 +448,7 @@ main.content {
 }
 .sidenav .list-group .list-group-item.active {
   border-left: 2px solid #46c37b;
-  background: none;
+  background-color: #f5f5f5;
 }
 .sidenav .list-group .list-group-item.active > a {
   color: #46c37b;

+ 5 - 1
public/assets/less/frontend.less

@@ -43,6 +43,10 @@ body {
     > li > a {
         font-size:14px;
     }
+    ul.dropdown-menu > li > a {
+        padding: 5px 20px;
+        font-size: 13px;
+    }
 }
 .toast-top-center{
     top:50px;
@@ -404,7 +408,7 @@ main.content {
             }
             &.active {
                 border-left: 2px solid #46c37b;
-                background: none;
+                background-color: #f5f5f5;
                 > a {
                     color: #46c37b;
                 }

+ 2 - 2
public/install.php

@@ -20,8 +20,8 @@ require __DIR__ . '/../thinkphp/base.php';
 // 绑定到安装控制器
 \think\Route::bind('\app\admin\command\Install', 'controller');
 
-// 关闭路由
-\think\App::route(false);
+// 开启路由
+\think\App::route(true);
 
 // 设置根url
 \think\Url::root('');