selectpage.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. @charset "utf-8";
  2. /**
  3. * Container
  4. */
  5. .sp_container {
  6. border: none;
  7. margin: 0;
  8. padding: 0;
  9. position: relative;
  10. vertical-align: middle;
  11. }
  12. .sp_input_disabled {
  13. background-color: white;
  14. border-radius: 4px 0 0 4px;
  15. border-right: none;
  16. border: 1px solid #79b;
  17. box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
  18. -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
  19. -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2) inset;
  20. margin: 0px !important;
  21. font-size: 14px;
  22. height: 20px;
  23. line-height: 20px;
  24. min-height: 20px;
  25. padding: 4px 6px;
  26. vertical-align: middle;
  27. display: block;
  28. box-sizing: content-box;
  29. }
  30. .sp_container_open .sp_input {
  31. border-radius: 0px 0px 0 0 !important;
  32. }
  33. /**
  34. * "Get all" button
  35. */
  36. div.sp_button {
  37. display: inline-block;
  38. border: 1px solid #79b;
  39. border-bottom-right-radius: 0px;
  40. border-top-right-radius: 0px;
  41. cursor: pointer;
  42. text-align: center;
  43. /*
  44. width: 32px;
  45. height: 32px;
  46. */
  47. box-sizing: border-box;
  48. border: 0px;
  49. border-left: 0px;
  50. width: 24px;
  51. height: 29px;
  52. /* right: 24px; */
  53. padding: 0px;
  54. vertical-align: middle;
  55. line-height: 100%;
  56. position: absolute;
  57. top: 0px;
  58. right: 0px;
  59. }
  60. div.sp_button {
  61. /* border: 1px solid #CCCCCC; */
  62. border: 0px;
  63. border-left: 0px;
  64. width: 24px;
  65. height: 28px;
  66. /* right: 24px; */
  67. padding: 0px;
  68. vertical-align: middle;
  69. line-height: 100%;
  70. position: absolute;
  71. top: 0px;
  72. right: 0px;
  73. }
  74. .sp_container_open > .sp_button {
  75. border-bottom-right-radius: 0 !important;
  76. }
  77. .sp_button > img {
  78. top: 6px;
  79. left: 8px;
  80. height: 16px;
  81. position: absolute;
  82. width: 16px;
  83. }
  84. .sp_btn_out {
  85. background: #bde;
  86. background-image: linear-gradient(to bottom, #eeffff, #99aabb);
  87. }
  88. .sp_btn_on {
  89. background: #dee;
  90. background-image: linear-gradient(to bottom, #ffffff, #bbbbcc);
  91. }
  92. div.sp_clear_btn {
  93. position: absolute;
  94. top: 0;
  95. right: 25px;
  96. display: block;
  97. width: auto;
  98. height: 100%;
  99. cursor: pointer;
  100. font-size: 20px;
  101. color: #666666;
  102. margin: 0px;
  103. padding: 3px 0px 0px 0px;
  104. box-sizing: border-box;
  105. line-height: 1;
  106. font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
  107. }
  108. div.sp_clear_btn:hover {
  109. color: black;
  110. font-weight: bold;
  111. }
  112. /**
  113. * Results
  114. */
  115. .sp_result_area {
  116. /* background-color: transparent; */
  117. background-color: white;
  118. border-top: 0;
  119. /* border: 1px solid #79b; */
  120. border: 0px;
  121. box-shadow: 2px 2px 2px rgba(0,0,0,0.4);
  122. -moz-box-shadow: 2px 2px 2px rgba(0,0,0,0.4);
  123. -webkit-box-shadow: 2px 2px 2px rgba(0,0,0,0.4);
  124. display: none;
  125. list-style: none;
  126. margin: 0;
  127. padding: 0;
  128. position: absolute;
  129. z-index: 100;
  130. width: 250px;
  131. }
  132. div.sp_result_area.shadowDown{
  133. box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
  134. -moz-box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
  135. -webkit-box-shadow: 0px 3px 12px rgba(0,0,0,0.2);
  136. }
  137. div.sp_result_area.shadowUp{
  138. box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
  139. -moz-box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
  140. -webkit-box-shadow: 0px -1px 12px rgba(0,0,0,0.2);
  141. }
  142. .sp_results {
  143. background-color: white;
  144. list-style: none;
  145. margin: 0;
  146. padding: 0;
  147. max-height:300px;
  148. overflow-y:auto;
  149. }
  150. .sp_results > li {
  151. margin: 0;
  152. overflow: hidden;
  153. padding: 5px 10px;
  154. position: relative;
  155. text-align: left;
  156. white-space: nowrap;
  157. font-size: 12px;
  158. color: black;
  159. cursor : pointer;
  160. }
  161. /*odd奇数行,even偶数行*/
  162. .sp_results > li:nth-child(even){
  163. /* background-color: #EEEEEE; */
  164. background-color: #EBF2FC;
  165. }
  166. .sp_results > li.sp_message_box {
  167. height: 30px;
  168. line-height: 30px;
  169. text-align: center;
  170. box-sizing: content-box;
  171. font-size: 14px;
  172. cursor: default;
  173. }
  174. ul.sp_results > li.sp_over {
  175. background-color: #53A4EA !important;
  176. color: #fff !important;
  177. cursor: pointer;
  178. }
  179. ul.sp_results > li.sp_selected {
  180. color: #cccccc;
  181. cursor: default;
  182. }
  183. .sp_control_box{
  184. padding: 0px;
  185. height: 27px;
  186. background-color: white;
  187. border-bottom: 1px solid #e6e7e7;
  188. }
  189. .sp_control_box button{
  190. height: 26px;
  191. line-height: 20px;
  192. width: 33.3%;
  193. -webkit-border-radius: 0px;
  194. -moz-border-radius: 0px;
  195. border-radius: 0px;
  196. font-size: 13px !important;
  197. padding: 1px 10px;
  198. border: 0px;
  199. background-color: white;
  200. color: #666666;
  201. }
  202. .sp_control_box button:last-child{
  203. width: 33.4%;
  204. }
  205. .sp_control_box button:hover{
  206. background-color: #F0F0F0;
  207. color: black;
  208. }
  209. /**
  210. * 多选模式相关样式
  211. */
  212. div.sp_container_combo{
  213. border: 1px solid #CCCCCC;
  214. border-radius: 4px;
  215. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  216. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  217. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  218. box-sizing: content-box;
  219. }
  220. div.sp_container_combo.sp_container_open{
  221. border-radius: 0px;
  222. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  223. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  224. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  225. border: 1px solid #75B9F0;
  226. }
  227. input.sp_combo_input{
  228. border: 0px;
  229. box-shadow: none;
  230. background-color: transparent;
  231. max-width: 100%;
  232. padding: 0px;
  233. height: 30px !important;
  234. line-height: 30px !important;
  235. min-height: 30px !important;
  236. }
  237. input.sp_combo_input:focus {
  238. box-shadow: none;
  239. }
  240. input.sp_combo_input[readonly],
  241. input.sp_combo_input[disabled]{
  242. background-color: white;
  243. }
  244. ul.sp_element_box{
  245. margin: 0px;
  246. padding: 0px;
  247. position: relative;
  248. overflow: hidden;
  249. clear: both;
  250. cursor: text;
  251. margin-right: 24px;
  252. margin-bottom: 2px;
  253. list-style: none;
  254. height: auto;
  255. }
  256. ul.sp_element_box > li{
  257. list-style: none;
  258. padding: 0px 5px;
  259. margin-left: 5px;
  260. margin-top: 3px;
  261. /* margin-bottom: 2px; */
  262. float: left;
  263. position: relative;
  264. }
  265. ul.sp_element_box li.full_width {
  266. width: 100%;
  267. }
  268. ul.sp_element_box li.full_width input{
  269. width: 100% !important;
  270. }
  271. ul.sp_element_box li.selected_tag {
  272. border: 1px solid #AAAAAA;
  273. border-radius: 3px;
  274. background-color: #EFEFEF;
  275. cursor: pointer;
  276. max-width: 100%;
  277. box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  278. }
  279. ul.sp_element_box li.input_box {
  280. padding: 0px;
  281. /* margin: 0px; */
  282. margin-top: 0px;
  283. height: 26px;
  284. min-height: 26px;
  285. }
  286. ul.sp_element_box li.input_box input {
  287. height: 26px !important;
  288. line-height: 26px !important;
  289. min-height: 26px !important;
  290. }
  291. ul.sp_element_box li.selected_tag span.tag_close {
  292. cursor: pointer;
  293. margin-left: 5px;
  294. font-size: 12px;
  295. font-weight: bold;
  296. font-family: Verdana;
  297. }
  298. /**
  299. * 加深颜色表示非选中
  300. */
  301. .sp_results_off {
  302. background: rgba(255, 255, 255, 0.8);
  303. }
  304. .sp_input_off {
  305. background: #eee;
  306. color: #555;
  307. }
  308. .sp_hide {
  309. display: none;
  310. }
  311. /**
  312. * Navi
  313. */
  314. .sp_navi {
  315. background: #eee;
  316. border-bottom: 1px solid #79b;
  317. font-size: 13px;
  318. font-weight: normal;
  319. line-height: 1;
  320. margin: 0;
  321. padding: 4px;
  322. text-align: right;
  323. }
  324. .sp_navi > p > a:link,
  325. .sp_navi > p > a:visited,
  326. .sp_navi > p > a:hover,
  327. .sp_navi > p > a:active {
  328. color: blue;
  329. font-weight: normal;
  330. margin: 0 4px;
  331. text-decoration: underline;
  332. }
  333. .sp_navi > p {
  334. color: black;
  335. font-size: 15px;
  336. margin: 0;
  337. padding-top: 4px;
  338. text-align: center;
  339. }
  340. .sp_navi > p > a >.current {
  341. color: #00c;
  342. font-size: 16px;
  343. font-weight: bold;
  344. }
  345. .sp_navi > p >.page_end {
  346. color: gray;
  347. font-weight: normal;
  348. margin: 0 4px;
  349. }
  350. .navi_page,
  351. .navi_first,
  352. .navi_prev,
  353. .navi_next,
  354. .navi_last {
  355. margin: auto 4px !important;
  356. }
  357. /**
  358. * Select only
  359. */
  360. .sp_container > .sp_select_ng {
  361. background: #fcc;
  362. }
  363. /*输入框设置了input-block-level样式时的特殊情况修复*/
  364. div.sp_container input.sp_input.input-block-level{
  365. box-sizing:border-box;
  366. height: 30px;
  367. line-height: 30px;
  368. min-height: 30px;
  369. width: 100%;
  370. }
  371. div.sp_container_open .sp_input::-ms-clear{display:none;}
  372. /* 移除微软浏览器,在输入框输入文本后,会出现X的问题,but is look like not working */
  373. input::-ms-clear{display:none;}/*隐藏文本框叉子*/
  374. input::-ms-reveal{display:none;}/*隐藏密码框小眼睛*/
  375. div.sp_btn_out,div.sp_btn_on {
  376. background: none;
  377. }
  378. div.sp_button span.caret {
  379. position: absolute;
  380. top: 50%;
  381. right: 12px;
  382. margin-top: -1px;
  383. vertical-align: middle;
  384. }
  385. div.sp_result_area.shadowDown{
  386. box-shadow: 0px 5px 30px rgba(0,0,0,0.2);
  387. -moz-box-shadow: 0px 5px 30px rgba(0,0,0,0.2);
  388. -webkit-box-shadow: 0px 5px 30px rgba(0,0,0,0.2);
  389. }
  390. div.sp_result_area.shadowUp{
  391. box-shadow: 0px -5px 30px rgba(0,0,0,0.2);
  392. -moz-box-shadow: 0px -5px 30px rgba(0,0,0,0.2);
  393. -webkit-box-shadow: 0px -5px 30px rgba(0,0,0,0.2);
  394. }
  395. /**
  396. * 分页条样式(基于Bootstrap2的样式进行调整)
  397. */
  398. div.sp_result_area .pagination {
  399. margin: 0px;
  400. padding: 0px;
  401. width: 100%;
  402. border-radius:0;
  403. display:inline;
  404. }
  405. div.sp_result_area .pagination li.csFirstPage a,
  406. div.sp_result_area .pagination li.csPreviousPage a,
  407. div.sp_result_area .pagination li.csNextPage a,
  408. div.sp_result_area .pagination li.csLastPage a {
  409. width: 30px;
  410. border-radius:0;
  411. }
  412. div.sp_result_area .pagination li.csFirstPage a{
  413. border-left: 0px;
  414. }
  415. div.sp_result_area .pagination li.csLastPage a{
  416. border-right: 0px;
  417. }
  418. div.sp_result_area .pagination>li.disabled>a:hover {
  419. color: #999999;background-color: white;
  420. }
  421. div.sp_result_area .pagination>li>a:hover {
  422. color: #005580; background-color: #F5F5F5;
  423. }
  424. div.sp_result_area .pagination>li.pageInfoBox>a {
  425. width: 134px;
  426. text-align: center;
  427. }