Jselect_ui.css 3.26 KB
.pack_jselect {
	/*position: absolute;*/
	display: inline-block;
	background: #fff;
	font-size: 12px;
	vertical-align: middle;
	min-width: 100px;
	*display: inline;
	*zoom: 1;
	position: relative;
}


.poppage .pack_jselect {
	position: relative;
}

/* 选中项 */
.pack_jselect div {
	overflow: hidden;
	white-space: nowrap;
	cursor:pointer;
	height: 30px;
	background: #fff;
	position: relative;
	border: 1px solid #ddd;
	text-align: left;
}
.pack_jselect div:hover{
	/*border-color: #666;
	box-shadow: 0 0 4px #ccc;*/
}
.pack_jselect div span {
	width: 100%;
	display: block;
}
.pack_jselect.model_disabled div {
	cursor: default;
}
.pack_jselect div span {
	display: inline-block;
	line-height: 30px;
	padding: 0 10px;
	overflow: hidden;
}
/* 箭头样式 */
.pack_jselect div em {
	background:white;
	display: inline-block;
	width: 25px;
	height: 30px;
	padding: 0;
	position: absolute;
	right: 0px;
}
.pack_jselect div em em {
	display: inline-block;
	height: 0;
	width: 0;
	padding: 0;
	margin: 0;
	left: 5px;
	top: 12px;
	border: 5px solid #666;
	border-top-color: #666;
	border-left-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
}

/* 模拟的下拉框样式 */
.pack_jselect .s-pack_jselect-list{
	overflow: visible;
	position: absolute;
	/*position: relative;*/
	background: #fff;
	border: 1px solid #ddd;
	margin: -32px 0 0 0;
	left: 0;
}
.pack_jselect li {
	cursor:pointer;
	min-height: 18px;
	line-height: 18px;
	padding: 6px 10px;
	list-style: none;
	text-align: left;
	float: none !important;
	clear: both;
	margin: 0 !important;
}
.pack_jselect .s-select-bar{
	padding: 0;
	border-bottom: 1px #ccc solid;
}
.pack_jselect .s-select-bar input{
	width: 100%;
	height: 30px;
	line-height: 30px;
	border: 0;
	background: url('../../images/yy-rnso.png') right center no-repeat;
}
.pack_jselect-selected,
.pack_jselect li:hover {
	background: #3cb04d;
	color: #fff;
}
.pack_jselect-selected{
	color: #333 !important;
}
.pack_jselect-selected, .pack_jselect-selected:hover {
	background: #eee;
}
.pack_jselect-selected:hover {
	background: #eee !important;
	
}

.pack_jselect li.disabled_click.pack_jselect-selected,
.pack_jselect li.disabled_click,
.pack_jselect li.disabled_click:hover {
	cursor: text;
	background: none;
	color: #ddd !important;
}

/* 该样式加在原始 option 上,由js 自动附加到 模型上 */
li.select_please {
	background: #fff;
	color: #ccc;
	border-bottom: 1px solid #ccc;
	margin: 0 8px;
	padding: 5px 10px;
}
li.select_please:hover {
	background: none!important;
	color: #666;
}
/* 如果选择的是含有原始class 的  option 则同样将该样式附加到已经选择的选项框的样式上 */
div.select_please {
	color: #999;
}
.pack_jselect-selected.select_please, li.select_please:hover {
	color: #ccc !important;
}

/* 原始select 不可用 */
.disabled,
.model_disabled div {
	background: #eee;
	color: #bbbbbb;
}
.model_disabled div em.pack_jselect_arrow, .model_disabled div em.pack_jselect_arrow em {
	background: #eee;
}
.model_disabled, .model_disabled .select_please, .model_disabled .pack_jselect div {
	cursor: default;
}
.disabled {
	/*border: 1px solid #999;*/
}


/* 色块通用class */
.s-color {
	display: inline-block;
	width: 15px;
	height: 15px;
	vertical-align: middle;
	margin-right: 5px;
	border: 1px solid #999;
}