ip界面的showmore样式增加至components.css
js增加至common.js
This commit is contained in:
@@ -5158,7 +5158,7 @@ Form Layouts
|
||||
|
||||
.portlet-form .form-section,
|
||||
.form .form-section {
|
||||
margin: 5px 0px 30px 0px;
|
||||
margin: 12px 0px 14px 0px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #e7ecf1; }
|
||||
.form-fit .portlet-form .form-section, .form-fit
|
||||
@@ -21630,7 +21630,19 @@ Color library demo
|
||||
.mega-menu .dropdown-menu {
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
|
||||
/**SHOW MORE CSS**/
|
||||
.btn-red-hollow{
|
||||
color:#ca0c16 !important;
|
||||
border:1px solid #ca0c16 !important;
|
||||
background-color: #fff !important;
|
||||
webkit-transition: background-color .1s ease-in-out;
|
||||
transition: background-color .1s ease-in-out;
|
||||
}
|
||||
.btn-red-hollow:hover{
|
||||
background-color:#fde3e4 !important;
|
||||
border-color:#ca0c16 !important;
|
||||
consor:pointer;
|
||||
}
|
||||
/* END SHOW MORE CSS**/
|
||||
|
||||
|
||||
|
||||
@@ -112,3 +112,20 @@ var page=function(n,s){
|
||||
$("#searchForm").submit();
|
||||
return false;
|
||||
}
|
||||
|
||||
//show more 添加更多属性
|
||||
var more=function(obj){
|
||||
var clickTimes=$(obj).data("click-times");
|
||||
if(clickTimes==0){
|
||||
$(".port").removeClass("hidden").removeClass("disabled");
|
||||
$(obj).data("click-times",clickTimes+1);
|
||||
}
|
||||
if(clickTimes==1){
|
||||
$(".protocol").removeClass("hidden").removeClass("disabled");
|
||||
$(obj).data("click-times",clickTimes+1);
|
||||
}
|
||||
var rows=$(obj).parent(".row").siblings(".row:hidden");
|
||||
if(rows.size()==0){
|
||||
$(obj).addClass("hidden");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user