Skip to content

Commit

Permalink
再次修改菜单选中样式
Browse files Browse the repository at this point in the history
  • Loading branch information
hubinjie committed Mar 2, 2016
1 parent 2685b04 commit 8494ce7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
4 changes: 2 additions & 2 deletions application/views/adminpanel/index.php
Expand Up @@ -34,7 +34,7 @@ class="fa fa-<?php echo $v['css_icon'] ?>"></i><span><?php echo $v['menu_name']
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<aside>
<aside>
<?php if ($sub_menu_data) foreach ($sub_menu_data as $k => $v): ?>
<div class="list-group">
<a href="#" class="list-group-item disabled"><?php echo $v['menu_name'] ?> </a>
Expand All @@ -44,7 +44,7 @@ class="fa fa-<?php echo $v['css_icon'] ?>"></i><span><?php echo $v['menu_name']
foreach ($sub_array as $key => $m) {
?>
<a href="<?php echo $m['url'] ?>"
class="list-group-item <?php echo $third_menu_id == $m['menu_id']?' active':'' ?>"><?php echo $m['menu_name'] ?> <i class="fa fa-chevron-right"></i></a>
class="list-group-item <?php echo $third_menu_id == $m['menu_id']?' current-active':'' ?>"><?php echo $m['menu_name'] ?> <i class="fa fa-chevron-right"></i></a>
<?php
}
?>
Expand Down
43 changes: 31 additions & 12 deletions css/adminpanel/style.css
Expand Up @@ -24,7 +24,11 @@ body {
height: 55px;
}

.btn-primary{ background-color: #1ABC9C; border:1px solid #1ABC9C;}
.btn-primary{ background-color: #FF6600; border:1px solid #FF6600;}
.btn-primary:hover{ background-color: #FF6600; border:1px solid #FF6600;}

.btn-success{ background-color: #FF6600; border:1px solid #FF6600;}
.btn-success:hover{ background-color: #FF6600; border:1px solid #FF6600;}

.navbar-icon-menu {
text-align: center;
Expand Down Expand Up @@ -167,21 +171,19 @@ body {
margin-bottom: 10px;
}

//第三级菜单选中样式
.list-group .active,.list-group .active:hover {
background-color: #1ABC9C;
border: 1px solid #1ABC9C
}

//第二级菜单样式
.list-group .disabled,.list-group .disabled:hover {

background-color: #F5F5F5;
border: 1px solid #E2E2E2;
border-top: 2px solid #1ABC9C;
color: black;
font-family: 黑体;
font-size: 14px;
}

.list-group a.current-active {
background-color: #1ABC9C;
color: white;
}

.white-bg {
}

Expand Down Expand Up @@ -466,7 +468,11 @@ a.square:hover {
color: white;
background-image: url('../../images/sys_logo.gif');
background-repeat: none;
padding-left: 70px;
padding-left: 75px;
font-family: "Arial","黑体";
font-size: 15px;
padding-top: 18px;
font-weight: bold;
}

.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
Expand Down Expand Up @@ -644,5 +650,18 @@ a.square:hover {
.panel-body table{ margin-bottom: 0px}
.panel-footer{ height: 50px;clear: both; }
.panel-footer .pull-right .pagination{ margin: 0px;}
.pagination .page-size{ padding: 3px 10px; color:#777777; }
.pagination .page-size select{ font-size: 14px; border:1px solid #777777;}
.no-result{ padding: 10px;}
form .form-actions{background-color:#f5f7f7;margin:15px -15px -15px;padding:15px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}form .form-actions a.btn:hover{color:#28e1bd}
form .form-actions{background-color:#f5f7f7;margin:15px -15px -15px;padding:15px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}form .form-actions a.btn:hover{color:#28e1bd}

.textAreaWithLines{font-family:"榛戜綋";border: 1px solid #ddd;}
.textAreaWithLines textarea,.textAreaWithLines div{border: 0px;line-height: 120%;font-size: 14px;}
.lineObj{color: #666;}
#importText{width:4000px; }
.import-text-wrap{width:1000px;height:300px;overflow-x:hidden}

.item-order-info{ line-height: 20px; }
.item-order-info div{ line-height: 25px; height: 25px; padding-left: 15px;}

.copyright{ z-index: 9999; position: relative;; clear: both; bottom:0px;text-align: center; height: 35px; line-height: 35px; width: 100%; background-color: #F5F5F5; border-top: 2px solid #cccccc;}

0 comments on commit 8494ce7

Please sign in to comment.