m_segment.less 1.18 KB
/***************************************************
* feature  :  分隔栏;
* update   :  2015/02/03;
* use      :  .m-segment;
* extend   :  .segment-*;
* example  :  <ul class="m-segment"><li class="on"><a href="#" class="text">商品详情</a></li><li><a href="#" class="text">商品评论</a></li></ul>;
* desc     :  ;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
@import "var";

//分隔栏
.m-segment{
	overflow: hidden;
	li{
		width: 50%;
		line-height: 35px;
		text-align: center;
		float: left;
		background-color: #FFF;
		border: 1px solid #6c2;
		border-right: none;
		box-sizing: border-box;
		.text{
			display: block;
			color: #66cc22;
			font-size: 14px;
		}
		&:first-child{
			border-top-left-radius: 4px;
			border-bottom-left-radius: 4px;
		}

		&:last-child{
			border-top-right-radius: 4px;
			border-bottom-right-radius: 4px;
			border-right: 1px solid #6c2;
		}
	}
	.on{
		color: #FFF;
		background-color: #66cc22;
		.text{
			color: #FFF;
		}
	}
}