TabBar.less 2.78 KB
.tabpanel{
	position: absolute;
    width: 100%;
    height:100%;
}
.wev-comp-TabBar {
	-webkit-font-smoothing: antialiased;
	display: table;
	width: 100%;
	// height: 50 * @hd;
	padding: 0;
	table-layout: fixed;
	border-top: 1px solid #ddd;
	border-bottom: 0;
	background-color: white;
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
	        box-sizing: border-box;
	visibility: hidden;
}
.wev-comp-TabBar.wev-fix-top {
	border-top: 0;
	border-bottom: 1px solid #ddd;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	.wev-tabbar-item {
		padding: 10px 15px 10px 15px;
		padding-top: 12px;
		width: auto;
	}
}

.page-header .wev-comp-TabBar {
	visibility: visible;
}
.page-footer .wev-comp-TabBar{
	visibility: visible;
}
.wev-tabbar-item {
	display: table-cell;
	width: 1%;
	height: 50px;
	color: #929292;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	position: relative;
}
.wev-fix-top .wev-tabbar-item {
	height: 43px;
	font-size: @font-size-base;
	color: #333;
}
.wev-fix-top .wev-tabbar-item .wev-ellipsis{
	max-width: 120px;
}
.wev-tabbar-item.wev-tabbar-active, .wev-tabbar-item:active {
	color: var(--themeColor);
}

.wev-fix-top .wev-tabbar-item.wev-tabbar-active:after {
	content: '';
	position: absolute;
	height: 2px;
	bottom: 0px;
	left: 13px;
	right: 12px;
	background: var(--themeColor);
}
.wev-tabbar-item .wev-tabbar-icon {
	position: relative;
	top: 3px;
	display: inline-block;
	width: 24 * @hd;
	height: 24 * @hd;
	padding-top: 0;
	padding-bottom: 0;
	box-sizing: border-box;
	z-index: 20;
}
.wev-tabbar-item.wev-fix-top .wev-tabbar-icon {
	top: 0;
    width: 20 * @hd;
	height: 20 * @hd;
	vertical-align: bottom;
}
.wev-tabbar-item.wev-tabbar-noimg .wev-tabbar-icon{
	display: none;
}
.wev-tabbar-item .wev-tabbar-icon img{
	width: 100%;
	height: 100%;
}
.wev-tabbar-item .wev-tabbar-icon img.icon-active{
	display: none;
}
.wev-tabbar-item.wev-tabbar-active .wev-tabbar-icon img.icon-active{
	display: inline;	
}
.wev-tabbar-item.wev-tabbar-active .wev-tabbar-icon img.icon-normal{
	display: none;	
}
.wev-tabbar-item.wev-tabbar-singleimg .wev-tabbar-icon img.icon-normal{
	opacity: 0.5;	
	-webkit-opacity: 0.5; 
	-moz-opacity: 0.5; 
	-khtml-opacity: 0.5; 
	filter:alpha(opacity=50); 
}

.wev-tabbar-item .wev-tabbar-icon ~ .wev-tabbar-label {
	display: block;
	font-size: @font-size-icontext;
	box-sizing: border-box;
}

.wev-tabbar-item.wev-fix-top .wev-tabbar-icon ~ .wev-tabbar-label {
	display: inline;
    font-size: 14px;
	line-height: 18 * @hd;
}

.wev-tabbar-item > .wev-badge {
	position: absolute;
	top: 2px;
	right: 25%;
	-ms-transform: translateX(150%);
	    transform: translateX(150%);
	width: 22px;
	height: 22px;
	padding: 0;
	line-height: 22px;
	border-radius: 22px;
	z-index:99;
}