Browse Source

优化后台样式

邹景立 3 years ago
parent
commit
501e98853c

+ 1 - 1
app/admin/view/index/index-left.html

@@ -1,4 +1,4 @@
-<div class="layui-side notselect">
+<div class="layui-side">
     <a class="layui-side-target" data-target-menu-type></a>
     <a class="layui-logo layui-elip" href="{:sysuri('@')}" title="{:sysconf('app_name')}">
         <span class="headimg headimg-no headimg-xs" data-lazy-src="{:sysconf('site_icon')}"></span>

+ 1 - 1
app/admin/view/index/index-top.html

@@ -1,4 +1,4 @@
-<div class="layui-header notselect">
+<div class="layui-header">
     <ul class="layui-nav layui-layout-left">
         <li class="layui-nav-item" lay-unselect>
             <a class="text-center" data-target-menu-type>

+ 1 - 1
app/admin/view/main.html

@@ -2,7 +2,7 @@
     {block name='style'}{/block}
     {block name='header'}
     {notempty name='title'}
-    <div class="layui-card-header notselect">
+    <div class="layui-card-header">
         <span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span>{$title|default=''}
         <div class="pull-right">{block name='button'}{/block}</div>
     </div>

+ 8 - 0
public/static/theme/css/_config.less

@@ -115,6 +115,14 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+// 禁止选中内容
+#NotSelect() {
+  user-select: none;
+  -ms-user-select: none;
+  -moz-user-select: none;
+  -webkit-user-select: none
+}
+
 // Flex 基础定位
 #flex() {
   display: -moz-box;

+ 1 - 4
public/static/theme/css/_custom.less

@@ -195,10 +195,7 @@
 }
 
 .notselect {
-  user-select: none;
-  -ms-user-select: none;
-  -moz-user-select: none;
-  -webkit-user-select: none
+  #NotSelect();
 }
 
 .transition {

+ 5 - 2
public/static/theme/css/_layout.less

@@ -24,6 +24,7 @@
     position: absolute;
     box-sizing: content-box;
     background: @TopHeaderBackColor !important;
+    #NotSelect();
 
     > ul.layui-nav {
       margin: 0;
@@ -147,6 +148,7 @@
     overflow: hidden;
     box-shadow: @ShadowBodyLeft;
     background-color: @LeftMainBackColor;
+    #NotSelect();
 
     .layui-logo {
       color: #FFF;
@@ -356,6 +358,7 @@
         left: @LayoutDefaLeftSzie;
         border-top: @BoxBottomLine;
         border-bottom: 1px solid #fff !important;
+        #NotSelect();
 
         right: 0;
         height: 45px;
@@ -366,10 +369,10 @@
         line-height: 45px;
 
         & + .layui-card-line {
-          top: 46px;
+          top: 47px;
 
           & + .layui-card-body {
-            top: 46px;
+            top: 47px;
           }
         }
       }

File diff suppressed because it is too large
+ 0 - 0
public/static/theme/css/console.css


File diff suppressed because it is too large
+ 0 - 0
public/static/theme/css/console.css.map


Some files were not shown because too many files changed in this diff