commonComponent.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. /*---------------------提示框样式 start---------------------*/
  2. /*示例:
  3. <div class="com-del-box">
  4. <div class="title">
  5. <i></i>
  6. </div>
  7. <div class="content">
  8. <p><i class="fa fa-exclamation-circle"></i>是否要删除此发票?</p>
  9. <div>
  10. <a>取消</a>
  11. <a>确认</a>
  12. </div>
  13. </div>
  14. </div>
  15. */
  16. .com-del-box{
  17. position: fixed;
  18. z-index: 10;
  19. min-height: 152px;
  20. opacity: 1;
  21. background-color: white;
  22. width: 310px;
  23. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  24. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  25. margin: -155px 0 0 -75px;
  26. top: 55%;
  27. left: 50%;
  28. }
  29. .com-del-box .title{
  30. height: 30px;
  31. background-color: #5078cb;
  32. text-align: right;
  33. padding-right: 15px;
  34. line-height: 30px;
  35. }
  36. .com-del-box .title i{
  37. background: url(/images/icon/close.png) no-repeat;
  38. display: inline-block;
  39. width: 9px;
  40. height: 9px;
  41. cursor: pointer;
  42. margin: 0;
  43. }
  44. .com-del-box .content{
  45. width: 100%;
  46. text-align: center;
  47. margin: 0 auto;
  48. }
  49. .com-del-box .content p{
  50. line-height: 50px;
  51. font-size: 14px;
  52. padding-top: 10px;
  53. }
  54. .com-del-box .content p i{
  55. color: #5078cb;
  56. font-size: 16px;
  57. margin-right: 10px;
  58. }
  59. .com-del-box .content div{
  60. width: 100%;
  61. text-align: center;
  62. margin: 0 auto;
  63. }
  64. .com-del-box .content div a{
  65. width: 55px;
  66. height: 26px;
  67. line-height: 26px;
  68. display: inline-block;
  69. text-align: center;
  70. font-size: 14px;
  71. cursor: pointer;
  72. }
  73. .com-del-box .content div a:first-child{
  74. background: #b4b5b9;
  75. color: #333;
  76. margin-right: 10px;
  77. }
  78. .com-del-box .content div a:last-child{
  79. background: #5078cb;
  80. color: #fff;
  81. }
  82. /*.com-del-box .content div a:hover{
  83. background: #3f7ae3;
  84. color: #fff;
  85. }*/
  86. /*---------------------提示框样式 end---------------------*/
  87. /*---------------------btn样式 start---------------------*/
  88. /*示例(size+type):
  89. <span class="com-btn-level1 com-btn-submit"></span>
  90. */
  91. /*btnSize*/
  92. .com-btn-level1 {
  93. display: inline-block;
  94. height: 25px;
  95. width:64px;
  96. text-align: center;
  97. line-height: 23px;
  98. font-size: 14px;
  99. cursor: pointer;
  100. vertical-align: middle;
  101. }
  102. .com-btn-level1[disabled] {
  103. cursor: not-allowed;
  104. }
  105. .com-btn-level2 {
  106. display: inline-block;
  107. padding: 0 11px;
  108. height: 25px;
  109. line-height: 23px;
  110. border-radius: 2px;
  111. font-size: 12px;
  112. cursor: pointer;
  113. vertical-align: middle;
  114. }
  115. .com-btn-level2[disabled] {
  116. cursor: not-allowed;
  117. }
  118. /*btnType*/
  119. .com-btn-submit {
  120. color: #fff;
  121. background: #5078cb;
  122. border: 1px solid #5078cb;
  123. }
  124. .com-btn-cancel {
  125. background: #c8c6c6;
  126. color: #fff;
  127. border: 1px solid #c8c6c6;
  128. }
  129. .com-btn-detail {
  130. color: #fff;
  131. background: #ff8522;
  132. border: 1px solid #ff8522;
  133. }
  134. .com-btn-detail-border {
  135. color: #ff8522;
  136. background: #fff;
  137. border: 1px solid #ff8522;
  138. }
  139. .com-btn-red {
  140. background: #f15601;
  141. color: #fff;
  142. border: 1px solid #f15601;
  143. }
  144. .com-btn-green {
  145. background: #33b401;
  146. color: #fff;
  147. border: 1px solid #33b401;
  148. }
  149. .com-btn-submit-border {
  150. border: 1px solid #5078cb;
  151. background: #fff;
  152. color: #5078cb;
  153. }
  154. /*---------------------btn样式 end-----------------------*/
  155. /*---------------------标准控件-新增start---------------------*/
  156. i.fa-plus-circle{
  157. font-size: 16px!important;
  158. color: #33b401!important;
  159. cursor: pointer;
  160. }
  161. /*---------------------标准控件-新增end---------------------*/
  162. /*---------------------标准控件-删除start---------------------*/
  163. i.fa-minus-circle{
  164. font-size: 16px!important;
  165. color: #f51c24!important;
  166. cursor: pointer;
  167. }
  168. /*---------------------标准控件-删除end---------------------*/
  169. /*---------------------标准控件-单选框start---------------------*/
  170. /** html代码
  171. <label class="com-check-radio">
  172. <input type="radio" id="effect" name="radio">
  173. <label for="effect"></label>
  174. 生效
  175. </label>
  176. <label class="com-check-radio">
  177. <input type="radio" id="no-effect" name="radio" checked="checked">
  178. <label for="no-effect"></label>
  179. 暂不生效
  180. </label>
  181. **/
  182. .com-check-radio input[type='radio']{
  183. display: none!important;
  184. margin: 7px 8px 0!important;
  185. }
  186. .com-check-radio input[type='radio'] + label{
  187. position: relative!important;
  188. top: 7px!important;
  189. margin-right: 5px!important;
  190. display: inline-block!important;
  191. width: 12px!important;
  192. height: 12px!important;
  193. font-weight: normal!important;
  194. background: url(/images/icon/check-rule.png) no-repeat;
  195. }
  196. .com-check-radio label{
  197. background-position: 0 0!important;
  198. }
  199. .com-check-radio input:checked + label{
  200. background-position: -15px 0!important;
  201. }
  202. /*---------------------标准控件-单选框end---------------------*/
  203. /*---------------------标准控件-复选框start---------------------*/
  204. /** html代码
  205. <label class="com-check-box">
  206. <input type="checkbox" id="1">
  207. <label for="1"></label>
  208. </label>
  209. **/
  210. .com-check-box,
  211. .com-check-box label {
  212. margin-bottom: 0;
  213. }
  214. .com-check-box input {
  215. display: none!important;
  216. }
  217. .com-check-box input[type="checkbox"] + label{
  218. display: inline-block!important ;
  219. position: relative!important ;
  220. top: 2px!important ;
  221. width: 12px!important ;
  222. height: 12px!important ;
  223. background: url(/images/icon/check-rule.png) no-repeat ;
  224. background-position: -48px 0;
  225. }
  226. .com-check-box input:checked + label {
  227. background-position: -31px 0;
  228. }
  229. /*---------------------标准控件-复选框end---------------------*/
  230. /*---------------------标准控件-开关(蓝色)start---------------------*/
  231. /** html代码
  232. <div class="com-switch-blue">
  233. <span class="checkbox">
  234. <span><em></em></span>
  235. </span>
  236. <span class="checkbox active">
  237. <span><em></em></span>
  238. </span>
  239. </div>
  240. **/
  241. div.com-switch-blue .checkbox {
  242. margin: 0 auto;
  243. text-align: center;
  244. position: relative;
  245. display: block;
  246. }
  247. div.com-switch-blue .checkbox span {
  248. width: 46px;
  249. height: 12px;
  250. display: inline-block;
  251. border-radius: 18px;
  252. border: #e4e4e4 1px solid;
  253. cursor: pointer;
  254. position: relative;
  255. box-shadow: 1px 1px 5px #eee;
  256. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#E0E0E0), to(#E8E8E8), color-stop(0.5,#F2F2F2));
  257. transition: background-color .1s ease-out;
  258. }
  259. div.com-switch-blue .checkbox.active span{
  260. background: #b9cffa;
  261. }
  262. div.com-switch-blue .checkbox.active span em{
  263. left: 34px;
  264. }
  265. div.com-switch-blue .checkbox span em{
  266. position: absolute;
  267. width: 16px;
  268. top: -5px;
  269. left: 0;
  270. height: 16px;
  271. line-height: 16px;
  272. background-color: #fff;
  273. border: #eee 1px solid;
  274. border-radius: 50%;
  275. box-shadow: -1px 2px 1px #999;
  276. transition: background-color .1s ease-out;
  277. color: #666;
  278. font-size: 12px;
  279. }
  280. div.com-switch-blue .checkbox span em:after{
  281. content: '';
  282. width: 6px;
  283. height: 6px;
  284. display: inline-block;
  285. background: #dedcdc;
  286. border-radius: 100%;
  287. position: absolute;
  288. top: 4px;
  289. left: 4px;
  290. }
  291. /*---------------------标准控件-开关(蓝色)end---------------------*/
  292. /*---------------------标准控件-开关(绿色)start---------------------*/
  293. /** html代码
  294. <div class="com-switch-green">
  295. <span class="checkbox">
  296. <span><em></em></span>
  297. </span>
  298. <span class="checkbox active">
  299. <span><em></em></span>
  300. </span>
  301. </div>
  302. **/
  303. div.com-switch-green .checkbox {
  304. margin: 0 auto;
  305. text-align: center;
  306. position: relative;
  307. display: block;
  308. }
  309. div.com-switch-green .checkbox span {
  310. width: 34px;
  311. height: 18px;
  312. display: inline-block;
  313. border-radius: 18px;
  314. border: #e4e4e4 1px solid;
  315. cursor: pointer;
  316. position: relative;
  317. box-shadow: 1px 1px 5px #eee;
  318. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#bbbcba), to(#bfc1be), color-stop(0.5,#c5c7c4));
  319. transition: background-color .1s ease-out;
  320. }
  321. div.com-switch-green .checkbox.active span{
  322. background: #3acb14;
  323. }
  324. div.com-switch-green .checkbox.active span em{
  325. left: 18px;
  326. }
  327. div.com-switch-green .checkbox span em{
  328. position: absolute;
  329. top: -2px;
  330. left: -3px;
  331. width: 18px;
  332. height: 18px;
  333. line-height: 18px;
  334. background-color: #fff;
  335. border: #eee 1px solid;
  336. border-radius: 50%;
  337. box-shadow: -1px 2px 1px #999;
  338. transition: background-color .1s ease-out;
  339. color: #666;
  340. font-size: 12px;
  341. }
  342. div.com-switch-green .checkbox span em:after{
  343. content: '';
  344. width: 6px;
  345. height: 6px;
  346. display: inline-block;
  347. background: #dedcdc;
  348. border-radius: 100%;
  349. position: absolute;
  350. top: 5px;
  351. left: 5px;
  352. }
  353. /*---------------------标准控件-开关(绿色)end---------------------*/
  354. /*---------------------信息提示框 start---------------------*/
  355. /** html代码
  356. <div class="tip">
  357. XXXX
  358. </div>
  359. **/
  360. div.tip{
  361. display: none;
  362. padding: 13px 10px;
  363. font-size: 12px;
  364. color: #333;
  365. background-color: #fff;
  366. border: 1px solid #89aefa;
  367. border-radius: 2px;
  368. box-shadow: 2px 2px 5px #dedede;
  369. -webkit-box-shadow: 2px 2px 5px #dedede;
  370. -moz-box-shadow: 2px 2px 5px #dedede;
  371. -o-box-shadow: 2px 2px 5px #dedede;
  372. }
  373. /*---------------------信息提示框 end---------------------*/
  374. /*---------------------提示浮层 start---------------------*/
  375. .com-supernatant-box{
  376. max-width:360px;
  377. opacity:.6;
  378. border-radius:5px;
  379. }
  380. .com-supernatant-box div{
  381. position:fixed;
  382. top:59%;
  383. left:50%;
  384. width:100%;
  385. transform:translate(-50%,-50%);
  386. color: #333;
  387. }
  388. .com-supernatant-box .success{
  389. background: #f00000;
  390. }
  391. .com-supernatant-box .defeat{
  392. background: #5078cb;
  393. }
  394. /*-------------------------提示浮层 end--------------------*/
  395. /*------下拉选框的使用样式方法------------------------------*/
  396. /*
  397. <div class='com-select-option'>
  398. <input id="classesType" ng-blur="onBlur()" ng-click="changeShowLogistics()" type="text" class="form-control" ng-model="message.classes" placeholder="请选择消息类型" readonly="true" >
  399. <ul id="ulContent" ng-if="matchData && showContent" class="dropdown-menu">
  400. <li ng-click="showText(classes)" ng-repeat="classes in resultList" ng-class="{'active': $index==selectIndex}" ng-bind="classes" ng-bind="message.classes"></li>
  401. </ul>
  402. </div>
  403. */
  404. /*-------------------------下拉选框 start-------------- --*/
  405. .com-select-option {
  406. position: relative;
  407. }
  408. .com-select-option>input {
  409. vertical-align: middle;
  410. width: 190px;
  411. margin-top: -2px;
  412. background-color: white !important;
  413. height: 30px;
  414. background: url(/images/icon/icon-xiala.png) no-repeat 167px 11px;
  415. cursor: pointer;
  416. }
  417. .com-select-option .dropdown-menu{
  418. top: 90%;
  419. left: unset;
  420. line-height: 30px;
  421. max-height: 300px;
  422. overflow-y: auto;
  423. width: 190px;
  424. display: block;
  425. overflow-x: hidden;
  426. border-radius: 2px;
  427. }
  428. .com-select-option .dropdown-menu li{
  429. font-size: 14px;
  430. cursor: pointer;
  431. padding-left:10px;
  432. height: 30px;
  433. }
  434. .com-select-option .dropdown-menu li:hover, .dropdown-menu li.active{
  435. color: #fff;
  436. background: #5078cb;
  437. }
  438. /*-------------------------下拉选框 end--------------------*/
  439. /*-------------------------分页 start--------------------*/
  440. /*主要分页table(使用tableParams即可)*/
  441. /*主要分页非table代码示例*/
  442. /*
  443. <div class="ng-cloak ng-table-pager com-sup-pager">
  444. <ul class="pagination ng-table-pagination">
  445. <li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
  446. <a ng-switch-when="prev" ng-click="setPage(page.type, -1)" href="">&laquo;</a>
  447. <a ng-switch-when="first" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  448. <a ng-switch-when="page" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  449. <a ng-switch-when="more" ng-click="setPage(page.type, -1)" href="">&#8230;</a>
  450. <a ng-switch-when="last" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  451. <a ng-switch-when="next" ng-click="setPage(page.type, -1)" href="">&raquo;</a>
  452. </li>
  453. </ul>
  454. <div class="page-go-block">
  455. <input class="page-number" type="text" ng-model="param.currentPage" ng-keydown="listenEnter()"/>
  456. <a class="page-a" ng-click="setPage('page', param.currentPage)">GO</a>
  457. </div>
  458. </div>
  459. */
  460. .com-sup-pager .pagination{
  461. margin-bottom: 0;
  462. }
  463. .com-sup-pager .pagination.ng-table-pagination > li > a > span {
  464. height: 17px;
  465. line-height: 17px;
  466. }
  467. .com-sup-pager .pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover{
  468. z-index: 2;
  469. color: #fff;
  470. cursor: default;
  471. background-color: #5078cb;
  472. border-color: #5078cb;
  473. }
  474. .com-sup-pager .pagination.ng-table-pagination > li > a{
  475. font-size: 12px;
  476. }
  477. .com-sup-pager.ng-table-pager input.page-number {
  478. vertical-align: inherit;
  479. display: inline-block;
  480. width: 40px;
  481. height: 31px;
  482. padding: 6px 6px;
  483. font-size: 14px;
  484. line-height: 1.42857143;
  485. color: #9B9792;
  486. text-align: center;
  487. background-color: #F6F5F4;
  488. background-image: none;
  489. border: 1px solid #ccc;
  490. border-top-left-radius: 4px;
  491. border-bottom-left-radius: 4px;
  492. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  493. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  494. }
  495. .com-sup-pager.ng-table-pager{
  496. margin-right: 0 !important;
  497. background: #fff;
  498. }
  499. .com-sup-pager.ng-table-pager a.page-a {
  500. color: #fff;
  501. cursor: pointer;
  502. background-color: #5078cb;
  503. border-color: #5078cb;
  504. padding: 7px 6px;
  505. font-size: 14px;
  506. border-top-right-radius: 4px;
  507. border-bottom-right-radius: 4px;
  508. text-decoration: none;
  509. height: 31px;
  510. }
  511. .com-sup-pager.ng-table-pager div.page-go-block {
  512. float: right;
  513. margin-left: 20px;
  514. font-size: 0px;
  515. height: 31px;
  516. line-height: 31px;
  517. }
  518. /*次要分页代码示例*/
  519. /*
  520. <div class="ng-cloak ng-table-pager com-sub-pager text-center">
  521. <ul class="pagination ng-table-pagination">
  522. <li ng-class="{'disabled': !page.active && !page.current, 'active': params.page == page.number}" ng-repeat="page in pages" ng-switch="page.type">
  523. <a ng-switch-when="prev" ng-click="setPage(page.type, -1)">&laquo;</a>
  524. <a ng-switch-when="first" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  525. <a ng-switch-when="page" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  526. <a ng-switch-when="more" ng-click="setPage(page.type, -1)">&#8230;</a>
  527. <a ng-switch-when="last" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  528. <a ng-switch-when="next" ng-click="setPage(page.type, -1)">&raquo;</a>
  529. </li>
  530. </ul>
  531. <div class="page-go-block" ng-if="rolesData.length>6">
  532. <input class="page-number" type="text" ng-model="params.currentPage" ng-keydown="listenEnter()"/>
  533. <a class="page-a" ng-click="setPage('page', params.currentPage)">GO</a>
  534. </div>
  535. </div>
  536. */
  537. .com-sub-pager .ng-table-pagination a {
  538. border: none;
  539. font-size: 12px;
  540. cursor: pointer;
  541. }
  542. .com-sub-pager .pagination li:first-child a, .com-sub-pager .pagination li:last-child a{
  543. font-size: 20px;
  544. }
  545. .com-sub-pager ul.pagination.ng-table-pagination > li > a > span {
  546. height: 17px;
  547. line-height: 17px;
  548. color: #666;
  549. }
  550. .com-sub-pager.ng-table-pager {
  551. background: #f4f4f4;
  552. margin: 0!important;
  553. padding-right: 29px;
  554. }
  555. .com-sub-pager.ng-table-pager input.page-number {
  556. vertical-align: inherit;
  557. display: inline-block;
  558. width: 37px;
  559. height: 28px;
  560. padding: 6px 6px;
  561. font-size: 12px;
  562. line-height: 1.42857143;
  563. color: #9B9792;
  564. text-align: center;
  565. background-color: #F6F5F4;
  566. background-image: none;
  567. border: 1px solid #ccc;
  568. border-top-left-radius: 4px;
  569. border-bottom-left-radius: 4px;
  570. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  571. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  572. }
  573. .com-sub-pager.ng-table-pager a.page-a {
  574. color: #fff;
  575. cursor: pointer;
  576. padding: 5.55px 6px;
  577. font-size: 12px;
  578. border-top-right-radius: 4px;
  579. border-bottom-right-radius: 4px;
  580. text-decoration: none;
  581. height: 31px;
  582. }
  583. .com-sub-pager.ng-table-pager .page-go-block {
  584. float: right;
  585. font-size: 0px;
  586. height: 31px;
  587. margin-top: 20px;
  588. line-height: 31px;
  589. }
  590. .com-sub-pager.ng-table-pager .ng-table-pagination{
  591. text-align: center;
  592. max-width: 460px;
  593. margin: 0;
  594. }
  595. .com-sub-pager.ng-table-pager .ng-table-pagination a{
  596. height: 29px;
  597. line-height: 13px;
  598. }
  599. .com-sub-pager .pagination li.active a span{
  600. color: white !important;
  601. }
  602. .com-sub-pager.ng-table-pager .ng-table-pagination li.active a {
  603. background: none!important;
  604. }
  605. .com-sub-pager.ng-table-pager .ng-table-pagination li a {
  606. background: none!important;
  607. }
  608. .com-sub-pager.ng-table-pager .ng-table-pagination li.active a span {
  609. color: #5078cb!important;
  610. }
  611. /*-------------------------分页 end--------------------*/
  612. /*----------遮罩层 start-------------*/
  613. .modal-wrap {
  614. position: fixed;
  615. top: 0;
  616. bottom: 0;
  617. left: 0;
  618. right: 0;
  619. background: rgba(0, 0, 0, .3);
  620. z-index: 1;
  621. }
  622. /*----------遮罩层 end-------------*/