Browse Source

增加栏目选择背景色

develop
叙述、别离 6 months ago
parent
commit
78e98db24e
2 changed files with 16 additions and 13 deletions
  1. +4
    -1
      src/static/web/css/admin.css
  2. +12
    -12
      src/system/typelink/typeunit.class.admin.php

+ 4
- 1
src/static/web/css/admin.css View File

@@ -597,6 +597,9 @@ body.menu-show .body-right {
.w-35 {
width:35%
}
.column:hover {
background:rgba(0,0,0,0.075)
}
.breadcrumb {
padding:0;
background:none
@@ -714,7 +717,7 @@ body.menu-show .body-right {
.admin-input-xs {
width:70px
}
a:hover,body.menu-hide .body-right,body.menu-show .body-right,.sidemenu .submenu li:hover,.table-hover tbody tr:hover {
a:hover,body.menu-hide .body-right,body.menu-show .body-right,.sidemenu .submenu li:hover,.column:hover,.table-hover tbody tr:hover {
transition:all 0.5s
}
span.page-link {


+ 12
- 12
src/system/typelink/typeunit.class.admin.php View File

@@ -107,9 +107,9 @@ class TypeUnit
$nss = '';
}
if ($ispart == 0) {
//列表栏目
//列表栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-success btn-sm'>列表</span>
@@ -130,9 +130,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 1) {
//封面栏目
//封面栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-warning btn-sm'>封面</span>
@@ -152,9 +152,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 2) {
//外部栏目
//外部栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-primary btn-sm'>外部</span>
@@ -217,9 +217,9 @@ tpl;
} else {
$nss = '';
} if ($ispart == 0) {
//列表栏目
//列表栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
@@ -241,9 +241,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 1) {
//封面栏目
//封面栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
@@ -264,9 +264,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 2) {
//外部栏目
//外部栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between mb-2 py-2'>
<div class='left'>
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>


Loading…
Cancel
Save