当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 50

wpwmeiyjih/SelectPage
暂停

forked from TerryZ/SelectPage
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
selectpage.css 9.32 KB
一键复制 编辑 原始数据 按行查看 历史
@charset "utf-8";
/**
* Container
*/
.sp_container {
border: none;
margin: 0;
padding: 0;
display: inline-block;
position: relative;
vertical-align: middle;
}
.sp_input {
background-color: white;
/* border-radius: 4px 0 0 4px; */
border-right: none;
/* border: 1px solid #79b; */
box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
-moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
margin: 0px !important;
/* width: 320px; */
font-size: 14px;
height: 20px;
line-height: 20px;
min-height: 20px;
padding: 4px 6px;
vertical-align: middle;
display: block;
box-sizing: content-box;
/* width: 100%; */
}
.sp_container_open .sp_input {
border-radius: 0px 0px 0 0 !important;
}
/**
* "Get all" button
*/
div.sp_button {
display: inline-block;
border-bottom-right-radius: 0px;
border-top-right-radius: 0px;
cursor: pointer;
text-align: center;
box-sizing: border-box;
border: 0px;
width: 24px;
height: 100%;
padding: 0px;
vertical-align: middle;
line-height: 100%;
position: absolute;
top: 0px;
right: 0px;
}
.sp_container_open > .sp_button {
border-bottom-right-radius: 0 !important;
}
div.sp_clear_btn {
position: absolute;
top: 0;
right: 25px;
display: block;
width: auto;
height: 100%;
cursor: pointer;
font-size: 20px;
color: #666666;
margin: 0px;
padding: 4px 0px 0px 0px;
box-sizing: border-box;
line-height: 1;
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
}
div.sp_clear_btn:hover {
color: black;
font-weight: bold;
}
/**
* Results
*/
.sp_result_area {
/* background-color: transparent; */
background-color: white;
border: 1px solid #D6D7D7;
display: none;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
z-index: 100;
width: 300px;
}
div.sp_result_area.shadowDown{
box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
}
div.sp_result_area.shadowUp{
box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
-moz-box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
}
.sp_results {
background-color: white;
list-style: none;
margin: 0;
padding: 0;
}
.sp_results > li {
height: auto !important;
line-height: 1;
margin: 0;
overflow: hidden;
padding: 3px 5px;
position: relative;
text-align: left;
white-space: nowrap;
font-size: 12px;
color: black;
cursor : pointer;
}
.sp_results > li.sp_message_box {
height: 30px;
line-height: 30px;
text-align: center;
box-sizing: content-box;
font-size: 14px;
cursor: default;
}
ul.sp_results > li.sp_over {
background-color: #53A4EA !important;
color: #fff !important;
cursor: pointer;
}
ul.sp_results > li.sp_selected {
color: #cccccc;
cursor: default;
}
.sp_control_box{
padding: 0px;
height: 27px;
background-color: white;
border-bottom: 1px solid #e6e7e7;
}
.sp_control_box button{
height: 26px;
line-height: 20px;
width: 33.3%;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
font-size: 13px !important;
padding: 1px 10px;
border: 0px;
background-color: white;
color: #666666;
}
.sp_control_box button:last-child{
width: 33.4%;
}
.sp_control_box button:hover{
background-color: #F0F0F0;
color: black;
}
/**
* 多选模式相关样式
*/
div.sp_container_combo{
border: 1px solid #CCCCCC;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-sizing: border-box;
}
/* 多选模式的禁用状态样式 */
div.sp_container_combo.sp_disabled,
div.sp_container_combo.sp_disabled ul.sp_element_box,
div.sp_container_combo.sp_disabled .sp_input{
background-color: #eeeeee;
cursor: not-allowed !important;
}
div.sp_container_combo.sp_container_open{
border-radius: 0px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
border: 1px solid #75B9F0;
}
input.sp_combo_input{
border: 0px;
box-shadow: none;
background-color: transparent;
max-width: 100%;
padding: 0px;
height: 30px !important;
line-height: 30px !important;
min-height: 30px !important;
}
input.sp_combo_input:focus {
box-shadow: none;
}
input.sp_combo_input[readonly],
input.sp_combo_input[disabled]{
background-color: white;
}
ul.sp_element_box{
margin: 0px;
position: relative;
overflow: hidden;
clear: both;
cursor: text;
margin-right: 24px;
list-style: none;
height: auto;
padding: 4px 0px 0px 5px;
font-size: 14px;
min-height: 24px;
}
ul.sp_element_box > li{
list-style: none;
padding: 0px 5px;
/* margin-left: 5px;
margin-top: 3px; */
/* margin-bottom: 2px; */
float: left;
height: 19px;
line-height: 19px;
position: relative;
margin: 0px;
box-sizing: content-box;
}
ul.sp_element_box li.full_width {
width: 100%;
}
ul.sp_element_box li.full_width input{
width: 100% !important;
}
ul.sp_element_box li.selected_tag {
border: 1px solid #AAAAAA;
border-radius: 3px;
background-color: #EFEFEF;
cursor: pointer;
max-width: 100%;
box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
margin-bottom: 2px;
margin-right: 5px;
}
ul.sp_element_box li.input_box {
padding: 0px;
/* margin: 0px; */
margin-top: 0px;
height: 21px;
min-height: 21px;
}
ul.sp_element_box li.input_box input {
height: 21px !important;
line-height: 21px !important;
min-height: 21px !important;
}
ul.sp_element_box li.selected_tag span.tag_close {
cursor: pointer;
margin-left: 5px;
font-size: 15px;
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
}
/**
* 加深颜色表示非选中
*/
.sp_results_off {
/*background: rgba(255, 255, 255, 0.8);*/
}
.sp_input_off {
background: #eee;
color: #333333;
}
.sp_hide {
display: none;
}
/**
* Navi
*/
.sp_navi {
background: #eee;
border-bottom: 1px solid #79b;
font-size: 13px;
font-weight: normal;
line-height: 1;
margin: 0;
padding: 4px;
text-align: right;
}
.sp_navi > p > a:link,
.sp_navi > p > a:visited,
.sp_navi > p > a:hover,
.sp_navi > p > a:active {
color: blue;
font-weight: normal;
margin: 0 4px;
text-decoration: underline;
}
.sp_navi > p {
color: black;
font-size: 15px;
margin: 0;
padding-top: 4px;
text-align: center;
}
.sp_navi > p > a >.current {
color: #00c;
font-size: 16px;
font-weight: bold;
}
.sp_navi > p >.page_end {
color: gray;
font-weight: normal;
margin: 0 4px;
}
.navi_page,
.navi_first,
.navi_prev,
.navi_next,
.navi_last {
margin: auto 4px !important;
}
.sp_navi > .info {
margin: 0 !important;
padding: 0 !important;
}
/**
* Select only
*/
.sp_container > .sp_select_ng {
background: #fcc;
}
/*输入框设置了input-block-level样式时的特殊情况修复*/
div.sp_container input.sp_input.input-block-level{
box-sizing:border-box;
height: 30px;
line-height: 30px;
min-height: 30px;
width: 100%;
}
div.sp_container_open .sp_input::-ms-clear{display:none;}
/* 移除微软浏览器,在输入框输入文本后,会出现X的问题,but is look like not working */
input::-ms-clear{display:none;}/*隐藏文本框叉子*/
input::-ms-reveal{display:none;}/*隐藏密码框小眼睛*/
div.sp_button span.caret {
position: absolute;
top: 50%;
right: 12px;
margin-top: -1px;
vertical-align: middle;
}
div.sp_navi > p {
font-size: 12px;
}
/**
* 分页条样式(基于Bootstrap2的样式进行调整)
*/
div.sp_result_area div.pagination {
margin: 0px;
padding: 0px;
height: 26px;
line-height: 26px;
width: 100%;
/* border-top: 1px solid #DDDDDD; */
}
div.sp_result_area div.pagination ul {
width: 100%;
}
div.sp_result_area div.pagination li{
text-align: center;
}
div.sp_result_area div.pagination>ul>li>a {
margin: 0px;
border-radius: 0px;
padding: 0px;
line-height: 24px;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
background-color: white;
border: 0px;
box-sizing: content-box;
color: #666666;
font-size: 20px;
height: 26px;
line-height: 26px;
}
div.sp_result_area div.pagination li.csFirstPage a,
div.sp_result_area div.pagination li.csPreviousPage a,
div.sp_result_area div.pagination li.csNextPage a,
div.sp_result_area div.pagination li.csLastPage a {
width: 30px;
}
div.sp_result_area div.pagination li.csFirstPage a{
border-left: 0px;
}
div.sp_result_area div.pagination li.csLastPage a{
border-right: 0px;
}
div.sp_result_area div.pagination>ul>li>a:hover {
color: #000000; background-color: #E8E8E8;
}
div.sp_result_area div.pagination>ul>li.disabled>a{
color: #DDDDDD;
cursor: default;
}
div.sp_result_area div.pagination>ul>li.disabled>a:hover {
color: #DDDDDD;background-color: white;
}
div.sp_result_area div.pagination>ul>li.pageInfoBox>a {
width: 178px;
text-align: center;
/* padding-left: 4px;
padding-right: 4px; */
color: #666666;
font-size: 14px;
}
div.sp_result_area div.pagination>ul>li.pageInfoBox>a:hover {
background-color: inherit;
color: #666666;
cursor: default;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wpwmeiyjih/selectpage.git
git@gitee.com:wpwmeiyjih/selectpage.git
wpwmeiyjih
selectpage
SelectPage
master

搜索帮助