commonComponent.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  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. 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(../img/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(../img/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 input {
  211. display: none!important;
  212. }
  213. .com-check-box input[type="checkbox"] + label{
  214. display: inline-block!important ;
  215. position: relative!important ;
  216. top: 2px!important ;
  217. width: 12px!important ;
  218. height: 12px!important ;
  219. background: url(../img/icon/check-rule.png) no-repeat ;
  220. background-position: -48px 0;
  221. }
  222. .com-check-box input:checked + label {
  223. background-position: -31px 0;
  224. }
  225. /*---------------------标准控件-复选框end---------------------*/
  226. /*---------------------标准控件-开关(蓝色)start---------------------*/
  227. /** html代码
  228. <div class="com-switch-blue">
  229. <span class="checkbox">
  230. <span><em></em></span>
  231. </span>
  232. <span class="checkbox active">
  233. <span><em></em></span>
  234. </span>
  235. </div>
  236. **/
  237. div.com-switch-blue .checkbox {
  238. margin: 0 auto;
  239. text-align: center;
  240. position: relative;
  241. display: block;
  242. }
  243. div.com-switch-blue .checkbox span {
  244. width: 46px;
  245. height: 12px;
  246. display: inline-block;
  247. border-radius: 18px;
  248. border: #e4e4e4 1px solid;
  249. cursor: pointer;
  250. position: relative;
  251. box-shadow: 1px 1px 5px #eee;
  252. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#E0E0E0), to(#E8E8E8), color-stop(0.5,#F2F2F2));
  253. transition: background-color .1s ease-out;
  254. }
  255. div.com-switch-blue .checkbox.active span{
  256. background: #b9cffa;
  257. }
  258. div.com-switch-blue .checkbox.active span em{
  259. left: 34px;
  260. }
  261. div.com-switch-blue .checkbox span em{
  262. position: absolute;
  263. width: 16px;
  264. top: -5px;
  265. left: 0;
  266. height: 16px;
  267. line-height: 16px;
  268. background-color: #fff;
  269. border: #eee 1px solid;
  270. border-radius: 50%;
  271. box-shadow: -1px 2px 1px #999;
  272. transition: background-color .1s ease-out;
  273. color: #666;
  274. font-size: 12px;
  275. }
  276. div.com-switch-blue .checkbox span em:after{
  277. content: '';
  278. width: 6px;
  279. height: 6px;
  280. display: inline-block;
  281. background: #dedcdc;
  282. border-radius: 100%;
  283. position: absolute;
  284. top: 4px;
  285. left: 4px;
  286. }
  287. /*---------------------标准控件-开关(蓝色)end---------------------*/
  288. /*---------------------标准控件-开关(绿色)start---------------------*/
  289. /** html代码
  290. <div class="com-switch-green">
  291. <span class="checkbox">
  292. <span><em></em></span>
  293. </span>
  294. <span class="checkbox active">
  295. <span><em></em></span>
  296. </span>
  297. </div>
  298. **/
  299. div.com-switch-green .checkbox {
  300. margin: 0 auto;
  301. text-align: center;
  302. position: relative;
  303. display: block;
  304. }
  305. div.com-switch-green .checkbox span {
  306. width: 34px;
  307. height: 18px;
  308. display: inline-block;
  309. border-radius: 18px;
  310. border: #e4e4e4 1px solid;
  311. cursor: pointer;
  312. position: relative;
  313. box-shadow: 1px 1px 5px #eee;
  314. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#bbbcba), to(#bfc1be), color-stop(0.5,#c5c7c4));
  315. transition: background-color .1s ease-out;
  316. }
  317. div.com-switch-green .checkbox.active span{
  318. background: #3acb14;
  319. }
  320. div.com-switch-green .checkbox.active span em{
  321. left: 18px;
  322. }
  323. div.com-switch-green .checkbox span em{
  324. position: absolute;
  325. top: -2px;
  326. left: -3px;
  327. width: 18px;
  328. height: 18px;
  329. line-height: 18px;
  330. background-color: #fff;
  331. border: #eee 1px solid;
  332. border-radius: 50%;
  333. box-shadow: -1px 2px 1px #999;
  334. transition: background-color .1s ease-out;
  335. color: #666;
  336. font-size: 12px;
  337. }
  338. div.com-switch-green .checkbox span em:after{
  339. content: '';
  340. width: 6px;
  341. height: 6px;
  342. display: inline-block;
  343. background: #dedcdc;
  344. border-radius: 100%;
  345. position: absolute;
  346. top: 5px;
  347. left: 5px;
  348. }
  349. /*---------------------标准控件-开关(绿色)end---------------------*/
  350. /*---------------------信息提示框 start---------------------*/
  351. /** html代码
  352. <div class="tip">
  353. XXXX
  354. </div>
  355. **/
  356. div.tip{
  357. display: none;
  358. padding: 13px 10px;
  359. font-size: 12px;
  360. color: #333;
  361. background-color: #fff;
  362. border: 1px solid #89aefa;
  363. border-radius: 2px;
  364. box-shadow: 2px 2px 5px #dedede;
  365. -webkit-box-shadow: 2px 2px 5px #dedede;
  366. -moz-box-shadow: 2px 2px 5px #dedede;
  367. -o-box-shadow: 2px 2px 5px #dedede;
  368. }
  369. /*---------------------信息提示框 end---------------------*/
  370. /*---------------------提示浮层 start---------------------*/
  371. .com-supernatant-box{
  372. max-width:360px;
  373. opacity:.6;
  374. border-radius:5px;
  375. }
  376. .com-supernatant-box div{
  377. position:fixed;
  378. top:59%;
  379. left:50%;
  380. width:100%;
  381. transform:translate(-50%,-50%);
  382. color: #333;
  383. }
  384. .com-supernatant-box .success{
  385. background: #f00000;
  386. }
  387. .com-supernatant-box .defeat{
  388. background: #5078cb;
  389. }
  390. /*-------------------------提示浮层 end--------------------*/
  391. /*------下拉选框的使用样式方法------------------------------*/
  392. /*
  393. <div class='com-select-option'>
  394. <input id="classesType" ng-blur="onBlur()" ng-click="changeShowLogistics()" type="text" class="form-control" ng-model="message.classes" placeholder="请选择消息类型" readonly="true" >
  395. <ul id="ulContent" ng-if="matchData && showContent" class="dropdown-menu">
  396. <li ng-click="showText(classes)" ng-repeat="classes in resultList" ng-class="{'active': $index==selectIndex}" ng-bind="classes" ng-bind="message.classes"></li>
  397. </ul>
  398. </div>
  399. */
  400. /*-------------------------下拉选框 start-------------- --*/
  401. .com-select-option {
  402. position: relative;
  403. }
  404. .com-select-option>input {
  405. vertical-align: middle;
  406. width: 190px;
  407. margin-top: -2px;
  408. background-color: white !important;
  409. height: 30px;
  410. background: url(static/img/index/xiala.png) no-repeat 167px 11px;
  411. cursor: pointer;
  412. }
  413. .com-select-option .dropdown-menu{
  414. top: 90%;
  415. left: unset;
  416. line-height: 30px;
  417. max-height: 300px;
  418. overflow-y: auto;
  419. width: 190px;
  420. display: block;
  421. overflow-x: hidden;
  422. border-radius: 2px;
  423. }
  424. .com-select-option .dropdown-menu li{
  425. font-size: 14px;
  426. cursor: pointer;
  427. padding-left:10px;
  428. height: 30px;
  429. }
  430. .com-select-option .dropdown-menu li:hover, .dropdown-menu li.active{
  431. color: #fff;
  432. background: #5078cb;
  433. }
  434. /*-------------------------下拉选框 end--------------------*/
  435. /*-------------------------分页 start--------------------*/
  436. /*主要分页table(使用tableParams即可)*/
  437. /*主要分页非table代码示例*/
  438. /*
  439. <div class="ng-cloak ng-table-pager com-sup-pager">
  440. <ul class="pagination ng-table-pagination">
  441. <li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
  442. <a ng-switch-when="prev" ng-click="setPage(page.type, -1)" href="">&laquo;</a>
  443. <a ng-switch-when="first" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  444. <a ng-switch-when="page" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  445. <a ng-switch-when="more" ng-click="setPage(page.type, -1)" href="">&#8230;</a>
  446. <a ng-switch-when="last" ng-click="setPage(page.type, page.number)" href=""><span ng-bind="page.number"></span></a>
  447. <a ng-switch-when="next" ng-click="setPage(page.type, -1)" href="">&raquo;</a>
  448. </li>
  449. </ul>
  450. <div class="page-go-block">
  451. <input class="page-number" type="text" ng-model="param.currentPage" ng-keydown="listenEnter()"/>
  452. <a class="page-a" ng-click="setPage('page', param.currentPage)">GO</a>
  453. </div>
  454. </div>
  455. */
  456. .com-sup-pager .pagination{
  457. margin-bottom: 0;
  458. }
  459. .com-sup-pager .pagination.ng-table-pagination > li > a > span {
  460. height: 17px;
  461. line-height: 17px;
  462. }
  463. .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{
  464. z-index: 2;
  465. color: #fff;
  466. cursor: default;
  467. background-color: #5078cb;
  468. border-color: #5078cb;
  469. }
  470. .com-sup-pager .pagination.ng-table-pagination > li > a{
  471. font-size: 12px;
  472. }
  473. .com-sup-pager.ng-table-pager input.page-number {
  474. vertical-align: inherit;
  475. display: inline-block;
  476. width: 40px;
  477. height: 31px;
  478. padding: 6px 6px;
  479. font-size: 14px;
  480. line-height: 1.42857143;
  481. color: #9B9792;
  482. text-align: center;
  483. background-color: #F6F5F4;
  484. background-image: none;
  485. border: 1px solid #ccc;
  486. border-top-left-radius: 4px;
  487. border-bottom-left-radius: 4px;
  488. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  489. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  490. }
  491. .com-sup-pager.ng-table-pager{
  492. margin-right: 0 !important;
  493. background: #fff;
  494. }
  495. .com-sup-pager.ng-table-pager a.page-a {
  496. color: #fff;
  497. cursor: pointer;
  498. background-color: #5078cb;
  499. border-color: #5078cb;
  500. padding: 7px 6px;
  501. font-size: 14px;
  502. border-top-right-radius: 4px;
  503. border-bottom-right-radius: 4px;
  504. text-decoration: none;
  505. height: 31px;
  506. }
  507. .com-sup-pager.ng-table-pager div.page-go-block {
  508. float: right;
  509. margin-left: 20px;
  510. font-size: 0px;
  511. height: 31px;
  512. line-height: 31px;
  513. }
  514. /*次要分页代码示例*/
  515. /*
  516. <div class="ng-cloak ng-table-pager com-sub-pager text-center">
  517. <ul class="pagination ng-table-pagination">
  518. <li ng-class="{'disabled': !page.active && !page.current, 'active': params.page == page.number}" ng-repeat="page in pages" ng-switch="page.type">
  519. <a ng-switch-when="prev" ng-click="setPage(page.type, -1)">&laquo;</a>
  520. <a ng-switch-when="first" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  521. <a ng-switch-when="page" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  522. <a ng-switch-when="more" ng-click="setPage(page.type, -1)">&#8230;</a>
  523. <a ng-switch-when="last" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  524. <a ng-switch-when="next" ng-click="setPage(page.type, -1)">&raquo;</a>
  525. </li>
  526. </ul>
  527. <div class="page-go-block" ng-if="rolesData.length>6">
  528. <input class="page-number" type="text" ng-model="params.currentPage" ng-keydown="listenEnter()"/>
  529. <a class="page-a" ng-click="setPage('page', params.currentPage)">GO</a>
  530. </div>
  531. </div>
  532. */
  533. .com-sub-pager .ng-table-pagination a {
  534. border: none;
  535. font-size: 12px;
  536. cursor: pointer;
  537. }
  538. .com-sub-pager .pagination li:first-child a, .com-sub-pager .pagination li:last-child a{
  539. font-size: 20px;
  540. }
  541. .com-sub-pager ul.pagination.ng-table-pagination > li > a > span {
  542. height: 17px;
  543. line-height: 17px;
  544. color: #666;
  545. }
  546. .com-sub-pager.ng-table-pager {
  547. background: #f4f4f4;
  548. margin: 0!important;
  549. padding-right: 29px;
  550. }
  551. .com-sub-pager.ng-table-pager input.page-number {
  552. vertical-align: inherit;
  553. display: inline-block;
  554. width: 37px;
  555. height: 28px;
  556. padding: 6px 6px;
  557. font-size: 12px;
  558. line-height: 1.42857143;
  559. color: #9B9792;
  560. text-align: center;
  561. background-color: #F6F5F4;
  562. background-image: none;
  563. border: 1px solid #ccc;
  564. border-top-left-radius: 4px;
  565. border-bottom-left-radius: 4px;
  566. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  567. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  568. }
  569. .com-sub-pager.ng-table-pager a.page-a {
  570. color: #fff;
  571. cursor: pointer;
  572. padding: 5.55px 6px;
  573. font-size: 12px;
  574. border-top-right-radius: 4px;
  575. border-bottom-right-radius: 4px;
  576. text-decoration: none;
  577. height: 31px;
  578. }
  579. .com-sub-pager.ng-table-pager .page-go-block {
  580. float: right;
  581. font-size: 0px;
  582. height: 31px;
  583. margin-top: 20px;
  584. line-height: 31px;
  585. }
  586. .com-sub-pager.ng-table-pager .ng-table-pagination{
  587. text-align: center;
  588. max-width: 460px;
  589. margin: 0;
  590. }
  591. .com-sub-pager.ng-table-pager .ng-table-pagination a{
  592. height: 29px;
  593. line-height: 13px;
  594. }
  595. .com-sub-pager .pagination li.active a span{
  596. color: white !important;
  597. }
  598. .com-sub-pager.ng-table-pager .ng-table-pagination li.active a {
  599. background: none!important;
  600. }
  601. .com-sub-pager.ng-table-pager .ng-table-pagination li a {
  602. background: none!important;
  603. }
  604. .com-sub-pager.ng-table-pager .ng-table-pagination li.active a span {
  605. color: #5078cb!important;
  606. }
  607. /*-------------------------分页 end--------------------*/